[Intel-gfx] [PATCH] drm/i915/display: Poison the async power domain on shutdown

Chris Wilson chris at chris-wilson.co.uk
Fri Apr 10 08:25:25 UTC 2020


Lets see if we can find who is still running after the driver has been
removed!

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/display/intel_display_power.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c b/drivers/gpu/drm/i915/display/intel_display_power.c
index 433e5a81dd4d..9d18b24730b2 100644
--- a/drivers/gpu/drm/i915/display/intel_display_power.c
+++ b/drivers/gpu/drm/i915/display/intel_display_power.c
@@ -2282,6 +2282,7 @@ intel_display_power_flush_work_sync(struct drm_i915_private *i915)
 
 	intel_display_power_flush_work(i915);
 	cancel_delayed_work_sync(&power_domains->async_put_work);
+	memset(&power_domains->async_put_work, POISON_FREE, sizeof(power_domains->async_put_work));
 
 	verify_async_put_domains_state(power_domains);
 
-- 
2.20.1



More information about the Intel-gfx mailing list