From: Jonathan Nieder <jrnieder@gmail.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: Julian Gilbey <jdg@debian.org>,
Mirko Lindner <mlindner@marvell.com>,
Stephen Hemminger <shemminger@vyatta.org>,
netdev@vger.kernel.org
Subject: Re: [PATCH 2/2] [sky2] Fix for interrupt handler
Date: Thu, 25 Oct 2012 15:36:46 -0700 [thread overview]
Message-ID: <20121025223646.GA1131@elie.Belkin> (raw)
In-Reply-To: <1341394726.14972.41.camel@mlindner-lin.skd.de>
Hi,
Mirko Lindner wrote:
> Re-enable interrupts if it is not our interrupt
>
> Signed-off-by: Mirko Lindner <mlindner@marvell.com>
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 <jdg@debian.org>
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=*
> ---
> 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
next prev parent reply other threads:[~2012-10-25 22:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-04 9:38 [PATCH 2/2] [sky2] Fix for interrupt handler Mirko Lindner
2012-10-25 22:36 ` Jonathan Nieder [this message]
2012-11-03 10:04 ` [3.0.y, 3.2.y, 3.4.y] " Jonathan Nieder
2012-11-12 8:24 ` Jonathan Nieder
2012-11-13 8:14 ` David Miller
2012-11-14 5:49 ` Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121025223646.GA1131@elie.Belkin \
--to=jrnieder@gmail.com \
--cc=davem@davemloft.net \
--cc=jdg@debian.org \
--cc=mlindner@marvell.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).