[Bug 111541] Cursor sprite sometimes not showed since linux 5.2

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 24 09:02:39 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=111541

Chris Wilson <chris at chris-wilson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #21 from Chris Wilson <chris at chris-wilson.co.uk> ---
I am reasonably confident this should be resolved by

commit 5028851cdfdf78dc22eacbc44a0ab0b3f599ee4a (HEAD -> drm-intel-next-queued,
drm-intel/drm-intel-next-queued)
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Sep 20 13:18:21 2019 +0100

    drm/i915: Mark contents as dirty on a write fault

    Since dropping the set-to-gtt-domain in commit a679f58d0510 ("drm/i915:
    Flush pages on acquisition"), we no longer mark the contents as dirty on
    a write fault. This has the issue of us then not marking the pages as
    dirty on releasing the buffer, which means the contents are not written
    out to the swap device (should we ever pick that buffer as a victim).
    Notably, this is visible in the dumb buffer interface used for cursors.
    Having updated the cursor contents via mmap, and swapped away, if the
    shrinker should evict the old cursor, upon next reuse, the cursor would
    be invisible.

    E.g. echo 80 > /proc/sys/kernel/sysrq ; echo f > /proc/sysrq-trigger

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111541
    Fixes: a679f58d0510 ("drm/i915: Flush pages on acquisition")
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
    Cc: Matthew Auld <matthew.william.auld at gmail.com>
    Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
    Cc: <stable at vger.kernel.org> # v5.2+
    Reviewed-by: Matthew Auld <matthew.william.auld at gmail.com>
    Link:
https://patchwork.freedesktop.org/patch/msgid/20190920121821.7223-1-chris@chris-wilson.co.uk

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20190924/7a6baac0/attachment-0001.html>


More information about the intel-gfx-bugs mailing list