diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1665-drm-amdgpu-reserve-less-memory-for-PDE-updates.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1665-drm-amdgpu-reserve-less-memory-for-PDE-updates.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1665-drm-amdgpu-reserve-less-memory-for-PDE-updates.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1665-drm-amdgpu-reserve-less-memory-for-PDE-updates.patch new file mode 100644 index 00000000..2adf7fb0 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1665-drm-amdgpu-reserve-less-memory-for-PDE-updates.patch @@ -0,0 +1,33 @@ +From cc893af2fb8758606f569a03e7284f90076080b7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Mon, 18 Mar 2019 15:28:25 +0100 +Subject: [PATCH 1665/2940] drm/amdgpu: reserve less memory for PDE updates +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +index 7f4c197bee8f..d9596b4655b4 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +@@ -1366,7 +1366,7 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev, + + 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; +-- +2.17.1 + |