summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gp10b
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gp10b')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c
index 926f243d..fe28bf21 100644
--- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c
+++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Virtualized GPU Memory Management 2 * Virtualized GPU Memory Management
3 * 3 *
4 * Copyright (c) 2015-2021, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2015-2022, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
@@ -178,8 +178,10 @@ u64 vgpu_gp10b_locked_gmmu_map(struct vm_gk20a *vm,
178 p->flags = TEGRA_VGPU_MAP_CACHEABLE; 178 p->flags = TEGRA_VGPU_MAP_CACHEABLE;
179 if (flags & NVGPU_VM_MAP_IO_COHERENT) 179 if (flags & NVGPU_VM_MAP_IO_COHERENT)
180 p->flags |= TEGRA_VGPU_MAP_IO_COHERENT; 180 p->flags |= TEGRA_VGPU_MAP_IO_COHERENT;
181 if (flags & NVGPU_VM_MAP_L3_ALLOC) 181 if (!nvgpu_is_enabled(g, NVGPU_DISABLE_L3_SUPPORT)) {
182 p->flags |= TEGRA_VGPU_MAP_L3_ALLOC; 182 if (flags & NVGPU_VM_MAP_L3_ALLOC)
183 p->flags |= TEGRA_VGPU_MAP_L3_ALLOC;
184 }
183 if (flags & NVGPU_VM_MAP_PLATFORM_ATOMIC) { 185 if (flags & NVGPU_VM_MAP_PLATFORM_ATOMIC) {
184 p->flags |= TEGRA_VGPU_MAP_PLATFORM_ATOMIC; 186 p->flags |= TEGRA_VGPU_MAP_PLATFORM_ATOMIC;
185 } 187 }