Share the pain with xe to test if it hits the same bugs.. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx> --- drivers/gpu/drm/i915/display/intel_fb_pin.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_fb_pin.c b/drivers/gpu/drm/i915/display/intel_fb_pin.c index fffd568070d41..d89f3d243c7be 100644 --- a/drivers/gpu/drm/i915/display/intel_fb_pin.c +++ b/drivers/gpu/drm/i915/display/intel_fb_pin.c @@ -232,6 +232,11 @@ void intel_unpin_fb_vma(struct i915_vma *vma, unsigned long flags) if (flags & PLANE_HAS_FENCE) i915_vma_unpin_fence(vma); i915_vma_unpin(vma); + if (!i915_vma_is_pinned(vma)) { + int err = i915_vma_unbind(vma); + if (err) + drm_info(vma->obj->base.dev, "Unpin failed with %i", err); + } i915_vma_put(vma); } -- 2.39.2