From: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
To: mfuzzey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
Oliver Neukum <oneukum-l3A5Bk7waGM@public.gmane.org>
Cc: Matthieu CASTET
<matthieu.castet-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org>,
Russell King - ARM Linux
<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Gary King <GKing-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
linux-usb <linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Greg KH <greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
Subject: Re: Problem with non aligned DMA in usbnet on ARM
Date: Fri, 13 Aug 2010 06:42:32 -0700 (PDT) [thread overview]
Message-ID: <732137.54230.qm@web180303.mail.gq1.yahoo.com> (raw)
In-Reply-To: <201008131258.55016.oneukum-l3A5Bk7waGM@public.gmane.org>
> Subject: Re: Problem with non aligned DMA in usbnet on ARM
I remain unconvinced the bug is anywhere except
in whatever host controller is rejecting the
buffers it's given.
Does anyone have proof the bug is elsewhere?
Think for a moment what chaos the kernel would be
if arbitrary subsystems were allowed to introduce
random DMA alignment "requirements". It would not
be possible to pass buffers between subsystems with
any success at all...
> > 1) Require that usb drivers submit buffers obtained
> from kmalloc() and > friends
Requirements are already documented with the
Description of what memory is DMA-able. It's
not kmalloc() specifically that's required.
with no extra offsets.
Offsets have nothing to do with being DMA-able.
They might have to do with working around hardware
flaws though. (ISTR PXA255 also had a 32-bit goof,
making its DMA engine unusable for most purposes.)
> > 2) Require that usb_submit_urb() accept byte aligned buffers.
I believe we already require that. Of course,
the requirement is on HCDs, not on that call.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-08-13 13:42 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 9:41 Problem with non aligned DMA in usbnet on ARM Martin Fuzzey
[not found] ` <AANLkTi=ycg=adcizNWKMCb7EdfDANM=6Es7r_gF1LbhV-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-08-11 9:54 ` Russell King - ARM Linux
2010-08-11 10:11 ` Martin Fuzzey
2010-08-11 15:04 ` Greg KH
2010-08-11 16:08 ` Martin Fuzzey
[not found] ` <AANLkTimmJDKbh3_pRY_ASKvjsf4YuuUMh3edh5LvDv-p-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-08-11 17:42 ` Greg KH
[not found] ` <20100811174238.GA12382-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2010-08-11 19:07 ` Martin Fuzzey
2010-08-11 20:13 ` Greg KH
[not found] ` <20100811201332.GB10379-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2010-08-11 22:31 ` Martin Fuzzey
2010-08-12 17:01 ` Matthieu CASTET
2010-08-11 19:10 ` Oliver Neukum
2010-08-11 9:59 ` Matthieu CASTET
[not found] ` <4C627479.4060400-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org>
2010-08-11 11:38 ` Martin Fuzzey
[not found] ` <4C62C7B3.2030706@nvidia.com>
[not found] ` <20100811203505.GA463@n2100.arm.linux.org.uk>
[not found] ` <20100811203505.GA463-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2010-08-11 22:20 ` Martin Fuzzey
2010-08-11 22:47 ` Russell King - ARM Linux
[not found] ` <4C632217.9000608-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-08-12 17:08 ` Matthieu CASTET
2010-08-13 10:06 ` Martin Fuzzey
[not found] ` <4C65193E.4090807-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-08-13 10:58 ` Oliver Neukum
[not found] ` <201008131258.55016.oneukum-l3A5Bk7waGM@public.gmane.org>
2010-08-13 13:42 ` David Brownell [this message]
[not found] ` <732137.54230.qm-g47maUHHHF/6X00i2u5GFvu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-08-13 13:53 ` Oliver Neukum
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=732137.54230.qm@web180303.mail.gq1.yahoo.com \
--to=david-b-ybekhbn/0ldr7s880joybq@public.gmane.org \
--cc=GKing-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=matthieu.castet-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org \
--cc=mfuzzey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=oneukum-l3A5Bk7waGM@public.gmane.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).