From 0c244987d2c81255ea9cec1efefed804f9baf70c Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Wed, 17 Jun 2015 14:59:04 -0700 Subject: gpu: nvgpu: unmapped ptes handling Correct logic for supporting unmapped ptes during gmmu map. Bug 1587825 Change-Id: I1b0b603f7758a65d9666046d0d908663f8e460e3 Signed-off-by: Seshendra Gadagottu Reviewed-on: http://git-master/r/796577 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom Reviewed-on: http://git-master/r/759345 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'drivers') 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, 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(); - } + if (!cacheable) + pte_w[1] |= + gmmu_pte_write_disable_true_f(); } gk20a_dbg(gpu_dbg_pte, -- cgit v1.2.2