netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michele Baldessari <michele@acksyn.org>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: Dirk Kraft <dirk.kraft@gmail.com>,
	netdev@vger.kernel.org, Julia Lawall <Julia.Lawall@lip6.fr>
Subject: Re: Bug - regression - Via velocity interface coming up freezes kernel
Date: Mon, 11 Nov 2013 23:46:56 +0000	[thread overview]
Message-ID: <20131111234656.GA4846@marquez.int.rhx> (raw)
In-Reply-To: <20130922221109.GA14246@electric-eye.fr.zoreil.com>

Hi Francois,

On Mon, Sep 23, 2013 at 12:11:09AM +0200, Francois Romieu wrote:
> Dirk Kraft <dirk.kraft@gmail.com> :
> [...]
> > I observe problems with my machine freezing when bringing up the
> > network interface (via velocity based). Detailed report below.
> > 
> > First message was rejected because of html. Julia Lawall, sorry about
> > sending multiple copies.
> > 
> > [1.] One line summary of the problem:
> > Via_velocity interface coming up freezes kernel - WARNING: CPU: 0 PID:
> > 1529 at /build/buildd/linux-3.11.0/kernel/softirq.c:159
> > local_bh_enable+0x60/0x90()
> 
> netif_receive_skb with irq disabled ?
> 
> You can try this one as a wild guess before I have more time to analyze.
> 
> diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c
> index d022bf9..64c42be 100644
> --- a/drivers/net/ethernet/via/via-velocity.c
> +++ b/drivers/net/ethernet/via/via-velocity.c
> @@ -2172,16 +2172,13 @@ static int velocity_poll(struct napi_struct *napi, int budget)
>  	unsigned int rx_done;
>  	unsigned long flags;
>  
> -	spin_lock_irqsave(&vptr->lock, flags);
>  	/*
>  	 * Do rx and tx twice for performance (taken from the VIA
>  	 * out-of-tree driver).
>  	 */
> -	rx_done = velocity_rx_srv(vptr, budget / 2);
> -	velocity_tx_srv(vptr);
> -	rx_done += velocity_rx_srv(vptr, budget - rx_done);
> +	rx_done = velocity_rx_srv(vptr, budget);
> +	spin_lock_irqsave(&vptr->lock, flags);
>  	velocity_tx_srv(vptr);
> -
>  	/* If budget not fully consumed, exit the polling mode */
>  	if (rx_done < budget) {
>  		napi_complete(napi);

any chance you can submit this officially? Or does this patch need some
more work?

Two people confirmed it fixed the issue for them on netdev and one
on Fedora's bugzilla so far.

Thanks,
Michele
-- 
Michele Baldessari            <michele@acksyn.org>
C2A5 9DA3 9961 4FFB E01B  D0BC DDD4 DCCB 7515 5C6D

  parent reply	other threads:[~2013-11-11 23:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-22 17:28 Bug - regression - Via velocity interface coming up freezes kernel Dirk Kraft
2013-09-22 17:37 ` Julia Lawall
2013-09-22 22:11 ` Francois Romieu
2013-09-23  6:29   ` Dirk Kraft
2013-09-23  7:05     ` Dirk Kraft
2013-09-27  9:10   ` Dirk Kraft
2013-10-06  8:19     ` Jamie Heilman
2013-11-11 23:46   ` Michele Baldessari [this message]
2013-11-14  7:24     ` Francois Romieu
2013-11-15  0:01       ` Francois Romieu
2013-11-23 18:28         ` Michele Baldessari

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=20131111234656.GA4846@marquez.int.rhx \
    --to=michele@acksyn.org \
    --cc=Julia.Lawall@lip6.fr \
    --cc=dirk.kraft@gmail.com \
    --cc=netdev@vger.kernel.org \
    --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).