mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Michael Chan <mchan@broadcom.com>
Cc: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>,
	netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
	"Linux Kernel list" <linux-kernel@vger.kernel.org>
Subject: Re: TG3 data corruption (TSO ?)
Date: Fri, 8 Sep 2006 21:29:38 +0200	[thread overview]
Message-ID: <9EAEC3B2-260E-444E-BCA1-3C9806340F65@kernel.crashing.org> (raw)
In-Reply-To: <1551EAE59135BE47B544934E30FC4FC093FB19@NT-IRVA-0751.brcm.ad.broadcom.com>

>> I've been chasing with Segher a data corruption problem lately.
>> Basically transferring huge amount of data (several Gb) and I get
>> corrupted data at the rx side. I cannot tell for sure wether what  
>> I've
>> been observing here is the same problem that segher's been seing  
>> on is
>> blades, he will confirm or not. He also seemed to imply that  
>> reverting
>> to an older kernel on the -receiver- side fixed it, which makes me
>> wonder, since it's looks really like a sending side problem (see
>> explanation below), if some change in, for exmaple, window scaling,
>> might hide or trigger it.
>
> Please send me lspci and tg3 probing output so that I know what
> tg3 hardware you're using.

I use a 5780 rev. A3, but the problem is not limited to this chip.

> I also want to look at the tcpdump or
> ethereal on the mirrored port that shows the packet being corrupted.

I don't have such, sorry.

>> That's all the data I have at this point. I can't guarantee 100% that
>> it's a TSO bug (it might be a bug that TSO renders visible
>> due to timing
>> effects) but it looks like it since I've not reproduced yet with TSO
>> disabled.

It seems to indeed to only be exposed by TSO, not actually a
bug of it /an sich/.

I've got a patch that seems so solve the problem, it needs more testing
though (maybe Ben can do this :-) ).  The problem is that there should
be quite a few wmb()'s in the code that are just not there; adding some
to tg3_set_txd() seems to fix the immediate problem but more is needed
(and I don't see why those should be needed, unless tg3_set_txd() is
updating a life ring entry in place or something like that).

More testing is needed, but the problem is definitely the lack of memory
ordering.


Segher


  reply	other threads:[~2006-09-08 19:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-08  8:30 Benjamin Herrenschmidt
2006-09-08 15:49 ` Michael Chan
2006-09-08 19:29   ` Segher Boessenkool [this message]
2006-09-08 19:54     ` Michael Chan
2006-09-08 21:46       ` Benjamin Herrenschmidt
2006-09-08 22:22         ` Michael Chan
2006-09-09  9:22         ` David Miller
2006-09-09 22:36           ` Benjamin Herrenschmidt
2006-09-10  0:38             ` Alan Cox
2006-09-10  1:17               ` Benjamin Herrenschmidt
2006-09-11  4:53       ` Benjamin Herrenschmidt
2006-09-11  5:18         ` Michael Chan
2006-09-11  5:25           ` Benjamin Herrenschmidt
2006-09-11  5:33             ` Michael Chan
2006-09-11  5:52               ` Benjamin Herrenschmidt
2006-09-11  8:20                 ` Benjamin Herrenschmidt
2006-09-11 13:54                 ` Segher Boessenkool
2006-09-11 16:08                 ` Michael Chan
2006-09-08 21:41   ` Benjamin Herrenschmidt
2006-09-08 22:07     ` Michael Chan
2006-09-08 22:25       ` Benjamin Herrenschmidt
2006-09-08 22:40         ` Michael Chan
2006-09-08 22:49           ` Benjamin Herrenschmidt

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=9EAEC3B2-260E-444E-BCA1-3C9806340F65@kernel.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=benh@kernel.crashing.org \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchan@broadcom.com \
    --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

all inboxes | Powered by JetHome®