summaryrefslogtreecommitdiff
path: root/drivers/gpu/host1x/job.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/host1x/job.h
parent7a56783850772feb2cbf1dabdce617f5941a57c0 (diff)
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/host1x/job.h')
-rw-r--r--drivers/gpu/host1x/job.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/host1x/job.h b/drivers/gpu/host1x/job.h
index b4428c5495c9..dad5a1946693 100644
--- a/drivers/gpu/host1x/job.h
+++ b/drivers/gpu/host1x/job.h
@@ -35,11 +35,7 @@ struct host1x_job_cmd {
};
struct host1x_job_unpin_data {
- struct host1x_bo *bo;
- struct sg_table *sgt;
- struct device *dev;
- size_t size;
- enum dma_data_direction dir;
+ struct host1x_bo_mapping *map;
};
/*