summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/mm_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/mm_gp10b.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
index 590dd960..bdc30143 100644
--- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
@@ -230,9 +230,12 @@ static void __update_pte(struct vm_gk20a *vm,
230 u32 pte_addr = attrs->aperture == APERTURE_SYSMEM ? 230 u32 pte_addr = attrs->aperture == APERTURE_SYSMEM ?
231 gmmu_new_pte_address_sys_f(phys_shifted) : 231 gmmu_new_pte_address_sys_f(phys_shifted) :
232 gmmu_new_pte_address_vid_f(phys_shifted); 232 gmmu_new_pte_address_vid_f(phys_shifted);
233 u32 pte_tgt = __nvgpu_aperture_mask(g, attrs->aperture, 233 u32 pte_tgt = __nvgpu_aperture_mask(g,
234 gmmu_new_pte_aperture_sys_mem_ncoh_f(), 234 attrs->aperture,
235 gmmu_new_pte_aperture_video_memory_f()); 235 attrs->coherent ?
236 gmmu_new_pte_aperture_sys_mem_coh_f() :
237 gmmu_new_pte_aperture_sys_mem_ncoh_f(),
238 gmmu_new_pte_aperture_video_memory_f());
236 239
237 pte_w[0] = pte_valid | pte_addr | pte_tgt; 240 pte_w[0] = pte_valid | pte_addr | pte_tgt;
238 241