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: fb: use dma::CoherentHandle

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

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

+3 -3
+3 -3
drivers/gpu/nova-core/fb.rs
··· 7 7 8 8 use kernel::{ 9 9 device, 10 + dma::CoherentHandle, 10 11 fmt, 11 12 io::Io, 12 13 prelude::*, ··· 20 19 }; 21 20 22 21 use crate::{ 23 - dma::DmaObject, 24 22 driver::Bar0, 25 23 firmware::gsp::GspFirmware, 26 24 gpu::Chipset, ··· 53 53 chipset: Chipset, 54 54 device: ARef<device::Device>, 55 55 /// Keep the page alive as long as we need it. 56 - page: DmaObject, 56 + page: CoherentHandle, 57 57 } 58 58 59 59 impl SysmemFlush { ··· 63 63 bar: &Bar0, 64 64 chipset: Chipset, 65 65 ) -> Result<Self> { 66 - let page = DmaObject::new(dev, kernel::page::PAGE_SIZE)?; 66 + let page = CoherentHandle::alloc(dev, kernel::page::PAGE_SIZE, GFP_KERNEL)?; 67 67 68 68 hal::fb_hal(chipset).write_sysmem_flush_page(bar, page.dma_handle())?; 69 69