netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@linux-foundation.org>
To: pomac@vapor.com
Cc: netdev@vger.kernel.org
Subject: Re: [BUG] Sky2 driver in 2.6.22-rc5-git1-cfs-v17
Date: Thu, 21 Jun 2007 21:13:51 -0700	[thread overview]
Message-ID: <20070621211351.6d193bed@oldman> (raw)
In-Reply-To: <1182480325.7032.13.camel@localhost>

On Fri, 22 Jun 2007 04:45:25 +0200
Ian Kumlien <pomac@vapor.com> wrote:

> On tor, 2007-06-21 at 18:57 -0700, Stephen Hemminger wrote:
> > Redirected of LKML,  netdev is the proper list.
> 
> Thanks =)
> 
> > On Thu, 21 Jun 2007 22:51:32 +0200
> > Ian Kumlien <pomac@vapor.com> wrote:
> > 
> > > Hi, 
> > > 
> > > recently have started to see this in my dmesg:
> > > 
> > > NETDEV WATCHDOG: eth0: transmit timed out
> > > sky2 eth0: tx timeout
> > > sky2 eth0: transmit ring 449 .. 408 report=449 done=449
> > > sky2 eth0: disabling interface
> > > sky2 eth0: enabling interface
> > > sky2 eth0: ram buffer 48K
> > > sky2 eth0: Link is up at 1000 Mbps, full duplex, flow control rx
> > > 
> > > I'm not using MSI since it seems to have caused problems in the past.
> > > 
> > > I run with a 9k mtu
> > > 
> > > sky2 eth0: transmit ring 18 .. 489 report=18 done=18
> > > ---- I assume ring max is 512 (ie 1-512) since:
> > > 	Ring parameters for eth0:
> > > 	Current hardware settings:
> > > 	RX:             168
> > > 	RX Mini:        0
> > > 	RX Jumbo:       0
> > > 	TX:             511
> > > 	
> > > 	And 489 + 41 - 18 = 512
> > > 
> > > sky2 eth0: transmit ring 197 .. 156 report=197 done=197
> > > sky2 eth0: transmit ring 480 .. 439 report=480 done=480
> > > sky2 eth0: transmit ring 413 .. 372 report=413 done=413
> > > sky2 eth0: transmit ring 320 .. 279 report=320 done=320
> > > 
> > > Else, they are all off by 41.
> > > 
> > > Is this a known bug?
> > no
> 
> Damn =P
> 
> > > Comments? ideas?
> > >
> > which chip version. probably Yukon EC that seems to be the only one
> > that does gigabit with Ram buffer.
> 
> sky2 0000:02:00.0: v1.14 addr 0xdbffc000 irq 18 Yukon-EC (0xb6) rev 2
> 
> > Does it work alright if you set transmit ring size smaller with ethtool?
> > There might be an off-by-one bug in the worst case calculations about
> > list element usage.
> 
> I tried this... but not with a specific size, i think i did 480, and yes
> it timed out... any ideas on a more educated value?
> 
> -- 
> Ian Kumlien <pomac () vapor ! com> -- http://pomac.netswarm.net

Also try setting the idle_timeout module parameter to something link 10 (ms).
It will fix problems with lost interrupts.

  reply	other threads:[~2007-06-22  4:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1182459092.7032.11.camel@localhost>
2007-06-22  1:57 ` [BUG] Sky2 driver in 2.6.22-rc5-git1-cfs-v17 Stephen Hemminger
2007-06-22  2:45   ` Ian Kumlien
2007-06-22  4:13     ` Stephen Hemminger [this message]
2007-06-22 12:47       ` Ian Kumlien
2007-06-24 14:13       ` Ian Kumlien

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=20070621211351.6d193bed@oldman \
    --to=shemminger@linux-foundation.org \
    --cc=netdev@vger.kernel.org \
    --cc=pomac@vapor.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).