Skip to contentSkip to conversation

ssb_is_sprom_available

Regression Maciej Rutecki 4 participants 5 messages May 31, 2010 – Jun 2, 2010

Subsystems (3)
lore
Share & tools
lore
#1 lore raw
Quoted 7 lines · Maciej Rutecki

Last known good: 2.6.34
Failing kernel: 2.6.35-rc1

subsystem: PCI, USB(?)

Kernel dies during booting on message "ssb_is_sprom_available", see picture:
http://www.unixy.pl/maciek/download/kernel/2.6.35-rc1/gumis/DSC_0011.JPG

Um, looks like it's something to do with the Sonics Silicon Backplane, not PCI, nor USB.

Signature · 4 lines
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
#2 lore raw
Quoted 11 lines · Matthew Wilcox
Quoted 7 lines · Maciej Rutecki

Last known good: 2.6.34
Failing kernel: 2.6.35-rc1

subsystem: PCI, USB(?)

Kernel dies during booting on message "ssb_is_sprom_available", see picture:
http://www.unixy.pl/maciek/download/kernel/2.6.35-rc1/gumis/DSC_0011.JPG

Um, looks like it's something to do with the Sonics Silicon Backplane, not PCI, nor USB.

Fix is on its way...

commit da1fdb02d9200ff28b6f3a380d21930335fe5429

Author: Christoph Fritz <[email protected]>
Date:   Fri May 28 10:45:59 2010 +0200

ssb: fix NULL ptr deref when pcihost_wrapper is used

Ethernet driver b44 does register ssb by it's pcihost_wrapper and doesn't set ssb_chipcommon. A check on this value introduced with commit d53cdbb94a52a920d5420ed64d986c3523a56743 and ea2db495f92ad2cf3301623e60cb95b4062bc484 triggers:

BUG: unable to handle kernel NULL pointer dereference at 00000010
IP: [<c1266c36>] ssb_is_sprom_available+0x16/0x30

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
author Tested-by
#3 lore raw
Quoted 28 lines · On wtorek, 1 czerwca 2010 o 15:34:02 John W. Linville wrote:
Quoted 6 lines · Matthew Wilcox
Quoted 5 lines · Maciej Rutecki

Last known good: 2.6.34
Failing kernel: 2.6.35-rc1

subsystem: PCI, USB(?)

Quoted 7 lines
Quoted 4 lines

Kernel dies during booting on message "ssb_is_sprom_available", see picture:
http://www.unixy.pl/maciek/download/kernel/2.6.35-rc1/gumis/DSC_0011.JP
G

Um, looks like it's something to do with the Sonics Silicon Backplane, not PCI, nor USB.

Fix is on its way...

commit da1fdb02d9200ff28b6f3a380d21930335fe5429

Author: Christoph Fritz <[email protected]>
Date:   Fri May 28 10:45:59 2010 +0200

ssb: fix NULL ptr deref when pcihost_wrapper is used

Ethernet driver b44 does register ssb by it's pcihost_wrapper and doesn't set ssb_chipcommon. A check on this value introduced with commit d53cdbb94a52a920d5420ed64d986c3523a56743 and ea2db495f92ad2cf3301623e60cb95b4062bc484 triggers:

Quoted 6 lines

BUG: unable to handle kernel NULL pointer dereference at 00000010
IP: [<c1266c36>] ssb_is_sprom_available+0x16/0x30

Yes this commit solves problem. Thanks

Signature · 2 lines
Maciej Rutecki
http://www.maciek.unixy.pl
#4 lore raw
In reply to Maciej Rutecki
Quoted 5 lines · Maciej Rutecki

Last known good: 2.6.34
Failing kernel: 2.6.35-rc1

subsystem: PCI, USB(?)

Quoted 7 lines

Kernel dies during booting on message "ssb_is_sprom_available", see picture:
http://www.unixy.pl/maciek/download/kernel/2.6.35-rc1/gumis/DSC_0011.JPG

Config:
http://www.unixy.pl/maciek/download/kernel/2.6.35-rc1/gumis/config-2.6.35-rc1

Regards

You could try following patch :

Followup of commit d53cdbb94a52a920d5420ed64d986c3523a56743 (ssb: do not read SPROM if it does not exist)

drivers/ssb/sprom.c +1 -0
index 007bc3a..af3cd4d 100644
@@ -185,6 +185,7 @@ bool ssb_is_sprom_available(struct ssb_bus *bus)
 	/* this routine differs from specs as we do not access SPROM directly
 	   on PCMCIA */
 	if (bus->bustype == SSB_BUSTYPE_PCI &&
+	    bus->chipco.dev &&
 	    bus->chipco.dev->id.revision >= 31)
 		return bus->chipco.capabilities & SSB_CHIPCO_CAP_SPROM;