From: Lekensteyn <lekensteyn@gmail.com>
To: "dannyfeng(冯小天)" <dannyfeng@tencent.com>
Cc: "David S. Miller" <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [REGRESSION, v3.7-rc5, bisected] 100% CPU usage in softirqd, unable to shutdown(Internet mail)
Date: Tue, 13 Nov 2012 19:25:50 +0100 [thread overview]
Message-ID: <1821565.8nx6NH6PfI@al> (raw)
In-Reply-To: <0ED22CD02BE51541A6BCC0D6BDA097AE0F5A6D@EXMBX-BJ003.tencent.com>
On Tuesday 13 November 2012 10:26:03 dannyfeng wrote:
> I'm sorry, I didn't noticed that jme_open use tasklet_enable, which may
> reuse a killed tasklet... Could you please try following patch?
> ---
> diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c
> index 92317e9..c0314c1 100644
> --- a/drivers/net/ethernet/jme.c
> +++ b/drivers/net/ethernet/jme.c
> @@ -1860,10 +1860,14 @@ jme_open(struct net_device *netdev)
> jme_clear_pm(jme);
> JME_NAPI_ENABLE(jme);
>
> - tasklet_enable(&jme->linkch_task);
> - tasklet_enable(&jme->txclean_task);
> - tasklet_hi_enable(&jme->rxclean_task);
> - tasklet_hi_enable(&jme->rxempty_task);
> + tasklet_init(&jme->linkch_task, jme_link_change_tasklet,
> + (unsigned long) jme);
> + tasklet_init(&jme->txclean_task, jme_tx_clean_tasklet,
> + (unsigned long) jme);
> + tasklet_init(&jme->rxclean_task, jme_rx_clean_tasklet,
> + (unsigned long) jme);
> + tasklet_init(&jme->rxempty_task, jme_rx_empty_tasklet,
> + (unsigned long) jme);
>
> rc = jme_request_irq(jme);
> if (rc)
> @@ -3079,22 +3083,6 @@ jme_init_one(struct pci_dev *pdev,
> tasklet_init(&jme->pcc_task,
> jme_pcc_tasklet,
> (unsigned long) jme);
> - tasklet_init(&jme->linkch_task,
> - jme_link_change_tasklet,
> - (unsigned long) jme);
> - tasklet_init(&jme->txclean_task,
> - jme_tx_clean_tasklet,
> - (unsigned long) jme);
> - tasklet_init(&jme->rxclean_task,
> - jme_rx_clean_tasklet,
> - (unsigned long) jme);
> - tasklet_init(&jme->rxempty_task,
> - jme_rx_empty_tasklet,
> - (unsigned long) jme);
> - tasklet_disable_nosync(&jme->linkch_task);
> - tasklet_disable_nosync(&jme->txclean_task);
> - tasklet_disable_nosync(&jme->rxclean_task);
> - tasklet_disable_nosync(&jme->rxempty_task);
> jme->dpi.cur = PCC_P1;
>
> jme->reg_ghc = 0;
Tested-by: Peter Wu <lekensteyn@gmail.com>
I have no idea what this does, but it seems to help as I can suspend/resume
without rapidly rising softirqs. (applied on top of 3.7-rc5.)
I tested it like this:
- rmmod jme
- insmod <path to new patched build>/jme.ko
I hand-edited the code as your patch does not apply due to tab to space
conversion. You might want to use a real email client instead of the web
interface.
Regards,
Peter
prev parent reply other threads:[~2012-11-13 18:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-12 21:20 [REGRESSION,v3.7-rc5,bisected] 100% CPU usage in softirqd, unable to shutdown Lekensteyn
2012-11-13 10:26 ` [REGRESSION, v3.7-rc5, bisected] 100% CPU usage in softirqd, unable to shutdown(Internet mail) dannyfeng(冯小天)
2012-11-13 18:25 ` Lekensteyn [this message]
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=1821565.8nx6NH6PfI@al \
--to=lekensteyn@gmail.com \
--cc=dannyfeng@tencent.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.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).