Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] LNL RT712 and LNL RT722 fails to load topology #9295

Closed
ssavati opened this issue Jul 10, 2024 · 12 comments
Closed

[BUG] LNL RT712 and LNL RT722 fails to load topology #9295

ssavati opened this issue Jul 10, 2024 · 12 comments
Labels
bug Something isn't working as expected LNL Applies to Lunar Lake platform P1 Blocker bugs or important features

Comments

@ssavati
Copy link

ssavati commented Jul 10, 2024

Describe the bug

LNLM_RVP_RT712 and LNLM_RVP_RT722 fails to load topology but it works for LNLM_SDW_AIOC

we seen similar failure on MTLP_RVP_SDW and it fixed by PR #9284

Jul 10 13:20:44 ba-lnlm-rvp-sdw-02 kernel: sof_sdw sof_sdw: ASoC: physical link iDisp1 (id 5) not exist
Jul 10 13:20:44 ba-lnlm-rvp-sdw-02 kernel: sof_sdw sof_sdw: ASoC: topology: could not load header: -22
Jul 10 13:20:44 ba-lnlm-rvp-sdw-02 kernel: sof-audio-pci-intel-lnl 0000:00:1f.3: error: tplg component load failed -22
Jul 10 13:20:44 ba-lnlm-rvp-sdw-02 kernel: sof-audio-pci-intel-lnl 0000:00:1f.3: error: failed to load DSP topology -22
Jul 10 13:20:44 ba-lnlm-rvp-sdw-02 kernel: sof-audio-pci-intel-lnl 0000:00:1f.3: ASoC: error at snd_soc_component_probe on 0000:00:1f.3: -22
Jul 10 13:20:44 ba-lnlm-rvp-sdw-02 kernel: sof_sdw sof_sdw: ASoC: failed to instantiate card -22
Jul 10 13:20:44 ba-lnlm-rvp-sdw-02 kernel: sof_sdw sof_sdw: error -EINVAL: snd_soc_register_card failed -22
Jul 10 13:20:44 ba-lnlm-rvp-sdw-02 kernel: sof_sdw sof_sdw: probe with driver sof_sdw failed with error -22

To Reproduce
Deploy latest SOF and Kernel and boot devices

Reproduction Rate
100%

Expected behavior
Topology should load and audio should list without any error

Impact
Devices can not be used for validation

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    Linux Branch:
    topic/sof-dev
    Linux Commit:
    8245a1411fef
    SOF Branch:
    main
    SOF Commit:
    2a9b40f8a69a

  2. Name of the topology file

    • Topology:
    • LNLM_RVP_RT722 : sof-lnl-rt722-l0.tplg
    • LNLM_RVP_RT712 : sof-lnl-rt712-l2-rt1712-l3.tplg
  3. Name of the platform(s) on which the bug is observed.

    • Platform: LNLM_RVP_RT712 and LNLM_RVP_RT722
@ssavati ssavati added the bug Something isn't working as expected label Jul 10, 2024
@ssavati ssavati changed the title [BUG] LNLM_RVP_RT712 and LNLM_RVP_RT722 fails to load topology [BUG] LNL RT712 and LNL RT722 fails to load topology Jul 10, 2024
@ssavati ssavati added the P1 Blocker bugs or important features label Jul 12, 2024
@ssavati
Copy link
Author

ssavati commented Jul 12, 2024

Added P1 label as our two of CI devices are blocked for CI validation and missing SDW validation coverage.

@plbossart
Copy link
Member

@ssavati can you attach or point to the dmesg log? It's a simple fix but we need to know what the registered index is - the dailink default 5 doesn't seem to work. Thanks.

plbossart added a commit to plbossart/sof that referenced this issue Jul 15, 2024
There's no amp feedback so the indices are off-by-one compared to the
default. This should be the index map on these boards:

0: headphone
1: headset
2: speakers
3: mic
4..6: HDMI

Closes: thesofproject#9295
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@ssavati
Copy link
Author

ssavati commented Jul 15, 2024

@plbossart here is dmesg logs dmesg_hdmi_fail.txt

@plbossart
Copy link
Member

I don't think you added the relevant log @ssavati, it mentions rt711 and rt1316, the issue is about rt712 and rt722

