diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1395-Change-check_if_add_bo_to_vm-prototype.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1395-Change-check_if_add_bo_to_vm-prototype.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1395-Change-check_if_add_bo_to_vm-prototype.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1395-Change-check_if_add_bo_to_vm-prototype.patch new file mode 100644 index 00000000..48d22748 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1395-Change-check_if_add_bo_to_vm-prototype.patch @@ -0,0 +1,41 @@ +From 052af922483c3f3f2bf0adb677aa9925b991b7f8 Mon Sep 17 00:00:00 2001 +From: Yong Zhao <yong.zhao@amd.com> +Date: Wed, 20 Apr 2016 16:36:43 -0400 +Subject: [PATCH 1395/4131] Change check_if_add_bo_to_vm() prototype + +Change-Id: Ibe0a8fc96adad31a1ec365ce7805c818bb86a3c0 +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 7 +++---- + 1 file changed, 3 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 4b94ae3..8ee2cb3 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +@@ -56,11 +56,11 @@ struct kfd_process_device *amdgpu_amdkfd_gpuvm_get_pdd_from_buffer_object( + } + + static bool check_if_add_bo_to_vm(struct amdgpu_vm *avm, +- struct list_head *list_bo_va) ++ struct kgd_mem *mem) + { + struct kfd_bo_va_list *entry; + +- list_for_each_entry(entry, list_bo_va, bo_list) ++ list_for_each_entry(entry, &mem->data2.bo_va_list, bo_list) + if (entry->bo_va->vm == avm) + return false; + +@@ -833,8 +833,7 @@ int amdgpu_amdkfd_gpuvm_map_memory_to_gpu( + pr_debug("amdgpu: try to map VA 0x%llx domain %d\n", + mem->data2.va, domain); + +- if (check_if_add_bo_to_vm((struct amdgpu_vm *)vm, +- &mem->data2.bo_va_list)) { ++ if (check_if_add_bo_to_vm((struct amdgpu_vm *)vm, mem)) { + pr_debug("amdkfd: add new BO_VA to list 0x%llx\n", + mem->data2.va); + ret = add_bo_to_vm(adev, mem, (struct amdgpu_vm *)vm, false); +-- +2.7.4 + |