]> git.baikalelectronics.ru Git - kernel.git/commit
v4l: vsp1: Add API to map and unmap DRM buffers through the VSP
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 16 May 2017 23:20:06 +0000 (02:20 +0300)
committerKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fri, 9 Jun 2017 11:25:38 +0000 (12:25 +0100)
commit2b73a69afbcda59d13c6ba7ebb40b8a622e69d0a
tree361ec0039b495bb263865311a14a16fdbe4bbbcc
parent24fc7eb5f2e99b0011f07e1d8af9fb450ee42a0a
v4l: vsp1: Add API to map and unmap DRM buffers through the VSP

The display buffers must be mapped for DMA through the device that
performs memory access. Expose an API to map and unmap memory through
the VSP device to be used by the DU.

As all the buffers allocated by the DU driver are coherent, we can skip
cache handling when mapping and unmapping them. This will need to be
revisited when support for non-coherent buffers will be added to the DU
driver.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
[Kieran: Remove unused header]
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Acked-by: Mauro Cavalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vsp1/vsp1_drm.c
include/media/vsp1.h