[PATCH] sound/hda/hdac_i915: debugging the binding time required

Ramalingam C ramalingam.c at intel.com
Tue Feb 22 18:22:54 UTC 2022


For testing only.

Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
---
 sound/hda/hdac_i915.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/sound/hda/hdac_i915.c b/sound/hda/hdac_i915.c
index fbca4bf53a47..d98e9427aeab 100644
--- a/sound/hda/hdac_i915.c
+++ b/sound/hda/hdac_i915.c
@@ -163,6 +163,7 @@ static bool dg1_gfx_present(void)
 int snd_hdac_i915_init(struct hdac_bus *bus)
 {
 	struct drm_audio_component *acomp;
+	unsigned long jiff;
 	int err;
 
 	if (!i915_gfx_present())
@@ -183,8 +184,12 @@ int snd_hdac_i915_init(struct hdac_bus *bus)
 		if (!IS_ENABLED(CONFIG_MODULES) ||
 		    !request_module("i915")) {
 			/* 60s timeout */
-			wait_for_completion_timeout(&acomp->master_bind_complete,
-						    msecs_to_jiffies(60 * 1000));
+			jiff = wait_for_completion_timeout(&acomp->master_bind_complete,
+							   msecs_to_jiffies(60 * 1000));
+			dev_err(bus->dev,
+				"snd_hdac_i915 bind: %s. mSecs left %ld/60000mSec\n",
+				jiff > 0 ? "success" : "Failed",
+				jiff > 0 ? jiffies_to_msecs(jiff) : jiff);
 		}
 	}
 	if (!acomp->ops) {
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list