[PATCH 2/2] [sky2] Fix for interrupt handler

Subsystems: marvell gigabit ethernet drivers (skge/sky2), networking drivers, the rest

STALE5046d

6 messages, 4 authors, 2012-11-14 · open the first message on its own page

[PATCH 2/2] [sky2] Fix for interrupt handler

From: Mirko Lindner <hidden>
Date: 2012-07-04 09:38:51

Re-enable interrupts if it is not our interrupt


Signed-off-by: Mirko Lindner <redacted>
---
 drivers/net/ethernet/marvell/sky2.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c
index f1163b2..2b0748d 100644
--- a/drivers/net/ethernet/marvell/sky2.c
+++ b/drivers/net/ethernet/marvell/sky2.c
@@ -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]);
 
-- 
1.7.10.4

Re: [PATCH 2/2] [sky2] Fix for interrupt handler

From: Jonathan Nieder <hidden>
Date: 2012-10-25 22:36:55

Hi,

Mirko Lindner wrote:
Re-enable interrupts if it is not our interrupt

Signed-off-by: Mirko Lindner <redacted>
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.

Tested-by: Julian Gilbey <redacted>

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 hunk
---
 drivers/net/ethernet/marvell/sky2.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c
index f1163b2..2b0748d 100644
--- a/drivers/net/ethernet/marvell/sky2.c
+++ b/drivers/net/ethernet/marvell/sky2.c
@@ -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]);
 
-- 
1.7.10.4

[3.0.y, 3.2.y, 3.4.y] Re: [PATCH 2/2] [sky2] Fix for interrupt handler

From: Jonathan Nieder <hidden>
Date: 2012-11-03 10:04:55

On October 25, Jonathan Nieder wrote:
Mirko Lindner wrote:
quoted
Re-enable interrupts if it is not our interrupt

Signed-off-by: Mirko Lindner <redacted>
[...]
Tested-by: Julian Gilbey <redacted> # 3.2.y, Inspiron 1545
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
[1] http://bugs.debian.org/681280
[2] http://patchwork.ozlabs.org/bundle/davem/stable/?state=*

Re: [3.0.y, 3.2.y, 3.4.y] Re: [PATCH 2/2] [sky2] Fix for interrupt handler

From: Jonathan Nieder <hidden>
Date: 2012-11-12 08:24:27

On November 3, Jonathan Nieder wrote:
On October 25, Jonathan Nieder wrote:
quoted
Mirko Lindner wrote:
quoted
quoted
Re-enable interrupts if it is not our interrupt
[...]
quoted
Tested-by: Julian Gilbey <redacted> # 3.2.y, Inspiron 1545
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

Re: [3.0.y, 3.2.y, 3.4.y] Re: [PATCH 2/2] [sky2] Fix for interrupt handler

From: David Miller <davem@davemloft.net>
Date: 2012-11-13 08:14:53

From: Jonathan Nieder <redacted>
Date: Sat, 3 Nov 2012 03:04:48 -0700
On October 25, Jonathan Nieder wrote:
quoted
Mirko Lindner wrote:
quoted
quoted
Re-enable interrupts if it is not our interrupt

Signed-off-by: Mirko Lindner <redacted>
[...]
quoted
Tested-by: Julian Gilbey <redacted> # 3.2.y, Inspiron 1545
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.

Re: [3.0.y, 3.2.y, 3.4.y] Re: [PATCH 2/2] [sky2] Fix for interrupt handler

From: Ben Hutchings <hidden>
Date: 2012-11-14 05:49:17

On Tue, 2012-11-13 at 03:14 -0500, David Miller wrote:
From: Jonathan Nieder <redacted>
Date: Sat, 3 Nov 2012 03:04:48 -0700
quoted
On October 25, Jonathan Nieder wrote:
quoted
Mirko Lindner wrote:
quoted
quoted
Re-enable interrupts if it is not our interrupt

Signed-off-by: Mirko Lindner <redacted>
[...]
quoted
Tested-by: Julian Gilbey <redacted> # 3.2.y, Inspiron 1545
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.
Queued up for 3.2, thanks all.

Ben.

-- 
Ben Hutchings
friends: People who know you well, but like you anyway.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help