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
This commit is contained in:
Seshendra Gadagottu
2015-06-17 14:59:04 -07:00
committed by Terje Bergstrom
parent ad113cf0a5
commit 0c244987d2

View File

@@ -2227,14 +2227,13 @@ static int update_gmmu_pte_locked(struct vm_gk20a *vm,
if (!cacheable)
pte_w[1] |=
gmmu_pte_vol_true_f();
else {
/* Store cachable value behind
} else {
/* Store cacheable value behind
* gmmu_pte_write_disable_true_f */
if (!cacheable)
pte_w[1] |=
gmmu_pte_write_disable_true_f();
}
}
gk20a_dbg(gpu_dbg_pte,
"pte=%d iova=0x%llx kind=%d ctag=%d vol=%d [0x%08x, 0x%08x]",