Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gpu: nova-core: falcon: use dma::Coherent

Replace the nova-core local `DmaObject` with a `Coherent` that can
fulfill the same role.

Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260327-b4-nova-dma-removal-v2-4-616e1d0b5cb3@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>

+3 -3
+3 -3
drivers/gpu/nova-core/falcon.rs
··· 10 10 Device, // 11 11 }, 12 12 dma::{ 13 + Coherent, 13 14 DmaAddress, 14 15 DmaMask, // 15 16 }, ··· 29 28 30 29 use crate::{ 31 30 bounded_enum, 32 - dma::DmaObject, 33 31 driver::Bar0, 34 32 falcon::hal::LoadMethod, 35 33 gpu::Chipset, ··· 504 504 fn dma_wr( 505 505 &self, 506 506 bar: &Bar0, 507 - dma_obj: &DmaObject, 507 + dma_obj: &Coherent<[u8]>, 508 508 target_mem: FalconMem, 509 509 load_offsets: FalconDmaLoadTarget, 510 510 ) -> Result { ··· 614 614 fw: &F, 615 615 ) -> Result { 616 616 // Create DMA object with firmware content as the source of the DMA engine. 617 - let dma_obj = DmaObject::from_data(dev, fw.as_slice())?; 617 + let dma_obj = Coherent::from_slice(dev, fw.as_slice(), GFP_KERNEL)?; 618 618 619 619 self.dma_reset(bar); 620 620 bar.update(regs::NV_PFALCON_FBIF_TRANSCFG::of::<E>().at(0), |v| {