From: brian@walsh.ws (Brian Walsh)
To: linux-arm-kernel@lists.infradead.org
Subject: ixp4xx dmabounce
Date: Thu, 24 Sep 2009 12:02:25 -0400 [thread overview]
Message-ID: <a104b22c0909240902g31da6983w26be4526cbdfc16c@mail.gmail.com> (raw)
In-Reply-To: <m33a6dk9li.fsf@intrepid.localdomain>
On Wed, Sep 23, 2009 at 10:40 AM, Krzysztof Halasa <khc@pm.waw.pl> wrote:
> Mikael Pettersson <mikpe@it.uu.se> writes:
>
>> I strongly suspect that something on the USB or networking side
>> is allocating I/O buffers without observing the correct DMA APIs.
>
> At least the network stack allocates buffers ignoring the DMA masks.
> The buffers may be allocated by one device (driver) and passed to
> another device. The only plausible way to fix it is IMHO limiting all
> skb allocations to the common mask (drivers would be free to either
> handle or drop skbs outside of their mask).
>
> This is relatively easy to implement and I'm going to try it, when time
> permits.
>
>> I think Krzysztof Halasa mentioned running ixp4xx devices with 128MB
>> RAM and a kernel hacked so kernel-private allocations would always be
>> served from memory below 64MB. I think he mentioned doing that because
>> of networking components that would ignore PCI DMA mask constraints.
>
> Right. This works fine for network buffers because they aren't that
> large. The current patch is suboptimal, though.
> --
> Krzysztof Halasa
>
I tried Krzysztof's patch and it had no noticeable affect. I am still getting
about 6.3 Mbps IP data throughput when only using the ohci controller and
about 3.6 Mbps when the device is attached to the ehci controller. This
device works fine when running the same testing attached to an x86
configured machine and gets about 18 Mbps IP data throughput.
next prev parent reply other threads:[~2009-09-24 16:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-17 21:02 ixp4xx dmabounce Brian Walsh
2009-09-17 21:53 ` Russell King - ARM Linux
2009-09-22 22:02 ` Brian Walsh
2009-09-27 16:55 ` Russell King - ARM Linux
2009-09-29 15:16 ` Brian Walsh
2009-09-22 23:42 ` Mikael Pettersson
2009-09-23 14:40 ` Krzysztof Halasa
2009-09-24 16:02 ` Brian Walsh [this message]
2009-09-24 16:50 ` Mikael Pettersson
2009-09-24 22:15 ` Brian Walsh
2009-09-24 23:34 ` Mikael Pettersson
2009-09-24 23:43 ` Brian Walsh
2009-09-24 16:51 ` Krzysztof Halasa
2009-09-24 16:57 ` Brian Walsh
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=a104b22c0909240902g31da6983w26be4526cbdfc16c@mail.gmail.com \
--to=brian@walsh.ws \
--cc=linux-arm-kernel@lists.infradead.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).