diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-03-31 16:13:21 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 22:17:29 -0400 |
commit | f18a6ea389dfe629b12fde32f16ac1fd3a552b79 (patch) | |
tree | abf4fa19cff345e08ed8bf857f7c61312b3abaf4 /drivers/gpu | |
parent | 1b7b271980094637cf34a9d8ad14cb36f2c36363 (diff) |
gpu: nvgpu: Allow sparse buffers on small pages
Sparse buffers were allowed only with big pages. That restriction is
not necessary, so remove it.
Bug 1605769
Change-Id: I92efc0efe80edccead47b47d33fd9a75c921ca9a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/725763
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index c86fee45..31f01528 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -2431,13 +2431,6 @@ int gk20a_vm_alloc_space(struct gk20a_as_share *as_share, | |||
2431 | goto clean_up; | 2431 | goto clean_up; |
2432 | } | 2432 | } |
2433 | 2433 | ||
2434 | if (args->flags & NVGPU_AS_ALLOC_SPACE_FLAGS_SPARSE && | ||
2435 | pgsz_idx != gmmu_page_size_big) { | ||
2436 | err = -ENOSYS; | ||
2437 | kfree(va_node); | ||
2438 | goto clean_up; | ||
2439 | } | ||
2440 | |||
2441 | start_page_nr = 0; | 2434 | start_page_nr = 0; |
2442 | if (args->flags & NVGPU_AS_ALLOC_SPACE_FLAGS_FIXED_OFFSET) | 2435 | if (args->flags & NVGPU_AS_ALLOC_SPACE_FLAGS_FIXED_OFFSET) |
2443 | start_page_nr = (u32)(args->o_a.offset >> | 2436 | start_page_nr = (u32)(args->o_a.offset >> |