]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpu: nova-core: do not consider 0xBB77 as a valid PCI ROM header signature
authorTimur Tabi <ttabi@nvidia.com>
Fri, 17 Apr 2026 19:13:55 +0000 (14:13 -0500)
committerAlexandre Courbot <acourbot@nvidia.com>
Tue, 28 Apr 2026 23:13:56 +0000 (08:13 +0900)
Nvidia GPUs have some PCI expansion ROM sections that have an Nvidia-
specific signature instead of 0xAA55.  Signature 0xBB77 is actually an
internal-only value that has been deprecated for over a decade.
Nova-core will never encounter a GPU with that signature, so don't look
for it.

Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260417191359.1307434-3-ttabi@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/vbios.rs

index ebda28e596c5f0db9eaa34eb78a0f676dfd1a996..e726594eb13092af083d756661e0b4eb5caefaa3 100644 (file)
@@ -491,7 +491,7 @@ impl PciRomHeader {
 
         // Check for valid ROM signatures.
         match signature {
-            0xAA55 | 0xBB77 | 0x4E56 => {}
+            0xAA55 | 0x4E56 => {}
             _ => {
                 dev_err!(dev, "ROM signature unknown {:#x}\n", signature);
                 return Err(EINVAL);