37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
|
From f2a9d492a55c3e762af0aced746613e36a2e3849 Mon Sep 17 00:00:00 2001
|
||
|
From: Pavel Golikov <Paullo612@ya.ru>
|
||
|
Date: Mon, 6 Jun 2022 18:00:28 +0300
|
||
|
Subject: [PATCH 2/2] 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>
|
||
|
---
|
||
|
drivers/media/platform/s5p-mfc/s5p_mfc.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
|
||
|
index f6732f031e96..bbfae7b00961 100644
|
||
|
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
|
||
|
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
|
||
|
@@ -861,6 +861,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");
|
||
|
@@ -896,6 +897,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");
|
||
|
--
|
||
|
2.25.1
|
||
|
|