summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/plane.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2021-09-09 15:51:24 +0200
committerThierry Reding <treding@nvidia.com>2021-12-16 14:07:06 +0100
commitc6aeaf56f468a565f6d2f27325fc07d35cdcd3cb (patch)
treeb2b15454b61f09b1ea0fd281af0dff3ce5a77941 /drivers/gpu/drm/tegra/plane.h
parent7a56783850772feb2cbf1dabdce617f5941a57c0 (diff)
downloadlinux-c6aeaf56f468a565f6d2f27325fc07d35cdcd3cb.tar.bz2
drm/tegra: Implement correct DMA-BUF semantics
DMA-BUF requires that each device that accesses a DMA-BUF attaches to it separately. To do so the host1x_bo_pin() and host1x_bo_unpin() functions need to be reimplemented so that they can return a mapping, which either represents an attachment or a map of the driver's own GEM object. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/plane.h')
-rw-r--r--drivers/gpu/drm/tegra/plane.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/plane.h b/drivers/gpu/drm/tegra/plane.h
index d9470780c803..dfb20712fbd7 100644
--- a/drivers/gpu/drm/tegra/plane.h
+++ b/drivers/gpu/drm/tegra/plane.h
@@ -43,7 +43,7 @@ struct tegra_plane_legacy_blending_state {
struct tegra_plane_state {
struct drm_plane_state base;
- struct sg_table *sgt[3];
+ struct host1x_bo_mapping *map[3];
dma_addr_t iova[3];
struct tegra_bo_tiling tiling;