diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1543-drm-amdgpu-Fix-KFD-System-Memory-usage-limit.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1543-drm-amdgpu-Fix-KFD-System-Memory-usage-limit.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1543-drm-amdgpu-Fix-KFD-System-Memory-usage-limit.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1543-drm-amdgpu-Fix-KFD-System-Memory-usage-limit.patch new file mode 100644 index 00000000..42fe3da6 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1543-drm-amdgpu-Fix-KFD-System-Memory-usage-limit.patch @@ -0,0 +1,38 @@ +From 76dc0f4898902fdbdf9c5c231b854ca717b437d1 Mon Sep 17 00:00:00 2001 +From: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> +Date: Wed, 19 Oct 2016 17:37:59 -0400 +Subject: [PATCH 1543/4131] drm/amdgpu: Fix KFD System Memory usage limit + +Change-Id: I0b0bb2a0672b33d06c7fac51ef56b816640f9103 +Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +index 5b6fd44..9b3ee7e 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +@@ -73,7 +73,7 @@ static bool check_if_add_bo_to_vm(struct amdgpu_vm *avm, + } + + /* Set memory usage limits. Current, limits are +- * System (kernel) memory - 1/4th System RAM ++ * System (kernel) memory - 3/8th System RAM + * Userptr memory - 3/4th System RAM + */ + void amdgpu_amdkfd_gpuvm_init_mem_limits(void) +@@ -86,8 +86,8 @@ void amdgpu_amdkfd_gpuvm_init_mem_limits(void) + mem *= si.mem_unit; + + spin_lock_init(&kfd_mem_limit.mem_limit_lock); +- kfd_mem_limit.max_system_mem_limit = (mem >> 2) - (mem >> 4); +- kfd_mem_limit.max_userptr_mem_limit = mem - (mem >> 4); ++ kfd_mem_limit.max_system_mem_limit = (mem >> 1) - (mem >> 3); ++ kfd_mem_limit.max_userptr_mem_limit = mem - (mem >> 2); + pr_debug("Kernel memory limit %lluM, userptr limit %lluM\n", + (kfd_mem_limit.max_system_mem_limit >> 20), + (kfd_mem_limit.max_userptr_mem_limit >> 20)); +-- +2.7.4 + |