mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
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:
committed by
Dan Willemsen
parent
1b7b271980
commit
f18a6ea389
@@ -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 >>
|
||||
|
||||
Reference in New Issue
Block a user