Skip to contentSkip to conversation

gpu: nova-core: clarify FSP ordering in the chipset table

PATCH Superseded John Hubbard 2 participants 5 messages Jun 10 – Jun 11

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpu: nova-core: clarify FSP ordering in the chipset table

The Chipset enum lists GPUs in chip-ID order, but FSP capability does not follow that order. Hopper and Blackwell boot the GSP via FSP, while Ada, whose chip IDs fall numerically between Hopper and Blackwell, uses the older SEC2 booter path instead. Add a comment so the table ordering does not suggest that everything past Hopper uses FSP.

---
Hi,

As mentioned here [1], this is a follow up patch.

[1] https://lore.kernel.org/[email protected]

thanks,
John Hubbard

 drivers/gpu/nova-core/gpu.rs | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/nova-core/gpu.rs +6 -2
index b3c91731db45..b9451d0d5e15 100644
@@ -91,6 +91,10 @@ fn try_from(value: u32) -> Result<Self, Self::Error> {
     GA104 = 0x174,
     GA106 = 0x176,
     GA107 = 0x177,
+    // Chipsets are listed in chip-ID order, which does not track FSP
+    // capability. Hopper (GH100) and Blackwell (GB10x/GB20x) boot the GSP
+    // via FSP, but Ada (AD10x), whose chip IDs fall between them, does not.
+    // See Chipset::uses_fsp().
     // Hopper
     GH100 = 0x180,
     // Ada
@@ -137,8 +141,8 @@ pub(crate) const fn needs_fwsec_bootloader(self) -> bool {
         matches!(self.arch(), Architecture::Turing) || matches!(self, Self::GA100)
     }
 
-    /// Returns `true` if this chipset boots via FSP (Hopper and later), which requires the FMC
-    /// firmware image.
+    /// Returns `true` if this chipset boots via FSP (Hopper and Blackwell, but not Ada), which
+    /// requires the FMC firmware image.
     pub(crate) const fn uses_fsp(self) -> bool {
         matches!(
             self.arch(),

base-commit: 550dc7536644db2d67c6f8cf525bba682fba08d9

Signature · 1 line
2.54.0
#1 lore raw
Quoted 6 lines · John Hubbard

-    /// Returns true if this chipset boots via FSP (Hopper and later), which requires the FMC
-    /// firmware image.
+    /// Returns true if this chipset boots via FSP (Hopper and Blackwell, but not Ada), which
+    /// requires the FMC firmware image.

Actually, I was thinking that we would keep the "Hopper and later" terminology, and just add a clarification in define_chipset! that the chipid numbering for Ada vs Hopper is backwards, and that we consider Hopper to be after Ada.

#2 lore raw
Quoted 11 lines · Timur Tabi
Quoted 6 lines · John Hubbard

-    /// Returns true if this chipset boots via FSP (Hopper and later), which requires the FMC
-    /// firmware image.
+    /// Returns true if this chipset boots via FSP (Hopper and Blackwell, but not Ada), which
+    /// requires the FMC firmware image.

Actually, I was thinking that we would keep the "Hopper and later" terminology, and just add a clarification in define_chipset! that the chipid numbering for Ada vs Hopper is backwards, and that we consider Hopper to be after Ada.

OK, so here's a diff on top of this patch, to attempt that:

drivers/gpu/nova-core/gpu.rs +6 -6
index b9451d0d5e15..0344995b3bb8 100644
@@ -91,10 +91,10 @@ fn try_from(value: u32) -> Result<Self, Self::Error> {
     GA104 = 0x174,
     GA106 = 0x176,
     GA107 = 0x177,
-    // Chipsets are listed in chip-ID order, which does not track FSP
-    // capability. Hopper (GH100) and Blackwell (GB10x/GB20x) boot the GSP
-    // via FSP, but Ada (AD10x), whose chip IDs fall between them, does not.
-    // See Chipset::uses_fsp().
+    // Chip IDs are in numerical order, which does not match FSP capability. Hopper (GH100) has a
+    // lower chip ID than Ada (AD10x), but Hopper and Blackwell boot the GSP via FSP while Ada uses
+    // the older SEC2 booter. We therefore consider Hopper to be after Ada, so "Hopper and later"
+    // means Hopper and Blackwell, not Ada.
     // Hopper
     GH100 = 0x180,
     // Ada
@@ -141,8 +141,8 @@ pub(crate) const fn needs_fwsec_bootloader(self) -> bool {
         matches!(self.arch(), Architecture::Turing) || matches!(self, Self::GA100)
     }
 
-    /// Returns `true` if this chipset boots via FSP (Hopper and Blackwell, but not Ada), which
-    /// requires the FMC firmware image.
+    /// Returns `true` if this chipset boots via FSP (Hopper and later), which requires the FMC
+    /// firmware image.
     pub(crate) const fn uses_fsp(self) -> bool {
         matches!(
             self.arch(),

thanks,

Signature · 1 line
John Hubbard
#3 lore raw
Quoted 5 lines · John Hubbard

+    // Chip IDs are in numerical order, which does not match FSP capability. Hopper (GH100) has a +    // lower chip ID than Ada (AD10x), but Hopper and Blackwell boot the GSP via FSP while Ada uses
+    // the older SEC2 booter. We therefore consider Hopper to be after Ada, so "Hopper and later" +    // means Hopper and Blackwell, not Ada.

This is better, except this will be false when Rubin is added. Since r610 already mentions and supports Rubin, I think we can safely say:

So "Hopper and later" excludes Ada and just means Hopper, Blackwell, Rubin, and everything after that.

#4 lore raw
Quoted 7 lines · Timur Tabi
Quoted 5 lines · John Hubbard

+    // Chip IDs are in numerical order, which does not match FSP capability. Hopper (GH100) has a +    // lower chip ID than Ada (AD10x), but Hopper and Blackwell boot the GSP via FSP while Ada uses
+    // the older SEC2 booter. We therefore consider Hopper to be after Ada, so "Hopper and later" +    // means Hopper and Blackwell, not Ada.

Quoted 5 lines

This is better, except this will be false when Rubin is added. Since r610 already mentions and supports Rubin, I think we can safely say:

So "Hopper and later" excludes Ada and just means Hopper, Blackwell, Rubin, and everything after that.

Sounds good. I'll send out a v2 with that.

thanks,

Signature · 1 line
John Hubbard