From d41bd7edb6effc7952a5349f4bfbb55242ee6e3b Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Sat, 29 Feb 2020 12:59:34 -0800 Subject: Updated to 5.5.7 --- ...-a-simple-is-bound-check-before-unbinding.patch | 41 ---------------------- 1 file changed, 41 deletions(-) delete mode 100644 0012-drm-i915-Add-a-simple-is-bound-check-before-unbinding.patch (limited to '0012-drm-i915-Add-a-simple-is-bound-check-before-unbinding.patch') diff --git a/0012-drm-i915-Add-a-simple-is-bound-check-before-unbinding.patch b/0012-drm-i915-Add-a-simple-is-bound-check-before-unbinding.patch deleted file mode 100644 index 9db4525..0000000 --- a/0012-drm-i915-Add-a-simple-is-bound-check-before-unbinding.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 513cbef093293a7f0e331eb4fee8e6a1bb9bf5a2 Mon Sep 17 00:00:00 2001 -From: Chris Wilson -Date: Sun, 22 Dec 2019 21:02:54 +0000 -Subject: drm/i915: Add a simple is-bound check before unbinding - -Only acquire the various atomic references required to unbind the vma if -we do need to unbind the vma. - -Signed-off-by: Chris Wilson -Acked-by: Imre Deak -Link: https://patchwork.freedesktop.org/patch/msgid/20191222210256.2066451-1-chris@chris-wilson.co.uk ---- - drivers/gpu/drm/i915/i915_gem.c | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c -index c2c025c4f4ad..83eed642cbcd 100644 ---- a/drivers/gpu/drm/i915/i915_gem.c -+++ b/drivers/gpu/drm/i915/i915_gem.c -@@ -145,6 +145,10 @@ try_again: - struct i915_address_space *vm = vma->vm; - bool awake = false; - -+ list_move_tail(&vma->obj_link, &still_in_list); -+ if (!i915_vma_is_bound(vma, I915_VMA_BIND_MASK)) -+ continue; -+ - ret = -EAGAIN; - if (!i915_vm_tryopen(vm)) - break; -@@ -160,7 +164,6 @@ try_again: - } - } - -- list_move_tail(&vma->obj_link, &still_in_list); - spin_unlock(&obj->vma.lock); - - ret = -EBUSY; --- -cgit v1.2.2-1-gc45e - -- cgit v1.2.1