mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
WIP: media: s5p-mfc: Allow cache hints for queues
Passing V4L2_MEMORY_FLAG_NON_COHERENT from userspace significantly improves video rendering performance on Exynos 5422 (Odroid XU4). Signed-off-by: Pavel Golikov <Paullo612@ya.ru>
This commit is contained in:
committed by
Mauro (mdrjr) Ribeiro
parent
6ee7f6c619
commit
bfd383cd5f
@@ -876,6 +876,7 @@ static int s5p_mfc_open(struct file *file)
|
||||
q->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES;
|
||||
q->mem_ops = &vb2_dma_contig_memops;
|
||||
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
|
||||
q->allow_cache_hints = 1;
|
||||
ret = vb2_queue_init(q);
|
||||
if (ret) {
|
||||
mfc_err("Failed to initialize videobuf2 queue(capture)\n");
|
||||
@@ -911,6 +912,7 @@ static int s5p_mfc_open(struct file *file)
|
||||
q->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES;
|
||||
q->mem_ops = &vb2_dma_contig_memops;
|
||||
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
|
||||
q->allow_cache_hints = 1;
|
||||
ret = vb2_queue_init(q);
|
||||
if (ret) {
|
||||
mfc_err("Failed to initialize videobuf2 queue(output)\n");
|
||||
|
||||
Reference in New Issue
Block a user