]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Keep physical cursors pinned while in use
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Aug 2018 08:24:05 +0000 (09:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Aug 2018 07:58:57 +0000 (08:58 +0100)
commit94088269d45b8f7fc8bdae1f9b713ad3a336453a
tree5be4bbb51885637eee56d7d73587a9b1b3ae2ff7
parente0d2e0c8ec6e48436df740344616728e5970b2e6
drm/i915: Keep physical cursors pinned while in use

The optimisation inherent in commit b351a4c6feaa ("drm/i915: Make the
physical object coherent with GTT") relies on that once we allocated a
cursor we would have coherent, zero overhead access to the scanout plane
holding the cursor. That is we could then do the very frequent cursor
updates X enjoys with no indirection or kernel involvement. However,
that all hinges on the GGTT mmap of the cursor being pinned and not
require refaulting on each access -- handling such a page fault likely
requires the busy GGTT to be rearranged causing a stall. A very simple
fix is then to handle the physical cursor exactly like other cursors and
keep its vma pinned while active.

References: https://bugs.freedesktop.org/show_bug.cgi?id=107600
References: b351a4c6feaa ("drm/i915: Make the physical object coherent with GTT")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180817082405.755-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_display.c