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
This commit is contained in:
Terje Bergstrom
2015-03-31 13:13:21 -07:00
committed by Dan Willemsen
parent 1b7b271980
commit f18a6ea389

View File

@@ -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 >>