aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rcar-du/rcar_du_vsp.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2017-05-17 02:20:07 +0300
committerKieran Bingham <kieran.bingham+renesas@ideasonboard.com>2017-06-09 12:25:38 +0100
commitfa5b4114202de0c1a7a64fd407af0b81ca529419 (patch)
tree61d84eb582e60a27a8f40ef2046b68c0e38d8f33 /drivers/gpu/drm/rcar-du/rcar_du_vsp.h
parentv4l: vsp1: Add API to map and unmap DRM buffers through the VSP (diff)
downloadlinux-dev-fa5b4114202de0c1a7a64fd407af0b81ca529419.tar.xz
linux-dev-fa5b4114202de0c1a7a64fd407af0b81ca529419.zip
drm: rcar-du: Map memory through the VSP device
For planes handled by a VSP instance, map the framebuffer memory through the VSP to ensure proper IOMMU handling. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> [Kieran: Fix infinite loop on fail] Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Acked-by: Mauro Cavalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du/rcar_du_vsp.h')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_vsp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_vsp.h b/drivers/gpu/drm/rcar-du/rcar_du_vsp.h
index f1d0f1824528..8861661590ff 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_vsp.h
+++ b/drivers/gpu/drm/rcar-du/rcar_du_vsp.h
@@ -43,6 +43,7 @@ static inline struct rcar_du_vsp_plane *to_rcar_vsp_plane(struct drm_plane *p)
* struct rcar_du_vsp_plane_state - Driver-specific plane state
* @state: base DRM plane state
* @format: information about the pixel format used by the plane
+ * @sg_tables: scatter-gather tables for the frame buffer memory
* @alpha: value of the plane alpha property
* @zpos: value of the plane zpos property
*/
@@ -50,6 +51,7 @@ struct rcar_du_vsp_plane_state {
struct drm_plane_state state;
const struct rcar_du_format_info *format;
+ struct sg_table sg_tables[3];
unsigned int alpha;
unsigned int zpos;