From: David Miller <davem@davemloft.net>
To: jamie.gloudon@gmail.com
Cc: netdev@vger.kernel.org, rl@hellgate.ch, romieu@fr.zoreil.com
Subject: Re: [BUG] via-rhine: NOHZ: local_softirq_pending 08
Date: Tue, 29 Jan 2013 17:47:02 -0500 (EST) [thread overview]
Message-ID: <20130129.174702.196275387733819730.davem@davemloft.net> (raw)
In-Reply-To: <51007b84.03ab640a.1cde.fffff62a@mx.google.com>
From: Jamie Gloudon <jamie.gloudon@gmail.com>
Date: Wed, 23 Jan 2013 20:08:29 -0400
> While conducting some tests on a VT6105M card. I noticed this message:
>
> kernel: [ 160.311113] NOHZ: local_softirq_pending 08
>
> I was able to reliably reproduce the error message by setting autoneg off and changing the interface speed from 100 to 10 with ethtool.
I wonder if this is due to some oversights during the NAPI changes
that went in about a year ago.
Francois, if you move rhine_tx() work into the driver's NAPI poll
routine, as you did in:
commit 7ab87ff4c770eed71e3777936299292739fcd0fe
Author: Francois Romieu <romieu@fr.zoreil.com>
Date: Fri Jan 6 21:42:26 2012 +0100
via-rhine: move work from irq handler to softirq and beyond.
I don't think you can't keep using dev_kfree_skb_irq() there.
Francois any objections to this patch?
====================
via-rhine: Don't use dev_kfree_skb_irq() in softirq context.
When the TX reclaim of this driver was moved into NAPI poll,
using dev_kfree_skb_irq() stopped being appropriate.
Use plain dev_kfree_skb() instead.
Reported-by: Jamie Gloudon <jamie.gloudon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c
index 7992b3e..f08e970 100644
--- a/drivers/net/ethernet/via/via-rhine.c
+++ b/drivers/net/ethernet/via/via-rhine.c
@@ -1801,7 +1801,7 @@ static void rhine_tx(struct net_device *dev)
rp->tx_skbuff[entry]->len,
PCI_DMA_TODEVICE);
}
- dev_kfree_skb_irq(rp->tx_skbuff[entry]);
+ dev_kfree_skb(rp->tx_skbuff[entry]);
rp->tx_skbuff[entry] = NULL;
entry = (++rp->dirty_tx) % TX_RING_SIZE;
}
next prev parent reply other threads:[~2013-01-29 22:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-24 0:08 [BUG] via-rhine: NOHZ: local_softirq_pending 08 Jamie Gloudon
2013-01-24 1:04 ` Jamie Gloudon
2013-01-29 22:47 ` David Miller [this message]
2013-01-30 0:04 ` Francois Romieu
2013-01-30 3:53 ` David Miller
2013-01-30 4:00 ` Jamie Gloudon
2013-01-30 3:54 ` Jamie Gloudon
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=20130129.174702.196275387733819730.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=jamie.gloudon@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=rl@hellgate.ch \
--cc=romieu@fr.zoreil.com \
/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).