summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/as_gk20a.c
diff options
context:
space:
mode:
authorSami Kiminki <skiminki@nvidia.com>2015-05-22 13:48:22 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-09-07 15:37:15 -0400
commiteade809c265ada214c6c47e1ad9db1706c868da0 (patch)
treea132050d7a4c2193f338e0082d258e1eac958cc1 /drivers/gpu/nvgpu/gk20a/as_gk20a.c
parent57034b22ca17b217b683941dcebc0d69587d7d5e (diff)
gpu: nvgpu: Separate kernel and user GPU VA regions
Separate the kernel and userspace regions in the GPU virtual address space. Do this by reserving the last part of the GPU VA aperture for the kernel, and extend GPU VA aperture accordingly for regular address spaces. This prevents the kernel polluting the userspace-visible GPU VA regions, and thus, makes the success of fixed-address mapping more predictable. Bug 200077571 Change-Id: I63f0e73d4c815a4a9fa4a9ce568709974690ef0f Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-on: http://git-master/r/747191 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/as_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/as_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/as_gk20a.c b/drivers/gpu/nvgpu/gk20a/as_gk20a.c
index feb22ea8..87b32add 100644
--- a/drivers/gpu/nvgpu/gk20a/as_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/as_gk20a.c
@@ -262,7 +262,7 @@ static int gk20a_as_ioctl_get_va_regions(
262 unsigned int write_entries; 262 unsigned int write_entries;
263 struct nvgpu_as_va_region __user *user_region_ptr; 263 struct nvgpu_as_va_region __user *user_region_ptr;
264 struct vm_gk20a *vm = as_share->vm; 264 struct vm_gk20a *vm = as_share->vm;
265 int page_sizes = gmmu_nr_page_sizes; 265 int page_sizes = gmmu_page_size_kernel;
266 266
267 gk20a_dbg_fn(""); 267 gk20a_dbg_fn("");
268 268