From: Stephen Hemminger <shemminger@osdl.org>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: netdev@vger.kernel.org
Subject: Re: sky2 problem on powerpc
Date: Mon, 4 Sep 2006 20:41:48 -0700 [thread overview]
Message-ID: <20060904204148.6f9749b3@localhost.localdomain> (raw)
In-Reply-To: <1157355748.22705.32.camel@localhost.localdomain>
On Mon, 04 Sep 2006 17:42:27 +1000
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> This fixes sky2 driver on big endian machines. I choose not to use the
> hardware byteswap facility as it would have required to have a different
> definition of the various ring data structures and it looks ugly :) On
> powerpc, there is pretty much no overhead at doing byteswap.
>
> The patch has a couple of places where I reversed 2 assignments, they
> are harmless, it was before I figured out that the chip will
> (apparently) not access a descriptor before it's been told to do so via
> MMIO, and thus the order of the writes to the descriptors is irrelevant
> (I was also adding wmb's though I removed them).
I'll put a minimized version of this in the next patch set.
There is no need to re order assignments.
>
> There is a couple of places where we were doing a BE and not LE
> conversion of a descriptor field (typically in the VLAN code). I'm not
> sure what's up there but BE "felt" wrong. I have turned them into LE
> conversions but then I haven't tested VLAN, and I might just
> misudnerstand what's happening there so I'll let you decide what to do
> about those.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
It may not need any swapping, it is hard to tell what the hardware
will do without experimentation.
next prev parent reply other threads:[~2006-09-05 3:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-04 5:24 sky2 problem on powerpc Benjamin Herrenschmidt
2006-09-04 7:21 ` Benjamin Herrenschmidt
2006-09-04 7:42 ` Benjamin Herrenschmidt
2006-09-04 21:05 ` Segher Boessenkool
2006-09-04 21:33 ` Benjamin Herrenschmidt
2006-09-05 3:41 ` Stephen Hemminger [this message]
2006-09-05 3:47 ` Benjamin Herrenschmidt
2006-09-05 4:15 ` Stephen Hemminger
2006-09-05 21:11 ` Benjamin Herrenschmidt
2006-09-05 21:36 ` Stephen Hemminger
2006-09-05 22:00 ` 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=20060904204148.6f9749b3@localhost.localdomain \
--to=shemminger@osdl.org \
--cc=benh@kernel.crashing.org \
--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;
as well as URLs for NNTP newsgroup(s).