mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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 <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1505283 Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
47eed28013
commit
492c7cc198
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user