diff options
Diffstat (limited to 'meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/1619-Adaption-for-kfd-allocate-the-PTEs-before-mapping.patch')
-rw-r--r-- | meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/1619-Adaption-for-kfd-allocate-the-PTEs-before-mapping.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/1619-Adaption-for-kfd-allocate-the-PTEs-before-mapping.patch b/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/1619-Adaption-for-kfd-allocate-the-PTEs-before-mapping.patch deleted file mode 100644 index dc3efc8b..00000000 --- a/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/1619-Adaption-for-kfd-allocate-the-PTEs-before-mapping.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 3014908abdde7540169aa6740eb079d3fdf49ce6 Mon Sep 17 00:00:00 2001 -From: Yong Zhao <Yong.Zhao@amd.com> -Date: Tue, 21 Mar 2017 18:14:41 -0400 -Subject: [PATCH 1619/4131] Adaption-for-kfd: allocate the PTEs before mapping - -The adaption is needed due to change 6c56a655 in amdgpu - -"drm/amdgpu: separate page table allocation from mapping" - -Change-Id: I0a2d43ec25f438f8290fc0b847cc6d1dc91ff5aa -Signed-off-by: Yong Zhao <Yong.Zhao@amd.com> ---- - drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c -index a8482ce..7f431e4 100644 ---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c -+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c -@@ -989,6 +989,14 @@ static int map_bo_to_gpuvm(struct amdgpu_device *adev, - kvm->process_info->eviction_fence, - NULL, NULL); - -+ ret = amdgpu_vm_alloc_pts(adev, entry->bo_va->vm, entry->va, -+ amdgpu_bo_size(bo)); -+ -+ if (ret) { -+ pr_err("Failed to allocate pts, err=%d\n", ret); -+ return ret; -+ } -+ - /* Set virtual address for the allocation, allocate PTs, - * if needed, and zero them. - */ --- -2.7.4 - |