From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Risto Suominen <risto.suominen@gmail.com>
Cc: LinuxPPC-dev <LinuxPPC-dev@ozlabs.org>
Subject: Re: MACE DMA problem on Powermac 7300
Date: Mon, 07 Dec 2009 13:03:44 +1100 [thread overview]
Message-ID: <1260151424.2249.1.camel@pasglop> (raw)
In-Reply-To: <46e1c7760912061436l76b895ebvf27407a08d41aa45@mail.gmail.com>
On Mon, 2009-12-07 at 00:36 +0200, Risto Suominen wrote:
> I post this in hope that somebody could shed some light on how should
> the DMA work in conjunction with the MACE ethernet controller. I find
> difficult to understand why it does not work in my case:
>
> What happens? First two bytes of a received frame are not what they
> should be in more than 50% of frames. This can be avoided by receiving
> the frame on a word boundary, but with the usual skb_reserve(..., 2)
> (to make the IP header land on word boundary), it won't work.
>
> So, I can make the driver work by receiving at 0 offset, and then
> moving the data 2 bytes up, before handing it over to upper layers.
>
> This used to work with a 2.4.27 kernel, obviously the Grand Central
> DBDMA controller can receive on non-word boundaries. Now I have
> 2.6.15.7.
>
> Any ideas, what could cause this kind of behaviour (and regression)?
Cache coherency bugs in the chipset or HW bugs in DBDMA, we've been
seeing those on/off on those old apple chipsets...
Try forcing a 32 bytes alignment ?
Cheers,
Ben.
next prev parent reply other threads:[~2009-12-07 2:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-06 22:36 MACE DMA problem on Powermac 7300 Risto Suominen
2009-12-07 2:03 ` Benjamin Herrenschmidt [this message]
2009-12-07 16:22 ` Risto Suominen
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=1260151424.2249.1.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=LinuxPPC-dev@ozlabs.org \
--cc=risto.suominen@gmail.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).