From: Christian König Date: Mon, 18 Mar 2019 14:28:25 +0000 (+0100) Subject: drm/amdgpu: reserve less memory for PDE updates X-Git-Tag: v5.4-rc1~971^2~36^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=802a4a484a76d00af6220e402eb66a1063287d30;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: reserve less memory for PDE updates Allocating 16KB was way to much, just use 2KB as a start for now. Signed-off-by: Christian König Acked-by: Chunming Zhou Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 41db2af931b4..75ac3c97e143 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -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;