All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
To: "Samala, Pranay" <pranay.samala@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "B, Jeevan" <jeevan.b@intel.com>,
	"Sharma, Swati2" <swati2.sharma@intel.com>
Subject: Re: [PATCH i-g-t] lib/igt_eld: Log module load state when no eld# nodes are found
Date: Wed, 28 Oct 2026 14:52:49 +0530	[thread overview]
Message-ID: <5d7189cd-9e1f-43bb-9015-be712d2333e4@intel.com> (raw)
In-Reply-To: <PH7PR11MB6053FF9ACDBB32795BFDA3ACE76F2@PH7PR11MB6053.namprd11.prod.outlook.com>



On 10/28/2026 2:23 PM, Samala, Pranay wrote:
> Hi Chaitanya,
> 
>> -----Original Message-----
>> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of
>> Chaitanya Kumar Borah
>> Sent: Thursday, October 15, 2026 4:56 PM
>> To: igt-dev@lists.freedesktop.org
>> Cc: Borah, Chaitanya Kumar <chaitanya.kumar.borah@intel.com>; B, Jeevan
>> <jeevan.b@intel.com>; Sharma, Swati2 <swati2.sharma@intel.com>
>> Subject: [PATCH i-g-t] lib/igt_eld: Log module load state when no eld# nodes
>> are found
>>
>> 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,
> 
> Use igt_warn/igt_info to log in CI logs. igt_debug won't log without --debug.
> 

This is not needed in my opinion because a test failure already triggers 
a debug print in our CI.

>> snd_hda_core loaded: %s\n",
>> +			  igt_kmod_is_loaded("snd_hda_intel") ? "yes" : "no",
> 
> As per my understanding, on SOF-based Intel platforms (with DMIC/Soundwire),
> snd_hda_intel still gets loaded but aborts its probe, and SOF driver bound to the
> audio device instead.
> If so, this would print "loaded: yes" even though it's not driving the hardware.
> 
> Would it be better to check whether the driver is bound rather than loaded?
> 

AFAIK, our CI system never loads the SOF drivers, let me know if you 
have evidence to the contrary.

==
Chaitanya

> Regards,
> Pranay
> 
>> +			  igt_kmod_is_loaded("snd_hda_core") ? "yes" :
>> "no");
>> +
>> +	return supported;
>>   }
>>
>>   #define ELD_MAX_SIZE 256
>> --
>> 2.50.1
> 


  reply	other threads:[~2026-10-28  9:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5d7189cd-9e1f-43bb-9015-be712d2333e4@intel.com \
    --to=chaitanya.kumar.borah@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevan.b@intel.com \
    --cc=pranay.samala@intel.com \
    --cc=swati2.sharma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.