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: firmware: fwsec: 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-3-616e1d0b5cb3@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>

+3 -3
+3 -3
drivers/gpu/nova-core/firmware/fwsec/bootloader.rs
··· 12 12 self, 13 13 Device, // 14 14 }, 15 + dma::Coherent, 15 16 io::{ 16 17 register::WithBase, // 17 18 Io, ··· 30 29 }; 31 30 32 31 use crate::{ 33 - dma::DmaObject, 34 32 driver::Bar0, 35 33 falcon::{ 36 34 self, ··· 129 129 /// operation. 130 130 pub(crate) struct FwsecFirmwareWithBl { 131 131 /// DMA object the bootloader will copy the firmware from. 132 - _firmware_dma: DmaObject, 132 + _firmware_dma: Coherent<[u8]>, 133 133 /// Code of the bootloader to be loaded into non-secure IMEM. 134 134 ucode: KVec<u8>, 135 135 /// Descriptor to be loaded into DMEM for the bootloader to read. ··· 211 211 212 212 ( 213 213 align_padding, 214 - DmaObject::from_data(dev, firmware_obj.as_slice())?, 214 + Coherent::from_slice(dev, firmware_obj.as_slice(), GFP_KERNEL)?, 215 215 ) 216 216 }; 217 217