Skip to content

Commit

Permalink
drm/i915/display: Warn if the FBC is still writing to stolen on removal
Browse files Browse the repository at this point in the history
If the FBC is still writing into stolen, it will overwrite any future
users of that stolen region. Check before release, just to ease any
concerns -- we can remove it again later if it is barking up the wrong
tree.

References: https://gitlab.freedesktop.org/drm/intel/-/issues/1635
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200503180034.20010-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed May 4, 2020
1 parent 690d22d commit 0065e5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/display/intel_fbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,9 @@ static void __intel_fbc_cleanup_cfb(struct drm_i915_private *dev_priv)
{
struct intel_fbc *fbc = &dev_priv->fbc;

if (WARN_ON(intel_fbc_hw_is_active(dev_priv)))
return;

if (!drm_mm_node_allocated(&fbc->compressed_fb))
return;

Expand Down

0 comments on commit 0065e5f

Please sign in to comment.