[Intel-gfx] [PATCH] drm/i915: POWER_DOMAIN_AUDIO ref-count debug logs

Anshuman Gupta anshuman.gupta at intel.com
Wed Jun 17 09:50:01 UTC 2020


Debug print for power domain audio get/put.
This will help to deubg the CI s2idle incomplete
failures.

Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
 drivers/gpu/drm/i915/display/intel_audio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_audio.c b/drivers/gpu/drm/i915/display/intel_audio.c
index ad4aa66fd676..145afd2f1d4a 100644
--- a/drivers/gpu/drm/i915/display/intel_audio.c
+++ b/drivers/gpu/drm/i915/display/intel_audio.c
@@ -1012,6 +1012,7 @@ static unsigned long i915_audio_component_get_power(struct device *kdev)
 	/* Catch potential impedance mismatches before they occur! */
 	BUILD_BUG_ON(sizeof(intel_wakeref_t) > sizeof(unsigned long));
 
+	drm_dbg_kms(&dev_priv->drm, "get audio power domian power\n");
 	ret = intel_display_power_get(dev_priv, POWER_DOMAIN_AUDIO);
 
 	if (dev_priv->audio_power_refcount++ == 0) {
@@ -1045,6 +1046,7 @@ static void i915_audio_component_put_power(struct device *kdev,
 		if (IS_GEMINILAKE(dev_priv))
 			glk_force_audio_cdclk(dev_priv, false);
 
+	drm_dbg_kms(&dev_priv->drm, "put audio power domian power\n");
 	intel_display_power_put(dev_priv, POWER_DOMAIN_AUDIO, cookie);
 }
 
-- 
2.26.2



More information about the Intel-gfx mailing list