mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
gpu: nova-core: falcon: remove unwarranted safety check in dma_load
This safety check was an assumption based on the firmwares we work with - it is not based on an actual hardware limitation. Thus, remove it. Reviewed-by: Eliot Courtney <ecourtney@nvidia.com> Acked-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/20260306-turing_prep-v11-7-8f0042c5d026@nvidia.com Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
This commit is contained in:
parent
c1d2f7471b
commit
192125e090
|
|
@ -740,13 +740,6 @@ fn dma_load<F: FalconFirmware<Target = E> + FalconDmaLoadable>(
|
|||
bar: &Bar0,
|
||||
fw: &F,
|
||||
) -> Result {
|
||||
// The Non-Secure section only exists on firmware used by Turing and GA100, and
|
||||
// those platforms do not use DMA.
|
||||
if fw.imem_ns_load_params().is_some() {
|
||||
debug_assert!(false);
|
||||
return Err(EINVAL);
|
||||
}
|
||||
|
||||
// Create DMA object with firmware content as the source of the DMA engine.
|
||||
let dma_obj = DmaObject::from_data(dev, fw.as_slice())?;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user