aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3854-drm-amdgpu-Fix-always_valid-bos-multiple-LRU-inserti.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3854-drm-amdgpu-Fix-always_valid-bos-multiple-LRU-inserti.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3854-drm-amdgpu-Fix-always_valid-bos-multiple-LRU-inserti.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3854-drm-amdgpu-Fix-always_valid-bos-multiple-LRU-inserti.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3854-drm-amdgpu-Fix-always_valid-bos-multiple-LRU-inserti.patch
new file mode 100644
index 00000000..674d2577
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3854-drm-amdgpu-Fix-always_valid-bos-multiple-LRU-inserti.patch
@@ -0,0 +1,43 @@
+From 76bbc5d26459c29e1d8ef7af014f90dff8183a07 Mon Sep 17 00:00:00 2001
+From: Bas Nieuwenhuizen <basni@chromium.org>
+Date: Wed, 31 Jan 2018 13:58:55 +0100
+Subject: [PATCH 3854/4131] drm/amdgpu: Fix always_valid bos multiple LRU
+ insertions.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+If these bos are evicted and are in the validated list
+things blow up, so do not put them in there. Notably,
+that tries to add the bo to the LRU twice, which results
+in a BUG_ON in ttm_bo.c.
+
+While for the bo_list an alternative would be to not allow
+always valid bos in there, that does not work for the user
+fence.
+
+v2: Fixed whitespace issue pointed out by checkpatch.pl
+
+Signed-off-by: Bas Nieuwenhuizen <basni@chromium.org>
+Reviewed-by: Christian König <christian.koenig@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Cc: stable@vger.kernel.org
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
+index 92be7f6..4742fce 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
+@@ -236,7 +236,6 @@ void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list,
+ if (!list->array[i].robj->parent)
+ list_add_tail(&list->array[i].tv.head,
+ &bucket[priority]);
+-
+ list->array[i].user_pages = NULL;
+ }
+
+--
+2.7.4
+