summaryrefslogtreecommitdiff
path: root/drivers/gpu/host1x/cdma.h
diff options
context:
space:
mode:
authorMikko Perttunen <mperttunen@nvidia.com>2016-12-14 13:16:14 +0200
committerThierry Reding <treding@nvidia.com>2017-04-05 18:11:43 +0200
commit404bfb78daf3bedafb0bfab24947059575cbea3d (patch)
tree59b8ed6b140ce74ffeb94e1488ee7818f3b02c18 /drivers/gpu/host1x/cdma.h
parent8cadb01d2c2f520a890d1bc78b45471f21b9b76d (diff)
gpu: host1x: Add IOMMU support
Add support for the Host1x unit to be located behind an IOMMU. This is required when gather buffers may be allocated non-contiguously in physical memory, as can be the case when TegraDRM is also using the IOMMU. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/cdma.h')
-rw-r--r--drivers/gpu/host1x/cdma.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/host1x/cdma.h b/drivers/gpu/host1x/cdma.h
index 470087af8fe5..ec170a78f4e1 100644
--- a/drivers/gpu/host1x/cdma.h
+++ b/drivers/gpu/host1x/cdma.h
@@ -43,10 +43,12 @@ struct host1x_job;
struct push_buffer {
void *mapped; /* mapped pushbuffer memory */
- dma_addr_t phys; /* physical address of pushbuffer */
+ dma_addr_t dma; /* device address of pushbuffer */
+ phys_addr_t phys; /* physical address of pushbuffer */
u32 fence; /* index we've written */
u32 pos; /* index to write to */
- u32 size_bytes;
+ u32 size;
+ u32 alloc_size;
};
struct buffer_timeout {