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

2013-06-15 Thread Ming Lei
Cc: netdev On Fri, Jun 14, 2013 at 9:38 PM, Jussi Kivilinna wrote: > Appearently some out-of-tree USB host drivers do not handle DMA alignment for Looks these host drivers have to face the fact that the transfer buffer is often DMA non-aligned from network device drivers(in fact, the buffer is f

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

2013-06-15 Thread Jussi Kivilinna
On 14.06.2013 23:20, Alan Stern wrote: > On Fri, 14 Jun 2013, Jussi Kivilinna wrote: > >> Appearently some out-of-tree USB host drivers do not handle DMA alignment for >> URB buffers and let core/hcd.c to do the mapping on architectures that have >> minimum DMA alignment requirements. This leads t

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

2013-06-15 Thread Jussi Kivilinna
On 15.06.2013 10:41, Ming Lei wrote: > Cc: netdev > > On Fri, Jun 14, 2013 at 9:38 PM, Jussi Kivilinna > wrote: >> Appearently some out-of-tree USB host drivers do not handle DMA alignment for > > Looks these host drivers have to face the fact that the transfer buffer is > often > DMA non-alig

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

2013-06-15 Thread Ming Lei
On Sat, Jun 15, 2013 at 6:19 PM, Jussi Kivilinna wrote: > On 15.06.2013 10:41, Ming Lei wrote: >> Cc: netdev >> >> On Fri, Jun 14, 2013 at 9:38 PM, Jussi Kivilinna >> wrote: >>> Appearently some out-of-tree USB host drivers do not handle DMA alignment >>> for >> >> Looks these host drivers have

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

2013-06-15 Thread Jussi Kivilinna
On 15.06.2013 15:07, Ming Lei wrote: > On Sat, Jun 15, 2013 at 6:19 PM, Jussi Kivilinna > wrote: >> On 15.06.2013 10:41, Ming Lei wrote: >>> Cc: netdev >>> >>> On Fri, Jun 14, 2013 at 9:38 PM, Jussi Kivilinna >>> wrote: Appearently some out-of-tree USB host drivers do not handle DMA alignm

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

2013-06-15 Thread Jussi Kivilinna
On 15.06.2013 16:10, Jussi Kivilinna wrote: [...] >> >>> > > Instead of fixing host drivers, users end up posting bug reports against > those USB device drivers that use unaligned buffers for URB; such as with > rtl8192cu > (http://thread.gmane.org/gmane.linux.kernel.wirel

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

2013-06-15 Thread Ming Lei
On Sat, Jun 15, 2013 at 9:10 PM, Jussi Kivilinna wrote: > On 15.06.2013 15:07, Ming Lei wrote: >> On Sat, Jun 15, 2013 at 6:19 PM, Jussi Kivilinna >> wrote: >>> On 15.06.2013 10:41, Ming Lei wrote: Cc: netdev On Fri, Jun 14, 2013 at 9:38 PM, Jussi Kivilinna wrote: > App