[RFC v4 18/18] v4l: Use non-consistent DMA mappings for hardware that deserves it

Sakari Ailus sakari.ailus at linux.intel.com
Mon May 8 15:03:30 UTC 2017


Set DMA_ATTR_NON_CONSISTENT for hardware that uses non-consistent memory.

Signed-off-by: Sakari Ailus <sakari.ailus at linux.intel.com>
---
 drivers/media/platform/omap3isp/ispvideo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/platform/omap3isp/ispvideo.c b/drivers/media/platform/omap3isp/ispvideo.c
index 218e6d7..b74444e 100644
--- a/drivers/media/platform/omap3isp/ispvideo.c
+++ b/drivers/media/platform/omap3isp/ispvideo.c
@@ -1333,6 +1333,7 @@ static int isp_video_open(struct file *file)
 	queue->buf_struct_size = sizeof(struct isp_buffer);
 	queue->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
 	queue->dev = video->isp->dev;
+	queue->dma_attrs = DMA_ATTR_NON_CONSISTENT;
 
 	ret = vb2_queue_init(&handle->queue);
 	if (ret < 0) {
-- 
2.7.4



More information about the dri-devel mailing list