Re: [PATCH] media: Fix a UVC performance problem on systems with non-coherent DMA.

2011-08-26 Thread Laurent Pinchart
Hi Al, Thanks for the patch. On Thursday 18 August 2011 15:28:29 Al Cooper wrote: > The UVC driver uses usb_alloc_coherent() to allocate DMA data buffers. > On systems without coherent DMA this ends up allocating buffers in > uncached memory. The subsequent memcpy's done to coalesce the DMA > chu

[PATCH] media: Fix a UVC performance problem on systems with non-coherent DMA.

2011-08-18 Thread Al Cooper
The UVC driver uses usb_alloc_coherent() to allocate DMA data buffers. On systems without coherent DMA this ends up allocating buffers in uncached memory. The subsequent memcpy's done to coalesce the DMA chunks into contiguous buffers then run VERY slowly. On a MIPS test system the memcpy is about