summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAl Cooper <alcooperx@gmail.com>2011-08-18 10:28:29 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-23 20:07:47 -0300
commit3e0ac6717b0a2593243ef3850025a42cb199880f (patch)
tree24726342cb2e85848eb0d24e9a34f4c645773706 /fs
parent227bd5b3539a50290ec48b90c42c40cc7ae27191 (diff)
[media] media: Fix a UVC performance problem on systems with non-coherent DMA
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 200 times slower. This issue prevents the system from keeping up with 720p YUYV data at 10fps. The following patch uses kmalloc to alloc the DMA buffers instead of usb_alloc_coherent on systems without coherent DMA. With this patch the system was easily able to keep up with 720p at 10fps. Signed-off-by: Al Cooper <alcooperx@gmail.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions