All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@parisc-linux.org>
To: "David S. Miller" <davem@redhat.com>
Cc: grundler@parisc-linux.org, jgarzik@redhat.com,
	linux-kernel@vger.kernel.org, linux-net@vger.kernel.org
Subject: Re: [PATCH] 2.6.1 tg3 DMA engine test failure
Date: Sat, 24 Jan 2004 19:13:06 -0700	[thread overview]
Message-ID: <20040125021306.GE16272@colo.lackof.org> (raw)
In-Reply-To: <20040123.233241.59493446.davem@redhat.com>

On Fri, Jan 23, 2004 at 11:32:41PM -0800, David S. Miller wrote:
>    From: Grant Grundler <grundler@parisc-linux.org>
>    Date: Sat, 24 Jan 2004 00:30:32 -0700
> 
>    My gut feeling is if linux aligns or pads things nicely for any reason,
>    then the bye enables don't get used or clobber padding.
>    
> If the packet data length is an odd number of bytes, there is nothing
> we can do about this, and the newer tigon3 chips are going to use a
> cacheline burst for the end of the packet with the trailing byte
> enables turned off.  I've seen this myself and sparc64 PCI controllers
> generate a streaming byte hole error interrupt when it occurs and I
> get messages logged in dmesg :)

Ugh. Ok.

I was concerned about about the buffer not ending on a well aligned
boundary and someone elses data getting clobbered. But RX buffers are
managed by the OS and I expect them to be well aligned.

>    Maybe keep a shorter note about the bit changed meaning in later models
>    just to document the issues.
>    
> We can "document it" by having the setting of this bit be protected by
> chip version numbers.  I'd happily accept such a patch.

Well, you pointed out it needs to be set on bcm5700/01 for it's 
intended purpose.  And it needs to be set on 5703/04 to enable
PCI-X bug workaround.  BE bit "always" needs to be set.
Did you intend to alias the BE constant to another name?
(and then use respective chip version for each constant)

BTW, I don't know what the story is with bcm5705.

thanks,
grant

  parent reply	other threads:[~2004-01-25  2:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-24  1:36 [PATCH] 2.6.1 tg3 DMA engine test failure Grant Grundler
2004-01-24  5:00 ` David S. Miller
2004-01-24  7:30   ` Grant Grundler
2004-01-24  7:32     ` David S. Miller
2004-01-24 21:15       ` Jeff Garzik
2004-01-24 21:14         ` David S. Miller
2004-01-25  1:48         ` Grant Grundler
2004-01-25  1:53           ` Jeff Garzik
2004-01-25  5:31             ` Grant Grundler
2004-01-25  7:11               ` David S. Miller
2004-01-25  2:13       ` Grant Grundler [this message]
2004-01-26  7:52         ` David S. Miller

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=20040125021306.GE16272@colo.lackof.org \
    --to=grundler@parisc-linux.org \
    --cc=davem@redhat.com \
    --cc=jgarzik@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.