Re: [PATCH] WIP! media: uvcvideo: Use dma_alloc_noncontiguos API

From: Christoph Hellwig
Date: Tue Nov 24 2020 - 06:35:24 EST


On Wed, Nov 18, 2020 at 03:25:46PM +0100, Ricardo Ribalda wrote:
> On architectures where the is no coherent caching such as ARM use the
> dma_alloc_noncontiguos API and handle manually the cache flushing using
> dma_sync_single().
>
> With this patch on the affected architectures we can measure up to 20x
> performance improvement in uvc_video_copy_data_work().

This has a bunch of crazy long lines, but otherwise looks fine to me.

>
> Signed-off-by: Ricardo Ribalda <ribalda@xxxxxxxxxxxx>
> ---
>
> This patch depends on dma_alloc_contiguous API1315351diffmboxseries

How do we want to proceed? Do the media maintainers want to pick up
that patch? Should I pick up the media patch in the dma-mapping tree?

Can you respost a combined series to get started?