summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-07-05 06:11:15 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-07 10:05:38 -0400
commitd479a781c68ab20ff27ae6d1a6eb6e15eb51fb88 (patch)
tree1a7fb1327e5ad9dc04ecb013095a53b053b2e88b /drivers/gpu/nvgpu/include
parent8bdb74786cd58746a6d9c361f8383fdfb43c6c98 (diff)
gpu: nvgpu: use coherent aperture for coherent buffers
Use sysmem_coherent aperture if the buffer mappings are requested to be IO coherent. Use sysmem_noncoherent aperture otherwise. This is implemented by adding a new coherent field to the GMMU attrs struct. Jira GPUT19X-17 Bug 1651331 Bug 200283998 Change-Id: I5cfb71b5913d4db50ebf10331b19f5a4216456bf Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master/r/1514438 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/gmmu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/gmmu.h b/drivers/gpu/nvgpu/include/nvgpu/gmmu.h
index eff87c31..47af2f75 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/gmmu.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/gmmu.h
@@ -149,6 +149,7 @@ struct nvgpu_gmmu_pd {
149 * rw_flag: Flag from enum gk20a_mem_rw_flag 149 * rw_flag: Flag from enum gk20a_mem_rw_flag
150 * sparse: Set if the mapping should be sparse. 150 * sparse: Set if the mapping should be sparse.
151 * priv: Privilidged mapping. 151 * priv: Privilidged mapping.
152 * coherent: Set if the mapping should be IO coherent.
152 * valid: Set if the PTE should be marked valid. 153 * valid: Set if the PTE should be marked valid.
153 * aperture: VIDMEM or SYSMEM. 154 * aperture: VIDMEM or SYSMEM.
154 * debug: When set print debugging info. 155 * debug: When set print debugging info.
@@ -166,6 +167,7 @@ struct nvgpu_gmmu_attrs {
166 int rw_flag; 167 int rw_flag;
167 bool sparse; 168 bool sparse;
168 bool priv; 169 bool priv;
170 bool coherent;
169 bool valid; 171 bool valid;
170 enum nvgpu_aperture aperture; 172 enum nvgpu_aperture aperture;
171 bool debug; 173 bool debug;