diff options
| author | Alexandre Courbot <acourbot@nvidia.com> | 2026-03-27 00:22:09 +0900 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2026-03-28 22:20:07 +0900 |
| commit | 1f9283afd3f1780bd629f02e149afe7b0c78fc5b (patch) | |
| tree | ca251641ff167eaab01939db53d4ea30d52e4ac0 /drivers/gpu/nova-core | |
| parent | 308eb645b57a91fe78d3065b8924f5c92b69a4a0 (diff) | |
| download | linux-next-1f9283afd3f1780bd629f02e149afe7b0c78fc5b.tar.gz linux-next-1f9283afd3f1780bd629f02e149afe7b0c78fc5b.zip | |
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>
Diffstat (limited to 'drivers/gpu/nova-core')
| -rw-r--r-- | drivers/gpu/nova-core/firmware/fwsec/bootloader.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nova-core/firmware/fwsec/bootloader.rs b/drivers/gpu/nova-core/firmware/fwsec/bootloader.rs index 3b12d90d9412..bcb713a868e2 100644 --- a/drivers/gpu/nova-core/firmware/fwsec/bootloader.rs +++ b/drivers/gpu/nova-core/firmware/fwsec/bootloader.rs @@ -12,6 +12,7 @@ use kernel::{ self, Device, // }, + dma::Coherent, io::{ register::WithBase, // Io, @@ -29,7 +30,6 @@ use kernel::{ }; use crate::{ - dma::DmaObject, driver::Bar0, falcon::{ self, @@ -129,7 +129,7 @@ unsafe impl AsBytes for BootloaderDmemDescV2 {} /// operation. pub(crate) struct FwsecFirmwareWithBl { /// DMA object the bootloader will copy the firmware from. - _firmware_dma: DmaObject, + _firmware_dma: Coherent<[u8]>, /// Code of the bootloader to be loaded into non-secure IMEM. ucode: KVec<u8>, /// Descriptor to be loaded into DMEM for the bootloader to read. @@ -211,7 +211,7 @@ impl FwsecFirmwareWithBl { ( align_padding, - DmaObject::from_data(dev, firmware_obj.as_slice())?, + Coherent::from_slice(dev, firmware_obj.as_slice(), GFP_KERNEL)?, ) }; |
