diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1709-drm-amdgpu-Raise-KFD-system-memory-limits-to-15-16.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1709-drm-amdgpu-Raise-KFD-system-memory-limits-to-15-16.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1709-drm-amdgpu-Raise-KFD-system-memory-limits-to-15-16.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1709-drm-amdgpu-Raise-KFD-system-memory-limits-to-15-16.patch deleted file mode 100644 index f2ded333..00000000 --- a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1709-drm-amdgpu-Raise-KFD-system-memory-limits-to-15-16.patch +++ /dev/null @@ -1,40 +0,0 @@ -From f80903c5950399758f2bce1975966272f6d4bcbb Mon Sep 17 00:00:00 2001 -From: Felix Kuehling <Felix.Kuehling@amd.com> -Date: Thu, 13 Apr 2017 14:56:28 -0400 -Subject: [PATCH 1709/4131] drm/amdgpu: Raise KFD system memory limits to 15/16 - -Change-Id: I6ab918e3c05b6079154d97e76e473c3820f136e5 -Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> ---- - drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c -index 2878ef6..3c65aaf 100644 ---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c -+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c -@@ -101,8 +101,8 @@ static bool check_if_add_bo_to_vm(struct amdgpu_vm *avm, - } - - /* Set memory usage limits. Current, limits are -- * System (kernel) memory - 3/8th System RAM -- * Userptr memory - 3/4th System RAM -+ * System (kernel) memory - 15/16th System RAM -+ * Userptr memory - 15/16th System RAM - */ - void amdgpu_amdkfd_gpuvm_init_mem_limits(void) - { -@@ -114,8 +114,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 >> 1) - (mem >> 3); -- kfd_mem_limit.max_userptr_mem_limit = mem - (mem >> 2); -+ kfd_mem_limit.max_system_mem_limit = mem - (mem >> 4); /* 15/16 */ -+ kfd_mem_limit.max_userptr_mem_limit = mem - (mem >> 4); /* 15/16 */ - 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 - |