From 492c7cc198f3315b468fa3d612d894edf2bb5e89 Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Mon, 19 Jun 2017 17:40:45 -0700 Subject: gpu: nvgpu: gv11b: make subcontext mappings non-cacheable Without non-cacheable, gpu filled subcontext data not visible to cpu without additional l2 flush. Similarly, there will be issues where cpu updates to subcontext header will not visible to gpu without additional l2 flush. Making subcontext header mapping non-cacheable fixes this issue. Bug 1937331 Change-Id: I8e25b7cac165e7481eec7c9f1f93bc7992183c46 Signed-off-by: seshendra Gadagottu Reviewed-on: http://git-master/r/1505283 Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gv11b/subctx_gv11b.c') diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c index 6aa58337..79ed0d1e 100644 --- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c @@ -66,7 +66,7 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c) ctx->mem.gpu_va = nvgpu_gmmu_map(c->vm, &ctx->mem, ctx->mem.size, - NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, + NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_FALSE, gk20a_mem_flag_none, true, ctx->mem.aperture); if (!ctx->mem.gpu_va) { -- cgit v1.2.2