From: Timur Tabi Date: Fri, 17 Apr 2026 19:13:56 +0000 (-0500) Subject: gpu: nova-core: only boot FRTS if its region is allocated X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cedbbc383ab3e21331ef36f90e0dfab89b58934d;p=thirdparty%2Fkernel%2Flinux.git gpu: nova-core: only boot FRTS if its region is allocated On some Nvidia GPUs (i.e. GA100), the FRTS region is not allocated (its size is set to 0). In such cases, FWSEC-FRTS should not be run. Signed-off-by: Timur Tabi Reviewed-by: Eliot Courtney Reviewed-by: Gary Guo Link: https://patch.msgid.link/20260417191359.1307434-4-ttabi@nvidia.com Signed-off-by: Alexandre Courbot --- diff --git a/drivers/gpu/nova-core/gsp/boot.rs b/drivers/gpu/nova-core/gsp/boot.rs index 18f356c9178eb..5c56f0539dd7f 100644 --- a/drivers/gpu/nova-core/gsp/boot.rs +++ b/drivers/gpu/nova-core/gsp/boot.rs @@ -155,7 +155,10 @@ impl super::Gsp { let fb_layout = FbLayout::new(chipset, bar, &gsp_fw)?; dev_dbg!(dev, "{:#x?}\n", fb_layout); - Self::run_fwsec_frts(dev, chipset, gsp_falcon, bar, &bios, &fb_layout)?; + // FWSEC-FRTS is not executed on chips where the FRTS region size is 0 (e.g. GA100). + if !fb_layout.frts.is_empty() { + Self::run_fwsec_frts(dev, chipset, gsp_falcon, bar, &bios, &fb_layout)?; + } let booter_loader = BooterFirmware::new( dev,