summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-03-13 13:57:19 -0400
committerAlexander Van Brunt <avanbrunt@nvidia.com>2015-05-05 16:59:01 -0400
commitb3a85df53ba844626e477451313ecb2097a34fd0 (patch)
treefcaa92b11163942cc3ae902805727653633680cd /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent4425e9ebcf85443773a15891ba40242d714426a1 (diff)
gpu: nvgpu: SMMU bypass
Improve GMMU mapping code to cope with discontiguous buffers. Add debugfs entry that allows bypassing SMMU and disabling big pages. Bug 1605769 Change-Id: I14d32c62293a16ff8c7195377c75a85fa8061083 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/717503 Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/737533 Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> Tested-by: Alexander Van Brunt <avanbrunt@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index f6806309..895e52ff 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -210,7 +210,9 @@ struct gk20a_mmu_level {
210 int (*update_entry)(struct vm_gk20a *vm, 210 int (*update_entry)(struct vm_gk20a *vm,
211 struct gk20a_mm_entry *pte, 211 struct gk20a_mm_entry *pte,
212 u32 i, u32 gmmu_pgsz_idx, 212 u32 i, u32 gmmu_pgsz_idx,
213 u64 iova, 213 struct scatterlist **sgl,
214 u64 *offset,
215 u64 *iova,
214 u32 kind_v, u32 *ctag, 216 u32 kind_v, u32 *ctag,
215 bool cacheable, bool unmapped_pte, 217 bool cacheable, bool unmapped_pte,
216 int rw_flag, bool sparse, u32 flags); 218 int rw_flag, bool sparse, u32 flags);
@@ -303,6 +305,8 @@ struct mm_gk20a {
303#ifdef CONFIG_DEBUG_FS 305#ifdef CONFIG_DEBUG_FS
304 u32 ltc_enabled; 306 u32 ltc_enabled;
305 u32 ltc_enabled_debug; 307 u32 ltc_enabled_debug;
308 u32 bypass_smmu;
309 u32 disable_bigpage;
306#endif 310#endif
307}; 311};
308 312