Skip to content

[Bug][CML][5.0] No soundcard because "HDMI failed to get afg sub nodes" after system boot up (Frequency:2/10) #1374

Closed

Description

@ClarexZhou

Describe the bug
No sound card because "HDMI failed to get afg sub nodes" after system boot up.

To Reproduce

  1. Boot up system
  2. aplay -l to check, display no sound card.

frequency
About 2/10. Tried as below

Scenaro Without HDMI/DP/WD19 dock
Cold Boot (Power off via long press power button) Pass: 1st/2nd/3rd/4th/6th/7th/8th/9th No soundcard Fail: 5th/10th
Cold Boot (Power off via power off menu) Pass: 1st/3rd/4th No soundcard Fail: 2nd
Warm boot ("sudo reboot" command) Pass: 1st/2nd/3rd/ No soundcard Fail: 4th

Actual result
No soundcard

Expected result
Should load successfully

Error seen with firmware master and kernel integration/soundwire-latest branch.
Environment
Kernel repo https://github.com/thesofproject/linux/commits/release/sof-v5.0 (6a4a824) + PR#1366
Firmware repo https://github.com/thesofproject/sof/tree/cml-hda-dmic-001-drop-stable (6cc8da10)
Topology: Same as above SOF repo, sof-hda-generic.tplg
UCM https://github.com/alsa-project/alsa-ucm-conf (c8808f6d)+ PR#4
Kconfig: https://github.com/thesofproject/kconfig(3d5d665) + PR#15
Platform: CML WA*-L notebook in HDA mode

[    4.699512] sof-audio-pci 0000:00:1f.3: warn: FW ABI is more recent than kernel
[    4.699738] sof-audio-pci 0000:00:1f.3: firmware boot complete
[    4.706124] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link iDisp1
[    4.706127] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link iDisp2
[    4.706130] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link iDisp3
[    4.706132] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link Analog Playback and Capture
[    4.706134] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link Digital Playback and Capture
[    4.706136] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link dmic01
[    4.706138] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link dmic16k
[    4.708860] sof-audio-pci 0000:00:1f.3: Topology: ABI 3:7:0 Kernel ABI 3:6:0
[    4.708863] sof-audio-pci 0000:00:1f.3: warn: topology ABI is more recent than kernel
[    4.708874] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp3 Tx not handled
[    4.709717] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec0_in not handled
[    4.709720] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp2 Tx not handled
[    4.710542] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec1_in not handled
[    4.710545] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp1 Tx not handled
[    4.711327] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec0_out not handled
[    4.711331] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Analog CPU Playback not handled
[    4.712135] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec1_out not handled
[    4.712138] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Digital CPU Playback not handled
[    4.712141] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec2_in not handled
[    4.712144] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Alt Analog CPU Playback not handled
[    4.712147] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec2_out not handled
[    4.712149] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Analog CPU Capture not handled
[    4.713007] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp1_out not handled
[    4.713010] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Digital CPU Capture not handled
[    4.713880] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp2_out not handled
[    4.713886] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Alt Analog CPU Capture not handled
[    4.714744] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp3_out not handled
[    4.721990] sof-audio-pci 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred
[    5.734048] snd_hda_codec_hdmi ehdaudio0D2: HDMI: failed to get afg sub nodes
[    5.734056] snd_hda_codec_hdmi ehdaudio0D2: patch failed -22
[    5.734152] snd_hda_codec_hdmi ehdaudio0D2: ASoC: failed to probe component -22
[    5.734202] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: failed to instantiate card -22
[    5.734417] skl_hda_dsp_generic: probe of skl_hda_dsp_generic failed with error -22

HDMI_failed_to_get_afg_sub_nodes.txt

Activity

  1. added
    bugSomething isn't working
    CFLApplies to Coffee Lake platform
    HDAApplies to HD-Audio bus for codec connection
    on Oct 25, 2019
  2. changed the title [-][Bug][CFL]No soundcard for HDMI failed to get afg sub nodes after system boot up (Frequency:2/10)[/-] [+][Bug][CFL]No soundcard because "HDMI failed to get afg sub nodes" after system boot up (Frequency:2/10)[/+] on Oct 25, 2019
  3. ClarexZhou commented on Oct 25, 2019

    @ClarexZhou
    Author

    Test on CML Man* notebook in HDA mode with same kernel and FW.
    Error also occurred: Frequency: 6/100

    
    ubuntu@sof-dell-cml-hda-06:~/reboot-logs$ grep "failed to get afg sub nodes" *
    dmesg_failed_40.log:[    3.396210] snd_hda_codec_hdmi ehdaudio0D2: HDMI: failed to get afg sub nodes
    dmesg_failed_43.log:[    3.412893] snd_hda_codec_hdmi ehdaudio0D2: HDMI: failed to get afg sub nodes
    dmesg_failed_44.log:[    3.395838] snd_hda_codec_hdmi ehdaudio0D2: HDMI: failed to get afg sub nodes
    dmesg_failed_77.log:[    3.389652] snd_hda_codec_hdmi ehdaudio0D2: HDMI: failed to get afg sub nodes
    dmesg_failed_89.log:[    3.603853] snd_hda_codec_hdmi ehdaudio0D2: HDMI: failed to get afg sub nodes
    dmesg_failed_94.log:[    3.599944] snd_hda_codec_hdmi ehdaudio0D2: HDMI: failed to get afg sub nodes
    
    

    dmesg_failed_40.txt

    dmesg_failed_40.txt

  4. changed the title [-][Bug][CFL]No soundcard because "HDMI failed to get afg sub nodes" after system boot up (Frequency:2/10)[/-] [+][Bug][CML]No soundcard because "HDMI failed to get afg sub nodes" after system boot up (Frequency:2/10)[/+] on Oct 28, 2019
  5. added
    CMLApplies to Comet Lake platform
    and removed
    CFLApplies to Coffee Lake platform
    on Oct 28, 2019
  6. changed the title [-][Bug][CML]No soundcard because "HDMI failed to get afg sub nodes" after system boot up (Frequency:2/10)[/-] [+][Bug][CML][5.0] No soundcard because "HDMI failed to get afg sub nodes" after system boot up (Frequency:2/10)[/+] on Oct 28, 2019
  7. kv2019i commented on Oct 28, 2019

    @kv2019i
    Collaborator

    Note: this bug does not happen in mainline sof-dev and seems to be specific to 5.0 kernel branch with the common HDMI driver used.

    Based on debug today, this seems to be caused by missing patch to enable "sync_write" mode for SOF. Backported patch to 5.0 branch is available via PR: #1388

  8. ClarexZhou commented on Oct 29, 2019

    @ClarexZhou
    Author

    Error not seen with #1388 merged. Close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CMLApplies to Comet Lake platformHDAApplies to HD-Audio bus for codec connectionP1Blocker bugs or important featuresbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions