netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: richard.rojfors@endian.se
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] macb: avoid lockup when TGO during underrun
Date: Sun, 18 Jan 2009 21:57:49 -0800 (PST)	[thread overview]
Message-ID: <20090118.215749.215909519.davem@davemloft.net> (raw)
In-Reply-To: <496F80B8.6020408@endian.se>

From: Richard Röjfors <richard.rojfors@endian.se>
Date: Thu, 15 Jan 2009 19:30:16 +0100

> This patch against linux-2.6.28 solves an issue where macb might run out of TX buffers.
> 
> In rare cases when an underrun occur, all macb buffers where consumed and the netif_queue was stopped infinitely. This
> happens then the TGO (transfer ongoing) bit in the TSR is set (and UND). It seems like clening up after the underrun
> makes the driver and the macb hardware end up in an inconsistent state. The result of this is that in the following
> calls to macb_tx no TX buffers are released -> the netif_queue was stopped, and never woken up again.
> 
> The solution is to disable the transmitter, if TGO is set, before clening up after the underrun, and re-enable the
> transmitter when the cleaning up is done.
> 
> 
> A patch to avoid lockup in the macb driver in some rare underrun cases.
> Signed-off-by: Richard Röjfors <richard.rojfors@endian.se>

Patch applied, thanks Richard.

      reply	other threads:[~2009-01-19  5:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15 18:30 [PATCH] macb: avoid lockup when TGO during underrun Richard Röjfors
2009-01-19  5:57 ` David Miller [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=20090118.215749.215909519.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=richard.rojfors@endian.se \
    /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).