All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] lib/igt_eld: Log module load state when no eld# nodes are found
@ 2026-10-15 11:25 Chaitanya Kumar Borah
  2026-10-15 13:17 ` ✓ i915.CI.BAT: success for " Patchwork
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Chaitanya Kumar Borah @ 2026-10-15 11:25 UTC (permalink / raw)
  To: igt-dev; +Cc: Chaitanya Kumar Borah, Jeevan B, Swati Sharma

eld_is_supported() silently fails when ELD procfs node polling times out.
Log module load state to identify whether audio drivers are loaded when
IGT attempts to read the ELD nodes.

Cc: Jeevan B <jeevan.b@intel.com>
Cc: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
---
 lib/igt_eld.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/lib/igt_eld.c b/lib/igt_eld.c
index 896ab0e6b..bfb83a213 100644
--- a/lib/igt_eld.c
+++ b/lib/igt_eld.c
@@ -36,6 +36,7 @@
 #include "igt_aux.h"
 #include "igt_core.h"
 #include "igt_eld.h"
+#include "igt_kmod.h"
 
 #define ELD_PREFIX "eld#"
 #define ELD_DELIM " \t"
@@ -301,8 +302,15 @@ static bool eld_has_nodes(void)
  * for a bounded amount of time before giving up to avoid spurious skips. */
 bool eld_is_supported(void)
 {
-	return igt_wait(eld_has_nodes(), ELD_SUPPORTED_TIMEOUT_MS,
-			ELD_SUPPORTED_INTERVAL_MS);
+	bool supported = igt_wait(eld_has_nodes(), ELD_SUPPORTED_TIMEOUT_MS,
+				   ELD_SUPPORTED_INTERVAL_MS);
+
+	if (!supported)
+		igt_debug("No eld# nodes found; snd_hda_intel loaded: %s, snd_hda_core loaded: %s\n",
+			  igt_kmod_is_loaded("snd_hda_intel") ? "yes" : "no",
+			  igt_kmod_is_loaded("snd_hda_core") ? "yes" : "no");
+
+	return supported;
 }
 
 #define ELD_MAX_SIZE 256
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-10-28 10:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-15 11:25 [PATCH i-g-t] lib/igt_eld: Log module load state when no eld# nodes are found Chaitanya Kumar Borah
2026-10-15 13:17 ` ✓ i915.CI.BAT: success for " Patchwork
2026-10-15 18:38 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-28  6:39 ` ✓ Xe.CI.BAT: success for lib/igt_eld: Log module load state when no eld# nodes are found (rev2) Patchwork
2026-10-28  6:56 ` ✓ i915.CI.BAT: " Patchwork
2026-10-28  8:53 ` [PATCH i-g-t] lib/igt_eld: Log module load state when no eld# nodes are found Samala, Pranay
2026-10-28  9:22   ` Borah, Chaitanya Kumar
2026-10-28  9:50     ` Samala, Pranay
2026-10-28 10:04       ` Borah, Chaitanya Kumar
2026-10-28 10:00 ` ✓ i915.CI.Full: success for lib/igt_eld: Log module load state when no eld# nodes are found (rev2) Patchwork
2026-10-28 10:59 ` ✓ Xe.CI.FULL: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.