[Bug 111541] Cursor sprite sometimes not showed since linux 5.2
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Sep 26 07:30:47 UTC 2019
https://bugs.freedesktop.org/show_bug.cgi?id=111541
--- Comment #25 from Mikko Rapeli <mikko.rapeli at iki.fi> ---
The patch doesn't seem to apply to 5.2 stable tree, so I tried to backport it
like this. I hope this is correct.
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1908,7 +1908,11 @@ vm_fault_t i915_gem_fault(struct vm_fault *vmf)
list_add(&obj->userfault_link, &dev_priv->mm.userfault_list);
GEM_BUG_ON(!obj->userfault_count);
- i915_vma_set_ggtt_write(vma);
+ if (write) {
+ GEM_BUG_ON(!i915_gem_object_has_pinned_pages(obj));
+ i915_vma_set_ggtt_write(vma);
+ obj->mm.dirty = true;
+ }
err_fence:
i915_vma_unpin_fence(vma);
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20190926/4b012121/attachment.html>
More information about the intel-gfx-bugs
mailing list