Skip to contentSkip to conversation

Fix for interrupt handler

PATCH Applied Mirko Lindner 4 participants 6 messages Jul 4, 2012 – Nov 14, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Fix for interrupt handler

Re-enable interrupts if it is not our interrupt

---
 drivers/net/ethernet/marvell/sky2.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/marvell/sky2.c +3 -1
index f1163b2..2b0748d 100644
@@ -3080,8 +3080,10 @@ static irqreturn_t sky2_intr(int irq, void *dev_id)
 
 	/* Reading this mask interrupts as side effect */
 	status = sky2_read32(hw, B0_Y2_SP_ISRC2);
-	if (status == 0 || status == ~0)
+	if (status == 0 || status == ~0) {
+		sky2_write32(hw, B0_Y2_SP_ICR, 2);
 		return IRQ_NONE;
+	}
 
 	prefetch(&hw->st_le[hw->st_idx]);
 
Signature · 1 line
1.7.10.4
Tested-by Julian Gilbey on v1 2/2
#1 lore raw

Hi,

Quoted 3 lines · Mirko Lindner

Re-enable interrupts if it is not our interrupt

Julian (cc-ed) is experiencing tx stalls[1] on a 3.2.y-based kernel:

	WARNING: at [...]/linux-3.2.21/net/sched/sch_generic.c:255 dev_watchdog+0xe9/0x148()
	Hardware name: Inspiron 1545                   
	NETDEV WATCHDOG: eth0 (sky2): transmit queue 0 timed out

Cherry-picking v3.6-rc1~125^2~264 (sky2: Fix for interrupt handler, 2012-07-03) fixes it.

Dave, would this be a candidate for stable? Patch left unsnipped for reference.

Thanks,
Jonathan

[1] http://bugs.debian.org/681280
[2] http://patchwork.ozlabs.org/bundle/davem/stable/?state=*

Quoted 22 lines
---
 drivers/net/ethernet/marvell/sky2.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/marvell/sky2.c +3 -1
index f1163b2..2b0748d 100644
@@ -3080,8 +3080,10 @@ static irqreturn_t sky2_intr(int irq, void *dev_id)
 
 	/* Reading this mask interrupts as side effect */
 	status = sky2_read32(hw, B0_Y2_SP_ISRC2);
-	if (status == 0 || status == ~0)
+	if (status == 0 || status == ~0) {
+		sky2_write32(hw, B0_Y2_SP_ICR, 2);
 		return IRQ_NONE;
+	}
 
 	prefetch(&hw->st_le[hw->st_idx]);
 
Signature · 1 line
1.7.10.4
#2 lore raw
Quoted 5 lines · Jonathan Nieder
Quoted 3 lines · Mirko Lindner

Re-enable interrupts if it is not our interrupt

[...]

Quoted 1 line

Ping. Dave, is

d663d181b9e9 sky2: Fix for interrupt handler

a candidate for inclusion in 3.0-, 3.2-, and 3.4-stable? (It was applied upstream during the 3.6 merge window.) I don't see it in the list at [2].

Thanks,
Jonathan

Quoted 2 lines

[1] http://bugs.debian.org/681280
[2] http://patchwork.ozlabs.org/bundle/davem/stable/?state=*

#3 lore raw
Quoted 4 lines · Jonathan Nieder
Quoted 3 lines · Jonathan Nieder
Quoted 1 line · Mirko Lindner

Re-enable interrupts if it is not our interrupt

[...]

Quoted 8 lines
Quoted 1 line

Ping. Dave, is

d663d181b9e9 sky2: Fix for interrupt handler

a candidate for inclusion in 3.0-, 3.2-, and 3.4-stable? (It was applied upstream during the 3.6 merge window.)

Please confirm or object so I know you've received this message. Thanks for maintaining netdev-stable with such attention to quality, by the way.

Sincerely,
Jonathan

maintainer
#4 lore raw
In reply to Jonathan Nieder

From: Jonathan Nieder <[email protected]>
Date: Sat, 3 Nov 2012 03:04:48 -0700

Quoted 9 lines · Jonathan Nieder
Quoted 5 lines
Quoted 3 lines · Mirko Lindner

Re-enable interrupts if it is not our interrupt

[...]

Quoted 1 line
Quoted 7 lines

Ping. Dave, is

d663d181b9e9 sky2: Fix for interrupt handler

a candidate for inclusion in 3.0-, 3.2-, and 3.4-stable? (It was applied upstream during the 3.6 merge window.) I don't see it in the list at [2].

This looks fine.

#5 lore raw
Quoted 14 lines · David Miller

From: Jonathan Nieder <[email protected]>
Date: Sat, 3 Nov 2012 03:04:48 -0700

Quoted 11 lines · Jonathan Nieder
Quoted 5 lines
Quoted 3 lines · Mirko Lindner

Re-enable interrupts if it is not our interrupt

[...]

Quoted 1 line

Ping. Dave, is

Quoted 7 lines
Quoted 5 lines

d663d181b9e9 sky2: Fix for interrupt handler

a candidate for inclusion in 3.0-, 3.2-, and 3.4-stable? (It was applied upstream during the 3.6 merge window.) I don't see it in the list at [2].

This looks fine.

Queued up for 3.2, thanks all.

Ben.

Signature · 2 lines
Ben Hutchings
friends: People who know you well, but like you anyway.