drm/i915: Extract intel_plane_{pin,unpin}_fb()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 21 Feb 2018 16:02:34 +0000 (18:02 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 22 Feb 2018 16:11:13 +0000 (18:11 +0200)
commitef1a19146827b11d0c8024f9401774703bcb3a48
tree16090bfeeca00bce13027b806449a6c3bfe9a0a1
parent32febd91951eb40d9e9437f10b967c87715d8ef5
drm/i915: Extract intel_plane_{pin,unpin}_fb()

We've replicated the fb pin/unpin code in a few places. Pull it into
convenint helpers.

Slight change in locking behaviour as intel_cleanup_plane_fb() now
grab struct_mutex unconditionally.

v2: Change the locking to be symmetric between pin and unpin

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180221160235.11134-6-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c