drm/amdgpu: reserve less memory for PDE updates
authorChristian König <christian.koenig@amd.com>
Mon, 18 Mar 2019 14:28:25 +0000 (15:28 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Mar 2019 18:59:09 +0000 (13:59 -0500)
Allocating 16KB was way to much, just use 2KB as a start for now.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index 41db2af931b412155d2f5efb1f3531952f3735e6..75ac3c97e1431546c76e5efe24faf47a0706a0a5 100644 (file)
@@ -1390,7 +1390,7 @@ restart:
 
                params.func = amdgpu_vm_cpu_set_ptes;
        } else {
-               ndw = 512 * 8;
+               ndw = 512;
                r = amdgpu_job_alloc_with_ib(adev, ndw * 4, &job);
                if (r)
                        return r;