diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-03-13 13:57:19 -0400 |
---|---|---|
committer | Alexander Van Brunt <avanbrunt@nvidia.com> | 2015-05-05 16:59:01 -0400 |
commit | b3a85df53ba844626e477451313ecb2097a34fd0 (patch) | |
tree | fcaa92b11163942cc3ae902805727653633680cd /drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |
parent | 4425e9ebcf85443773a15891ba40242d714426a1 (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/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index f4301dab..f142cb9f 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -76,6 +76,12 @@ struct gk20a_platform { | |||
76 | /* Adaptative ELPG: true = enable flase = disable */ | 76 | /* Adaptative ELPG: true = enable flase = disable */ |
77 | bool enable_aelpg; | 77 | bool enable_aelpg; |
78 | 78 | ||
79 | /* Enable SMMU bypass by default */ | ||
80 | bool bypass_smmu; | ||
81 | |||
82 | /* Disable big page support */ | ||
83 | bool disable_bigpage; | ||
84 | |||
79 | /* | 85 | /* |
80 | * gk20a_do_idle() API can take GPU either into rail gate or CAR reset | 86 | * gk20a_do_idle() API can take GPU either into rail gate or CAR reset |
81 | * This flag can be used to force CAR reset case instead of rail gate | 87 | * This flag can be used to force CAR reset case instead of rail gate |