diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2015-06-17 17:59:04 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-09-30 11:25:18 -0400 |
commit | 0c244987d2c81255ea9cec1efefed804f9baf70c (patch) | |
tree | 49745e8890951ec5d410551dd8cc18db6099d5c1 /drivers/gpu/nvgpu | |
parent | ad113cf0a5b34cff34460ec2f1646e2b8e37df47 (diff) |
gpu: nvgpu: unmapped ptes handling
Correct logic for supporting unmapped
ptes during gmmu map.
Bug 1587825
Change-Id: I1b0b603f7758a65d9666046d0d908663f8e460e3
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/796577
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/759345
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 3021cb02..2e26ff44 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -2227,13 +2227,12 @@ static int update_gmmu_pte_locked(struct vm_gk20a *vm, | |||
2227 | if (!cacheable) | 2227 | if (!cacheable) |
2228 | pte_w[1] |= | 2228 | pte_w[1] |= |
2229 | gmmu_pte_vol_true_f(); | 2229 | gmmu_pte_vol_true_f(); |
2230 | else { | 2230 | } else { |
2231 | /* Store cachable value behind | 2231 | /* Store cacheable value behind |
2232 | * gmmu_pte_write_disable_true_f */ | 2232 | * gmmu_pte_write_disable_true_f */ |
2233 | if (!cacheable) | 2233 | if (!cacheable) |
2234 | pte_w[1] |= | 2234 | pte_w[1] |= |
2235 | gmmu_pte_write_disable_true_f(); | 2235 | gmmu_pte_write_disable_true_f(); |
2236 | } | ||
2237 | } | 2236 | } |
2238 | 2237 | ||
2239 | gk20a_dbg(gpu_dbg_pte, | 2238 | gk20a_dbg(gpu_dbg_pte, |