gpu: nova-core: don't declare booter firmware for FSP chipsets
Subsystems (4)
PATCH 1/1 gpu: nova-core: don't declare booter firmware for FSP chipsets
The module firmware table lists booter_load and booter_unload for every chipset, but Hopper and Blackwell boot the GSP through FSP and never load the SEC2 booter. Those modinfo entries point at firmware files that are not shipped for FSP-based chipsets, so initramfs tooling looks for images that are never used.
Declare the booter only for chipsets that boot via it, matching how the FMC and FWSEC bootloader images are already gated on chipset capabilities.
--- drivers/gpu/nova-core/firmware.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
drivers/gpu/nova-core/firmware.rs +8 -7
@@ -427,19 +427,20 @@ const fn make_entry_chipset(self, chipset: gpu::Chipset) -> Self {let name = chipset.name ();let this = self - .make_entry_file (name,"booter_load" ) - .make_entry_file (name,"booter_unload" ) .make_entry_file (name,"bootloader" ) .make_entry_file (name,"gsp" ); -let this =if chipset.needs_fwsec_bootloader () { - this.make_entry_file (name,"gen_bootloader" ) +// FSP-based chipsets (Hopper and later) boot the GSP via the FMC image +// loaded by FSP. Older chipsets use the SEC2 booter instead. +let this =if chipset.uses_fsp () { + this.make_entry_file (name,"fmc" ) }else { - this + this.make_entry_file (name,"booter_load" ) + .make_entry_file (name,"booter_unload" ) }; -if chipset.uses_fsp () { - this.make_entry_file (name,"fmc" ) +if chipset.needs_fwsec_bootloader () { + this.make_entry_file (name,"gen_bootloader" ) }else { this }
base-commit: fea3a2dd7d3fc1936211ced5f84420e610435730
Signature · 1 line
2.54.0
Quoted 11 lines · John Hubbard
The module firmware table lists
booter_loadandbooter_unloadfor every chipset, but Hopper and Blackwell boot the GSP through FSP and never load the SEC2 booter. Those modinfo entries point at firmware files that are not shipped for FSP-based chipsets, so initramfs tooling looks for images that are never used.Declare the booter only for chipsets that boot via it, matching how the FMC and FWSEC bootloader images are already gated on chipset capabilities.
Signed-off-by John Hubbard <[email protected]>
Quoted 11 lines · John Hubbard
The module firmware table lists
booter_loadandbooter_unloadfor every chipset, but Hopper and Blackwell boot the GSP through FSP and never load the SEC2 booter. Those modinfo entries point at firmware files that are not shipped for FSP-based chipsets, so initramfs tooling looks for images that are never used.Declare the booter only for chipsets that boot via it, matching how the FMC and FWSEC bootloader images are already gated on chipset capabilities.
Signed-off-by John Hubbard <[email protected]>
drivers/gpu/nova-core/firmware.rs const fn make_entry_chipset(self, chipset: gpu::Chipset) -> Self { · line 434
Quoted 2 lines
drivers/gpu/nova-core/firmware.rs +2
-0+// FSP-based chipsets (Hopper and later) boot the GSP via the FMC image +// loaded by FSP. Older chipsets use the SEC2 booter instead.
NIT: This is slightly ambiguous, since despite technically being the same generation, by architecture ID Ada numerically sits in between Hopper and Blackwell, but does not use FSP.
Quoted 6 lines · Danilo Krummrich
Quoted 2 lines
+ // FSP-based chipsets (Hopper and later) boot the GSP via the FMC image + // loaded by FSP. Older chipsets use the SEC2 booter instead.
NIT: This is slightly ambiguous, since despite technically being the same generation, by architecture ID Ada numerically sits in between Hopper and Blackwell, but does not use FSP.
Maybe we should add a comment to the define_chipset! block in gpu.rs which clarifies that even though GH100 has a lower chipid then AD102, we consider Hopper to be a newer architecture than Ada.
Quoted 10 lines · Timur Tabi
Quoted 6 lines · Danilo Krummrich
Quoted 2 lines
+ // FSP-based chipsets (Hopper and later) boot the GSP via the FMC image + // loaded by FSP. Older chipsets use the SEC2 booter instead.
NIT: This is slightly ambiguous, since despite technically being the same generation, by architecture ID Ada numerically sits in between Hopper and Blackwell, but does not use FSP.
Maybe we should add a comment to the
define_chipset! block ingpu.rswhich clarifies that even though GH100 has a lower chipid then AD102, we consider Hopper to be a newer architecture than Ada.
Yes. I'll send a tiny follow-up patch for these points.
thanks,
Signature · 1 line
John Hubbard
Quoted 11 lines · John Hubbard
The module firmware table lists
booter_loadandbooter_unloadfor every chipset, but Hopper and Blackwell boot the GSP through FSP and never load the SEC2 booter. Those modinfo entries point at firmware files that are not shipped for FSP-based chipsets, so initramfs tooling looks for images that are never used.Declare the booter only for chipsets that boot via it, matching how the FMC and FWSEC bootloader images are already gated on chipset capabilities.
Signed-off-by John Hubbard <[email protected]>
Pushed to drm-rust-next, thanks!
[acourbot: make comment on FMC/Booter choice a bit more precise.]