Fix for interrupt handler
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
@@ -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
Hi,
Quoted 3 lines · Mirko Lindner
Re-enable interrupts if it is not our interrupt
Signed-off-by Mirko Lindner <[email protected]>
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@@ -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
Quoted 5 lines · Jonathan Nieder
Quoted 3 lines · Mirko Lindner
Re-enable interrupts if it is not our interrupt
Signed-off-by Mirko Lindner <[email protected]>
[...]
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=*
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
d663d181b9e9sky2: Fix for interrupt handlera 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
David Miller
maintainerFrom: 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
Signed-off-by Mirko Lindner <[email protected]>[...]
Quoted 1 line
Quoted 7 lines
Ping. Dave, is
d663d181b9e9sky2: Fix for interrupt handlera 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.
Ben Hutchings
AppliedQuoted 14 lines · David Miller
From: Jonathan Nieder <[email protected]>
Date: Sat, 3 Nov 2012 03:04:48 -0700Quoted 11 lines · Jonathan Nieder
Quoted 5 lines
Quoted 3 lines · Mirko Lindner
Re-enable interrupts if it is not our interrupt
Signed-off-by Mirko Lindner <[email protected]>[...]
Quoted 1 line
Ping. Dave, is
Quoted 7 lines
Quoted 5 lines
d663d181b9e9sky2: Fix for interrupt handlera 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.