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: gsp: use dma::Coherent for signatures

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

+3 -2
+3 -2
drivers/gpu/nova-core/firmware/gsp.rs
··· 3 3 use kernel::{ 4 4 device, 5 5 dma::{ 6 + Coherent, 6 7 DataDirection, 7 8 DmaAddress, // 8 9 }, ··· 141 140 /// Size in bytes of the firmware contained in [`Self::fw`]. 142 141 pub(crate) size: usize, 143 142 /// Device-mapped GSP signatures matching the GPU's [`Chipset`]. 144 - pub(crate) signatures: DmaObject, 143 + pub(crate) signatures: Coherent<[u8]>, 145 144 /// GSP bootloader, verifies the GSP firmware before loading and running it. 146 145 pub(crate) bootloader: RiscvFirmware, 147 146 } ··· 227 226 228 227 elf::elf64_section(firmware.data(), sigs_section) 229 228 .ok_or(EINVAL) 230 - .and_then(|data| DmaObject::from_data(dev, data))? 229 + .and_then(|data| Coherent::from_slice(dev, data, GFP_KERNEL))? 231 230 }, 232 231 bootloader: { 233 232 let bl = super::request_firmware(dev, chipset, "bootloader", ver)?;