diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0827-Adaption-drm-amdgpu-Make-amdgpu_ttm_tt_get_user_page.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0827-Adaption-drm-amdgpu-Make-amdgpu_ttm_tt_get_user_page.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0827-Adaption-drm-amdgpu-Make-amdgpu_ttm_tt_get_user_page.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0827-Adaption-drm-amdgpu-Make-amdgpu_ttm_tt_get_user_page.patch deleted file mode 100644 index 9a0972f2..00000000 --- a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0827-Adaption-drm-amdgpu-Make-amdgpu_ttm_tt_get_user_page.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 82f0617058cea10448daf9d1797aff83854d2201 Mon Sep 17 00:00:00 2001 -From: Yong Zhao <yong.zhao@amd.com> -Date: Mon, 4 Apr 2016 19:14:20 -0400 -Subject: [PATCH 0827/4131] Adaption drm/amdgpu: Make - amdgpu_ttm_tt_get_user_pages work in kernel thread - -Change-Id: If43cf709ad22bae24979940b17226e903af20f54 ---- - drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c -index 834b8fb..48e1ca2 100644 ---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c -+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c -@@ -1057,7 +1057,10 @@ struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm) - if (gtt == NULL) - return NULL; - -- return gtt->usermm; -+ if (gtt->usertask == NULL) -+ return NULL; -+ -+ return gtt->usertask->mm; - } - - bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, --- -2.7.4 - |