summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPeter Boonstoppel <pboonstoppel@nvidia.com>2017-02-01 19:04:31 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-06 19:41:19 -0500
commitbb33e25a05dba2298930d7b9f02aade5e0e772d7 (patch)
treea69e41758ae289b320aa9a1713e858e64787eb8d /drivers
parenta58dc5728259e083533b0a534620a930bb34a4ba (diff)
gpu: nvgpu: Make context mapping non-cacheable
Changes to the context header after the context has been loaded may not be visible to the GPU when mapped as cacheable memory. Examples include updating the preemption modes or boosted_ctx bits at runtime. This patch changes the mapping to non-cacheable. Bug 1819874 Bug 1852094 Bug 200265538 Change-Id: I3b9e87adeaf32e337ec48e01631ad9dea61cc7da Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-on: http://git-master/r/1297601 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index c461a9e1..d7693515 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -2941,7 +2941,7 @@ int gr_gk20a_alloc_gr_ctx(struct gk20a *g,
2941 gr_ctx->mem.gpu_va = gk20a_gmmu_map(vm, 2941 gr_ctx->mem.gpu_va = gk20a_gmmu_map(vm,
2942 &gr_ctx->mem.sgt, 2942 &gr_ctx->mem.sgt,
2943 gr_ctx->mem.size, 2943 gr_ctx->mem.size,
2944 NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, 2944 NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_FALSE,
2945 gk20a_mem_flag_none, true, 2945 gk20a_mem_flag_none, true,
2946 gr_ctx->mem.aperture); 2946 gr_ctx->mem.aperture);
2947 if (!gr_ctx->mem.gpu_va) 2947 if (!gr_ctx->mem.gpu_va)