mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: Switch to newer NVGPU_AS_MAP_BUFFER flags
Switch two cases using the old NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_* flags to the newer definitions, that is, NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE. The legacy NVGPU_MAP_BUFFER_FLAGS_* definitions have been deleted. Bug 1902982 Change-Id: Ifbd2678b10005b4af2375600888469b01dd09f4e Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1592655 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
bcd78a0be6
commit
075852f042
@@ -1349,7 +1349,7 @@ int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size,
|
||||
mem->gpu_va = nvgpu_gmmu_map(vm,
|
||||
mem,
|
||||
size,
|
||||
NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE,
|
||||
NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE,
|
||||
gk20a_mem_flag_none,
|
||||
false,
|
||||
mem->aperture);
|
||||
|
||||
@@ -75,7 +75,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_FALSE,
|
||||
0, /* not GPU-cacheable */
|
||||
gk20a_mem_flag_none, true,
|
||||
ctx->mem.aperture);
|
||||
if (!ctx->mem.gpu_va) {
|
||||
|
||||
Reference in New Issue
Block a user