]> git.itanic.dy.fi Git - linux-stable/commit
drm/i915: Drain freed object after suspend display
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 29 Jun 2022 13:47:21 +0000 (06:47 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 30 Jun 2022 13:55:30 +0000 (06:55 -0700)
commit87a7d5350c67aca513dc0a80f696d5583430d594
tree54745a917976afe5d85b896c08a033c311096507
parent0f36d074aeb51a20508a65861d1518dbc231a1fc
drm/i915: Drain freed object after suspend display

Display is turned off by i915_drm_suspend() during the suspend
procedure, removing the last reference of some gem objects that were
used by display.

The issue is that those objects are only actually freed when
mm.free_work executed and that can happen very late in the suspend
process causing issues.
So here draining all freed objects released by display fixing suspend
issues.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220629134721.48375-1-jose.souza@intel.com
drivers/gpu/drm/i915/i915_driver.c