aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_atomic_plane.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2020-01-10 20:32:28 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2020-01-22 20:22:04 +0200
commit6fef8510a7a51227620de74cc495916e6ba54773 (patch)
tree8218a9e9b302905ae906c77370e5095ae615971f /drivers/gpu/drm/i915/display/intel_atomic_plane.c
parentdrm/i915: Balance prepare_fb/cleanup_fb (diff)
downloadlinux-dev-6fef8510a7a51227620de74cc495916e6ba54773.tar.xz
linux-dev-6fef8510a7a51227620de74cc495916e6ba54773.zip
drm/i915: Cleanup properly if the implicit fence setup fails
We've already pinned the vma and fence by the time we try to deal with implicit fencing. Properly unpin the vma and fence if the fence setup fails instead of just bailing straight out from .prepare_fb(). As can be expected drm_atomic_helper_prepare_planes() will not call .cleanup_fb() for the plane whose .prepare_fb() failed so we must do the cleanup ourself. v2: Rebase Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200110183228.8199-6-ville.syrjala@linux.intel.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_atomic_plane.c')
0 files changed, 0 insertions, 0 deletions