Skip to contentSkip to conversation

ssb: fix PCI(e) driver regression causing oops on PCI cards

PATCH New Rafał Miłecki 2 participants 5 messages Jun 1, 2011 – Jun 3, 2011 Sonics silicon backplane driver (ssb)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ssb: fix PCI(e) driver regression causing oops on PCI cards

We were incorrectly executing PCIe specific workarounds on PCI cards. This resulted in:
Machine check in kernel mode.
Caused by (from SRR1=149030): Transfer error ack signal

Oops: Machine check, sig: 7 [#1]
---
 drivers/ssb/driver_pcicore.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
drivers/ssb/driver_pcicore.c +6 -4
index 82feb34..2a20dab 100644
@@ -539,10 +539,12 @@ void ssb_pcicore_init(struct ssb_pcicore *pc)
 	if (!pc->hostmode)
 		ssb_pcicore_init_clientmode(pc);
 
-	/* Additional always once-executed workarounds */
-	ssb_pcicore_serdes_workaround(pc);
-	/* TODO: ASPM */
-	/* TODO: Clock Request Update */
+	/* Additional PCIe always once-executed workarounds */
+	if (dev->id.coreid == SSB_DEV_PCIE) {
+		ssb_pcicore_serdes_workaround(pc);
+		/* TODO: ASPM */
+		/* TODO: Clock Request Update */
+	}
 }
 
 static u32 ssb_pcie_read(struct ssb_pcicore *pc, u32 address)
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 ssb: fix PCI(e) driver regression causing oops on PCI cards

2011/6/1 Rafa? Mi?ecki <[email protected]>:

Quoted 5 lines

We were incorrectly executing PCIe specific workarounds on PCI cards. This resulted in:
Machine check in kernel mode.
Caused by (from SRR1=149030): Transfer error ack signal

Oops: Machine check, sig: 7 [#1]

John, I've tested this patch myself on my PCI BCM4318, including checking for 0xFFFFFFFF reads in MMIO dumps.

The patch is correct, please take it for 3.0.

Signature · 1 line
Rafa?
#2 lore raw

PATCH 1/1 ssb: fix PCI(e) driver regression causing oops on PCI cards

2011/6/1 Rafa? Mi?ecki <[email protected]>:

Quoted 11 lines

2011/6/1 Rafa? Mi?ecki <[email protected]>:

Quoted 5 lines

We were incorrectly executing PCIe specific workarounds on PCI cards. This resulted in:
Machine check in kernel mode.
Caused by (from SRR1=149030): Transfer error ack signal

Oops: Machine check, sig: 7 [#1]

John, I've tested this patch myself on my PCI BCM4318, including checking for 0xFFFFFFFF reads in MMIO dumps.

The patch is correct, please take it for 3.0.

John, I'm afraid more and more people get angry at me because of this ;)

Christian Kujau confirmed this problem and fix.

Signature · 1 line
Rafa?
#3 lore raw
Quoted 1 line · Rafał Miłecki

John, I'm afraid more and more people get angry at me because of this ;)

Erm, I'm not angry at anyone :-) On the contrary, I'm happy about the fix so quickly available!

Though I'm a bit afraid of the next git bisect session, as it might not be so straightforward than this one...

Thanks to all involved,
Christian.

Signature · 3 lines
BOFH excuse #230:

Lusers learning curve appears to be fractal
#4 lore raw

PATCH 1/1 ssb: fix PCI(e) driver regression causing oops on PCI cards

In reply to Rafał Miłecki
Quoted 8 lines · Rafa? Mi?ecki

2011/6/1 Rafa? Mi?ecki <[email protected]>:

Quoted 5 lines

We were incorrectly executing PCIe specific workarounds on PCI cards. This resulted in:
Machine check in kernel mode.
Caused by (from SRR1=149030): Transfer error ack signal

Oops: Machine check, sig: 7 [#1]
Quoted 4 lines

John, I've tested this patch myself on my PCI BCM4318, including checking for 0xFFFFFFFF reads in MMIO dumps.

The patch is correct, please take it for 3.0.

Ping, ping, ping John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/b43-dev/attachments/20110603/8807efed/attachment.html>