From f18a6ea389dfe629b12fde32f16ac1fd3a552b79 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 31 Mar 2015 13:13:21 -0700 Subject: 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 Reviewed-on: http://git-master/r/725763 --- drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c') 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, goto clean_up; } - if (args->flags & NVGPU_AS_ALLOC_SPACE_FLAGS_SPARSE && - pgsz_idx != gmmu_page_size_big) { - err = -ENOSYS; - kfree(va_node); - goto clean_up; - } - start_page_nr = 0; if (args->flags & NVGPU_AS_ALLOC_SPACE_FLAGS_FIXED_OFFSET) start_page_nr = (u32)(args->o_a.offset >> -- cgit v1.2.2