mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
Simplify the frontbuffer unpin by removing the lock requirement. The LRU bumping was primarily to protect the GTT from being evicted and from frontbuffers being eagerly shrunk. Now we protect frontbuffers from the shrinker, and we avoid accidentally evicting from the GTT, so the benefit from bumping LRU is no more, and we can save more time by not. Reported-and-tested-by: Matti Hämäläinen <[email protected]> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2905 Fixes:c1793ba86a("drm/i915: Add ww locking to pin_to_display_plane, v2.") Signed-off-by: Chris Wilson <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit14ca83eece) Cc: Joonas Lahtinen <[email protected]> Cc: Jani Nikula <[email protected]> Cc: <[email protected]> # v5.10+ Signed-off-by: Jani Nikula <[email protected]>