summarylogtreecommitdiffstats
path: root/0008-drm-i915-gem-Reinitialise-the-local-list-before-repe.patch
diff options
context:
space:
mode:
authorgraysky2020-03-19 14:22:11 -0400
committergraysky2020-03-19 14:22:11 -0400
commit15b889bcdede5c6eacc7bb43ede7f51126a89860 (patch)
tree0c319b894bfda9e2e5865d15adb26f40558283bd /0008-drm-i915-gem-Reinitialise-the-local-list-before-repe.patch
parenteb5fcc82dc6da5c1a63a325a11e2ade0750fb054 (diff)
downloadaur-15b889bcdede5c6eacc7bb43ede7f51126a89860.tar.gz
Update to 5.5.11rc1-1
Diffstat (limited to '0008-drm-i915-gem-Reinitialise-the-local-list-before-repe.patch')
-rw-r--r--0008-drm-i915-gem-Reinitialise-the-local-list-before-repe.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/0008-drm-i915-gem-Reinitialise-the-local-list-before-repe.patch b/0008-drm-i915-gem-Reinitialise-the-local-list-before-repe.patch
new file mode 100644
index 00000000000..74b68c442bf
--- /dev/null
+++ b/0008-drm-i915-gem-Reinitialise-the-local-list-before-repe.patch
@@ -0,0 +1,34 @@
+From 9109f28c248016fc52b976fb96b2adc7e9cc790d Mon Sep 17 00:00:00 2001
+From: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu, 5 Dec 2019 13:29:12 +0000
+Subject: [PATCH 08/11] drm/i915/gem: Reinitialise the local list before
+ repeating
+
+As we may start the loop again, we require our local list of i915_vma
+we've processed to be reinitialised.
+
+Fixes: aa5e4453dc05 ("drm/i915/gem: Try to flush pending unbind events")
+Closes: https://gitlab.freedesktop.org/drm/intel/issues/731
+Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+Reviewed-by: Andi Shyti <andi.shyti@intel.com>
+Link: https://patchwork.freedesktop.org/patch/msgid/20191205132912.606868-1-chris@chris-wilson.co.uk
+---
+ drivers/gpu/drm/i915/i915_gem.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
+index 85b12228c2cf..c2c025c4f4ad 100644
+--- a/drivers/gpu/drm/i915/i915_gem.c
++++ b/drivers/gpu/drm/i915/i915_gem.c
+@@ -174,7 +174,7 @@ int i915_gem_object_unbind(struct drm_i915_gem_object *obj,
+ i915_vm_close(vm);
+ spin_lock(&obj->vma.lock);
+ }
+- list_splice(&still_in_list, &obj->vma.list);
++ list_splice_init(&still_in_list, &obj->vma.list);
+ spin_unlock(&obj->vma.lock);
+
+ if (ret == -EAGAIN && flags & I915_GEM_OBJECT_UNBIND_ACTIVE) {
+--
+2.25.2
+