From: Anand Gadiyar <gadiyar@ti.com>
To: Ming Lei <tom.leiming@gmail.com>
Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org,
Greg Kroah-Hartman <gregkh@suse.de>, Felipe Balbi <balbi@ti.com>,
Ajay Kumar Gupta <ajay.gupta@ti.com>,
Mike Frysinger <vapier@gentoo.org>,
hemahk@ti.com
Subject: Re: [PATCH RFC] usb: musb: fail unaligned DMA transfers on v1.8 and above
Date: Mon, 08 Nov 2010 11:51:55 +0530 [thread overview]
Message-ID: <4CD79703.6010503@ti.com> (raw)
In-Reply-To: <AANLkTimAmGNtH3OTF9+G55jVYrokwe6bqENhaxHmtdv+@mail.gmail.com>
On 10/31/2010 3:29 PM, Ming Lei wrote:
> 2010/10/31 Anand Gadiyar<gadiyar@ti.com>:
>> The Inventra DMA engine in version 1.8 and later of the MUSB
>> controller cannot handle DMA addresses that are not aligned
>> to a 4 byte boundary. It ends up ignoring the last two bits
>> programmed in the DMA_ADDR register. This is a deliberate
>> design change in the controller and is documented in the
>> programming guide.
>>
>> Earlier versions of the controller could handle these
>> accesses just fine.
>>
>> Fail dma_channel_program if we see an unaligned address when
>> using the newer controllers, so that the caller can carry out
>> the transfer using PIO mode.
>> (Current callers already have this backup path in place).
>>
>> Signed-off-by: Anand Gadiyar<gadiyar@ti.com>
>> Cc: Felipe Balbi<balbi@ti.com>
>> Cc: Ming Lei<tom.leiming@gmail.com>
>> Cc: Ajay Kumar Gupta<ajay.gupta@ti.com>
>> Cc: Mike Frysinger<vapier@gentoo.org>
>
> Tested-by: Ming Lei<tom.leiming@gmail.com>
>
> This patch is verified OK about g_ether function on beagle xM board,
> but the revised patch "usb: musb: gadget: Unmapping the dma buffer
> when switching to PIO mode" [1] should be applied first.
>
>> ---
>> Patch based on linux-next as of 20101029.
>>
>> I believe Blackfin is also affected by this, but I'm not sure how
>> they're working around this. Mike?
>
> MUSB on Blackfin will fallback to PIO too, so no any working around
> for it, right?
>
I meant Blackfin should also have hit this issue so far. I'm making
a change based on the MUSB revision - so this change will affect
Blackfin for sure - they use revision 1.9 and 2.0 I think. So I'm just
wondering if they really are affected, or they've simply never hit this
scenario before.
- Anand
next prev parent reply other threads:[~2010-11-08 6:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-31 5:25 [PATCH RFC] usb: musb: fail unaligned DMA transfers on v1.8 and above Anand Gadiyar
[not found] ` <1288502759-18618-1-git-send-email-gadiyar-l0cyMroinI0@public.gmane.org>
2010-10-31 9:59 ` Ming Lei
2010-11-08 6:21 ` Anand Gadiyar [this message]
2010-11-01 12:43 ` Sergei Shtylyov
2010-11-05 12:26 ` Felipe Balbi
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=4CD79703.6010503@ti.com \
--to=gadiyar@ti.com \
--cc=ajay.gupta@ti.com \
--cc=balbi@ti.com \
--cc=gregkh@suse.de \
--cc=hemahk@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=tom.leiming@gmail.com \
--cc=vapier@gentoo.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