]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
gpu: nvgpu: Allow sparse buffers on small pages
authorTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 31 Mar 2015 20:13:21 +0000 (13:13 -0700)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Thu, 2 Apr 2015 21:55:41 +0000 (14:55 -0700)
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

drivers/gpu/nvgpu/gk20a/mm_gk20a.c

index 81ccbc01c22fcf7264bdf157fcc7f367c6835e73..ee7ece906a947248006903aff4110f47928550d7 100644 (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 >>