Thread (4 messages) 4 messages, 3 authors, 2013-06-28

Re: [RFC PATCH] usb: hcd: warn about URB buffers that are not DMA aligned and are about to be DMA mapped

From: Jussi Kivilinna <hidden>
Date: 2013-06-16 10:35:40

Possibly related (same subject, not in this thread)

On 16.06.2013 11:21, Oliver Neukum wrote:
On Saturday 15 June 2013 16:22:30 Jussi Kivilinna wrote:
quoted
Hm.. rethink this a bit.

Transfer buffer might be dma aligned but shorter than cacheline and end of cacheline
used as something else. Manual alignment by host driver does not catch that
or fix that.
So, yes.. dma mapping should work with unaligned buffers, but maybe the actual
problem is multiple buffers from same cacheline.
The buffers kmalloc() returns are OK in that regard. A driver that uses
a buffer for anything but buffering is buggy.
Ok, I'll look at that direction. Thanks.

-Jussi
	Regards
		Oliver
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help