[PATCH 5/5] count
Chris Wilson
chris at chris-wilson.co.uk
Thu Aug 9 12:25:46 UTC 2018
---
drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index ad009f2afbcf..d507a83bd6cf 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -4223,7 +4223,9 @@ void intel_runtime_pm_disable(struct drm_i915_private *dev_priv)
void intel_runtime_pm_cleanup(struct drm_i915_private *dev_priv)
{
- if (WARN_ON(atomic_read(&dev_priv->runtime_pm.wakeref_count))) {
+ if (WARN(atomic_read(&dev_priv->runtime_pm.wakeref_count),
+ "i915->runtime_pm.wakeref_count=%d on cleanup\n",
+ atomic_read(&dev_priv->runtime_pm.wakeref_count))) {
show_intel_runtime_pm_wakeref(dev_priv);
atomic_set(&dev_priv->runtime_pm.wakeref_count, 0);
}
--
2.18.0
More information about the Intel-gfx-trybot
mailing list