@ssavati
Copy link
Author

ssavati commented Jul 15, 2024

I don't think you added the relevant log @ssavati, it mentions rt711 and rt1316, the issue is about rt712 and rt722

sorry i have attached wrong log files. here attaching new logs files

dmesg_722.txt
dmesg_712.txt

@ssavati ssavati added the LNL Applies to Lunar Lake platform label Jul 16, 2024
plbossart added a commit to plbossart/sof that referenced this issue Jul 16, 2024
There's no amp feedback so the indices are off-by-one compared to the
default. This should be the index map on these boards:

0: headphone
1: headset
2: speakers
3: mic
4..6: HDMI

Closes: thesofproject#9295
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@bardliao
Copy link
Collaborator

@ssavati @plbossart After adding options snd_soc_sdw_utils dyndbg=+pmf to sof-dyndbg.conf, I will get below dmesg log

[    5.453986] snd_soc_sof_sdw:sof_card_dai_links_create: sof_sdw sof_sdw: sdw 4, ssp 0, dmic 2, hdmi 0, bt: 0
[    5.453989] snd_soc_sdw_utils:asoc_sdw_init_dai_link: sof_sdw sof_sdw: create dai link SDW0-Playback-SimpleJack, id 0
[    5.454027] snd_soc_sdw_utils:asoc_sdw_init_dai_link: sof_sdw sof_sdw: create dai link SDW0-Capture-SimpleJack, id 1
[    5.454030] snd_soc_sdw_utils:asoc_sdw_init_dai_link: sof_sdw sof_sdw: create dai link SDW0-Playback-SmartAmp, id 2
[    5.454032] snd_soc_sdw_utils:asoc_sdw_init_dai_link: sof_sdw sof_sdw: create dai link SDW0-Capture-SmartMic, id 4
[    5.454033] snd_soc_sdw_utils:asoc_sdw_init_dai_link: sof_sdw sof_sdw: create dai link dmic01, id 5
[    5.454035] snd_soc_sdw_utils:asoc_sdw_init_dai_link: sof_sdw sof_sdw: create dai link dmic16k, id 6
[    5.454037] snd_soc_sdw_utils:asoc_sdw_init_dai_link: sof_sdw sof_sdw: create dai link iDisp1, id 7
[    5.454038] snd_soc_sdw_utils:asoc_sdw_init_dai_link: sof_sdw sof_sdw: create dai link iDisp2, id 8
[    5.454040] snd_soc_sdw_utils:asoc_sdw_init_dai_link: sof_sdw sof_sdw: create dai link iDisp3, id 9

The problem is that there are both SDW DMIC and PCH DMIC links are created. For rt712 and rt722, we may want to disable PCH DMIC from BIOS.

@plbossart
Copy link
Member

Thanks @bardliao, please make sure this change is added to the CI default.

I think it's indeed a configuration issue at the BIOS level, it makes no sense to have both NHLT definitions for DMIC and SoundWire definitions for SoundWire mic codec.

@ssavati please update the boards and let us know the resuilt

@ssavati
Copy link
Author

ssavati commented Jul 16, 2024

@ssavati please update the boards and let us know the resuilt

Sure I will check PR #9302 with DMIC disabled

@plbossart
Copy link
Member

I think you just need main with DMIC disabled, PR #9302 is probably incorrect.

@fredoh9
Copy link
Contributor

fredoh9 commented Jul 16, 2024

I quickly checked with LNLM_RVP_RT722.
In BIOS we need to disable both places

  1. disable DMIC 1 & DMIC 2 in HD Audio config
  2. disable DMIC Quad (or DMIC stereo) in DSP Feature

After this, I'm able to load sof-lnl-rt722-l0.tplg

@ssavati
Copy link
Author

ssavati commented Jul 17, 2024

@fredoh9 thanks for confirming. I too checked with the above BIOS settings and devices are listed.

@plbossart @kv2019i Is this default BIOS settings going forward for 712/722 ? or is it's workaround till the actual issue is fixed in topology/Kernel ?
I mean can we close this issue or keep it open ?

@plbossart
Copy link
Member

These BIOS settings are going to be the default IMHO, so we can close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected LNL Applies to Lunar Lake platform P1 Blocker bugs or important features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants