diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h index 5ee50b18..6abb5e33 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Tegra GPU Virtualization Interfaces to Server | 2 | * Tegra GPU Virtualization Interfaces to Server |
3 | * | 3 | * |
4 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2020, 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"), |
@@ -175,6 +175,7 @@ struct tegra_vgpu_as_map_params { | |||
175 | #define TEGRA_VGPU_MAP_CACHEABLE (1 << 0) | 175 | #define TEGRA_VGPU_MAP_CACHEABLE (1 << 0) |
176 | #define TEGRA_VGPU_MAP_IO_COHERENT (1 << 1) | 176 | #define TEGRA_VGPU_MAP_IO_COHERENT (1 << 1) |
177 | #define TEGRA_VGPU_MAP_L3_ALLOC (1 << 2) | 177 | #define TEGRA_VGPU_MAP_L3_ALLOC (1 << 2) |
178 | #define TEGRA_VGPU_MAP_PLATFORM_ATOMIC (1 << 3) | ||
178 | 179 | ||
179 | struct tegra_vgpu_as_map_ex_params { | 180 | struct tegra_vgpu_as_map_ex_params { |
180 | u64 handle; | 181 | u64 handle; |
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c index 4b06aea8..1f537d48 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-2019, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2015-2020, 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"), |
@@ -179,6 +179,10 @@ u64 vgpu_gp10b_locked_gmmu_map(struct vm_gk20a *vm, | |||
179 | p->flags |= TEGRA_VGPU_MAP_IO_COHERENT; | 179 | p->flags |= TEGRA_VGPU_MAP_IO_COHERENT; |
180 | if (flags & NVGPU_VM_MAP_L3_ALLOC) | 180 | if (flags & NVGPU_VM_MAP_L3_ALLOC) |
181 | p->flags |= TEGRA_VGPU_MAP_L3_ALLOC; | 181 | p->flags |= TEGRA_VGPU_MAP_L3_ALLOC; |
182 | if (flags & NVGPU_VM_MAP_PLATFORM_ATOMIC) { | ||
183 | p->flags |= TEGRA_VGPU_MAP_PLATFORM_ATOMIC; | ||
184 | } | ||
185 | |||
182 | p->prot = prot; | 186 | p->prot = prot; |
183 | p->ctag_offset = ctag_offset; | 187 | p->ctag_offset = ctag_offset; |
184 | p->clear_ctags = clear_ctags; | 188 | p->clear_ctags = clear_ctags; |