diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 3875ec5c..d4d6cd2d 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -1738,7 +1738,7 @@ int gr_gk20a_update_hwpm_ctxsw_mode(struct gk20a *g, | |||
1738 | pm_ctx->mem.gpu_va = nvgpu_gmmu_map(c->vm, | 1738 | pm_ctx->mem.gpu_va = nvgpu_gmmu_map(c->vm, |
1739 | &pm_ctx->mem, | 1739 | &pm_ctx->mem, |
1740 | pm_ctx->mem.size, | 1740 | pm_ctx->mem.size, |
1741 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, | 1741 | NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE, |
1742 | gk20a_mem_flag_none, true, | 1742 | gk20a_mem_flag_none, true, |
1743 | pm_ctx->mem.aperture); | 1743 | pm_ctx->mem.aperture); |
1744 | if (!pm_ctx->mem.gpu_va) { | 1744 | if (!pm_ctx->mem.gpu_va) { |
@@ -2633,7 +2633,7 @@ static int gr_gk20a_map_global_ctx_buffers(struct gk20a *g, | |||
2633 | } | 2633 | } |
2634 | 2634 | ||
2635 | gpu_va = nvgpu_gmmu_map(ch_vm, mem, mem->size, | 2635 | gpu_va = nvgpu_gmmu_map(ch_vm, mem, mem->size, |
2636 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, | 2636 | NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE, |
2637 | gk20a_mem_flag_none, true, mem->aperture); | 2637 | gk20a_mem_flag_none, true, mem->aperture); |
2638 | if (!gpu_va) | 2638 | if (!gpu_va) |
2639 | goto clean_up; | 2639 | goto clean_up; |
@@ -2651,7 +2651,7 @@ static int gr_gk20a_map_global_ctx_buffers(struct gk20a *g, | |||
2651 | } | 2651 | } |
2652 | 2652 | ||
2653 | gpu_va = nvgpu_gmmu_map(ch_vm, mem, mem->size, | 2653 | gpu_va = nvgpu_gmmu_map(ch_vm, mem, mem->size, |
2654 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, | 2654 | NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE, |
2655 | gk20a_mem_flag_none, false, mem->aperture); | 2655 | gk20a_mem_flag_none, false, mem->aperture); |
2656 | if (!gpu_va) | 2656 | if (!gpu_va) |
2657 | goto clean_up; | 2657 | goto clean_up; |
@@ -2669,7 +2669,7 @@ static int gr_gk20a_map_global_ctx_buffers(struct gk20a *g, | |||
2669 | } | 2669 | } |
2670 | 2670 | ||
2671 | gpu_va = nvgpu_gmmu_map(ch_vm, mem, mem->size, | 2671 | gpu_va = nvgpu_gmmu_map(ch_vm, mem, mem->size, |
2672 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, | 2672 | NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE, |
2673 | gk20a_mem_flag_none, true, mem->aperture); | 2673 | gk20a_mem_flag_none, true, mem->aperture); |
2674 | if (!gpu_va) | 2674 | if (!gpu_va) |
2675 | goto clean_up; | 2675 | goto clean_up; |
@@ -2736,7 +2736,7 @@ int gr_gk20a_alloc_gr_ctx(struct gk20a *g, | |||
2736 | gr_ctx->mem.gpu_va = nvgpu_gmmu_map(vm, | 2736 | gr_ctx->mem.gpu_va = nvgpu_gmmu_map(vm, |
2737 | &gr_ctx->mem, | 2737 | &gr_ctx->mem, |
2738 | gr_ctx->mem.size, | 2738 | gr_ctx->mem.size, |
2739 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_FALSE, | 2739 | 0, /* not GPU-cacheable */ |
2740 | gk20a_mem_flag_none, true, | 2740 | gk20a_mem_flag_none, true, |
2741 | gr_ctx->mem.aperture); | 2741 | gr_ctx->mem.aperture); |
2742 | if (!gr_ctx->mem.gpu_va) | 2742 | if (!gr_ctx->mem.gpu_va) |