From: Alexandre Courbot Date: Fri, 6 Mar 2026 04:52:44 +0000 (+0900) Subject: gpu: nova-core: falcon: remove unwarranted safety check in dma_load X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=192125e0909e106ae37c2447ec43ee2653909d17;p=thirdparty%2Flinux.git 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 Acked-by: Danilo Krummrich Link: https://patch.msgid.link/20260306-turing_prep-v11-7-8f0042c5d026@nvidia.com Signed-off-by: Alexandre Courbot --- diff --git a/drivers/gpu/nova-core/falcon.rs b/drivers/gpu/nova-core/falcon.rs index 2168ef2c5148a..7097a206ec3ca 100644 --- a/drivers/gpu/nova-core/falcon.rs +++ b/drivers/gpu/nova-core/falcon.rs @@ -740,13 +740,6 @@ impl Falcon { 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())?;