You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[LNL] multiple cases failing to HDMI playback on SDW configurations with gpu_bind disabled #5098
LNLApplies to Lunar Lake platformP2Critical bugs or normal featuresSDWApplies to SoundWire bus for codec connectionbugSomething isn't workingdisplay audioAudio to HDMI/DisplayPort via HDA
This issue still reproducible on latest. Currntly we have WA "NO_HDMI_MODE=true" is set on device enviroment so we are not seeing issue in CI results.
cc: @kv2019i@plbossart@lgirdwood
I think @ujfalusi@bardliao@plbossart there's a problem in sof_sdw mach driver handling the case where display driver is not available and no HDMI PCms are available: Jul 08 13:41:39 kernel: snd_soc_sof_sdw:sof_card_dai_links_create: sof_sdw sof_sdw: sdw 5, ssp 0, dmic 0, hdmi 0, bt: 0
The HDMI PCM never worked when there were no HDMI hardware, it has been like this with HDA devices also. The hw_params fails because of the missing real DAI.
That's not true @ujfalusi , this has been working but has been broken at some point. It seems some of the changes to HDA DAI ops now return -EINVAL when dummy codec driver is connected. This DID work in the past.
UPDATE: I can confirm this is broken on TGL as well if HDMI is disable via codec_mask. This did work in the past, will bisect to see where this got broken.
I'm sure about the past :) -- but this is not just for debug, this is actual product config for HDA where there is Intel GPU is disabled for reason or another. Granted most of these laptops use the non-SOF driver, but there are actual product configs with dmic (=SOF) and some other GPU, so this dummy codec construct must work!
Can this be the reason: #4659 ?
We don't register HDMI dais when there is no HDMI, before that PR we registered the dais multiple times (analog would register the HDMI also and HDMI would register the analog), causing warnings.
changed the title [-][LNL] multiple cases failing to HDMI playback on SDW configurations[/-][+][LNL] multiple cases failing to HDMI playback on SDW configurations with gpu_bind disabled[/+]on Jul 16, 2024
I'll lower the priority now as this is not hit at card probe and normal applications will not open the HDMI if no monitor is detected (and no monitor ever will on these devices). So the remaining open is Pulseaudio/Pipewire habit of opening the PCMs and doing a hw_params query. Maybe -EINVAL is ok for this case as well (and my memory really malfunctions here). If so, we can close this.
Tested with upstream 6.8 kernel and pipewire 0.3.79 (versions used in 24.04LTS) and the -EINVAL errors at pipewire start are handled correctly and rest of audio functionalty is ok. So I'll close this as works-as-expected ad we can track the test device configuration issues elsewhere.
LNLApplies to Lunar Lake platformP2Critical bugs or normal featuresSDWApplies to SoundWire bus for codec connectionbugSomething isn't workingdisplay audioAudio to HDMI/DisplayPort via HDA
Activity
kv2019i commentedon Jul 8, 2024
FYI @lyakh
marc-hb commentedon Jul 8, 2024
Observed in today's daily run https://sof-ci.ostc.intel.com/#/result/planresultdetail/43591?model=LNLM_SDW_AIOC&testcase=check-playback-all-formats on jf-lnlm-rvp-sdw-1
Other LNL configurations are indeed not affected.
marc-hb commentedon Jul 9, 2024
Could this be caused by some device-specific configuration? It did not happen on
ba-lnlm-rvp-sdw-01in the July 7th (planresultdetail/43565) and July 9th (planresultdetail/43642) daily tests. Also not in https://sof-ci.01.org/softestpr/PR1218/build625/devicetest/index.htmlEDIT: failed on
ba-lnlm-rvp-sdw-03in https://sof-ci.01.org/sofpr/PR9276/build6355/devicetest/index.htmlhttps://sof-ci.01.org/softestpr/PR1218/build604/devicetest/index.html
jf-lnlm-rvp-sdw-1in https://sof-ci.01.org/softestpr/PR1218/build600/devicetest/index.htmlssavati commentedon Jul 15, 2024
This issue still reproducible on latest. Currntly we have WA "NO_HDMI_MODE=true" is set on device enviroment so we are not seeing issue in CI results.
cc: @kv2019i @plbossart @lgirdwood
kv2019i commentedon Jul 16, 2024
I'll take a look at this, but FYI to @ujfalusi and @ranj063 in case we need to switch.
ujfalusi commentedon Jul 16, 2024
Only affecting LNL, TGL/MTL HDMI is working fine?
ssavati commentedon Jul 16, 2024
@ujfalusi this is not observed on MTL. I will check on TGL and update
4 remaining items
ujfalusi commentedon Jul 16, 2024
@kv2019i, we should have dummy links for the HDMI PCMs to probe. They will not work, but they need to be there to be able to load the topology.
plbossart commentedon Jul 16, 2024
We do have dummy links, the problem is not the probe:
It's the error on hw_params that needs to be root-caused.
plbossart commentedon Jul 16, 2024
the debug log is misleading
hdmi_num is 4 on TGL and 3 on all other devices, so we do create 3+ links.
ujfalusi commentedon Jul 16, 2024
The HDMI PCM never worked when there were no HDMI hardware, it has been like this with HDA devices also. The hw_params fails because of the missing real DAI.
kv2019i commentedon Jul 16, 2024
That's not true @ujfalusi , this has been working but has been broken at some point. It seems some of the changes to HDA DAI ops now return -EINVAL when dummy codec driver is connected. This DID work in the past.
UPDATE: I can confirm this is broken on TGL as well if HDMI is disable via codec_mask. This did work in the past, will bisect to see where this got broken.
ujfalusi commentedon Jul 16, 2024
@kv2019i, I'm not sure about past, but now it is not working on tgl either:
ujfalusi commentedon Jul 16, 2024
and:
kv2019i commentedon Jul 16, 2024
I'm sure about the past :) -- but this is not just for debug, this is actual product config for HDA where there is Intel GPU is disabled for reason or another. Granted most of these laptops use the non-SOF driver, but there are actual product configs with dmic (=SOF) and some other GPU, so this dummy codec construct must work!
ujfalusi commentedon Jul 16, 2024
@kv2019i, I trust your memory. It did not worked on 18.09.2023: #4594 (comment)
Can this be the reason: #4659 ?
We don't register HDMI dais when there is no HDMI, before that PR we registered the dais multiple times (analog would register the HDMI also and HDMI would register the analog), causing warnings.
[-][LNL] multiple cases failing to HDMI playback on SDW configurations[/-][+][LNL] multiple cases failing to HDMI playback on SDW configurations with gpu_bind disabled[/+]kv2019i commentedon Jul 16, 2024
No, it's not #4659 -- this is probably older.
I'll lower the priority now as this is not hit at card probe and normal applications will not open the HDMI if no monitor is detected (and no monitor ever will on these devices). So the remaining open is Pulseaudio/Pipewire habit of opening the PCMs and doing a hw_params query. Maybe -EINVAL is ok for this case as well (and my memory really malfunctions here). If so, we can close this.
kv2019i commentedon Jul 16, 2024
Tested with upstream 6.8 kernel and pipewire 0.3.79 (versions used in 24.04LTS) and the -EINVAL errors at pipewire start are handled correctly and rest of audio functionalty is ok. So I'll close this as works-as-expected ad we can track the test device configuration issues elsewhere.