Skip to content

[BUG][TGL] failed to ready HDA controller gctl 0x0 (sof_probe_work failed) #2571

Closed

Description

@sathya-nujella

DUT: TGL Chrome DUT with Max98373_RT5682 I2S
BIOS: Coreboot
Kernel: Google - Kernel 5.4
https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-5.4

Issue:
Sound card creation failed.

TEST SCENARIO:
During reboot tests, randomly seeing this issue.
Able to reproduce the issue (no consistent method, just reboot some times catch this issue).

From logs:
1) error from dmesg:
[ 8.912119] sof-audio-pci 0000:00:1f.3: error: failed to ready HDA controller gctl 0x0
[ 8.922070] sof-audio-pci 0000:00:1f.3: error: get caps error
[ 8.929600] sof-audio-pci 0000:00:1f.3: display power disable
[ 8.929622] sof-audio-pci 0000:00:1f.3: error: failed to probe DSP -5
[ 8.937423] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -5

  1. lspci -vvvv //1f.3 part
    00:1f.3 Multimedia audio controller: Intel Corporation Device a0c8 (rev 20)
    Subsystem: Intel Corporation Device 7270
    Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
    Interrupt: pin A routed to IRQ 16
    Region 0: Memory at 7ff48000 (64-bit, non-prefetchable) [size=16K]
    Region 4: Memory at 7fe00000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [50] Power Management version 3
    Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
    Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [80] Vendor Specific Information: Len=14 <?>
    Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
    Address: 0000000000000000 Data: 0000
    Kernel driver in use: sof-audio-pci
    Kernel modules: snd_hda_intel, snd_sof_pci

Activity

  1. added
    P1Blocker bugs or important features
    TGLApplies to Tiger Lake platform
    on Nov 20, 2020
  2. added
    bugSomething isn't working
    ChromeRelated to Chrome integration
    on Nov 20, 2020
  3. kv2019i commented on Nov 20, 2020

    @kv2019i
    Collaborator

    There are a couple of past bugs with similar fingerprint:
    #1399
    #1556
    #1735

    Most have such low reproduce rates, that no exact patch could be pointed to for making the problem go away.

    One concrete thing to try is this:
    #1735 (comment)

  4. kv2019i commented on Nov 20, 2020

    @kv2019i
    Collaborator

    Findings today:

    • with snd-hda-intel, bug is harder to trigger (on same system)
    • when bug occurs, unloading and reloading does not help
    • when bug occurs, unloading and reloading snd-hda-intel instead of SOF, does not help

    Yet to be tested:

    • try to reproduce with force-nocodec mode
    • unloading driver always before reboot
    • increase delay to wait HDA to come from reset
  5. plbossart commented on Nov 20, 2020

    @plbossart
    Member

    Right, we faced this before and never reached a conclusion as to what cause the capability parsing to fail. I had a discussion with hardware folks and there was no smoking gun.

    A work-around was added in upstream commit f09e9c7 ('ASoC: SOF: Intel: hda-ctrl: add reset cycle before parsing capabilities')

    @sathya-nujella can you check if this was back-ported and try to revert it if yes?

  6. ranj063 commented on Nov 20, 2020

    @ranj063
    Collaborator

    Right, we faced this before and never reached a conclusion as to what cause the capability parsing to fail. I had a discussion with hardware folks and there was no smoking gun.

    A work-around was added in upstream commit f09e9c7 ('ASoC: SOF: Intel: hda-ctrl: add reset cycle before parsing capabilities')

    @sathya-nujella can you check if this was back-ported and try to revert it if yes?

    @plbossart I already suggested this last night and it didnt help

  7. kv2019i commented on Nov 20, 2020

    @kv2019i
    Collaborator

    More tests:

    • try to reproduce with force-nocodec mode -> still happens
    • increase delay to wait HDA to come from reset -> done, did not help

    Ongoing:

    • unloading driver always before reboot -> under progress, @sathya-nujella running, no errors yet but very limited iterations
  8. plbossart commented on Nov 20, 2020

    @plbossart
    Member

    @ranj063 if the unloading driver before reboot solves the issue, wouldn't this point to a .shutdown() callback that's not doing the same thing as a .remove()?

  9. ranj063 commented on Nov 20, 2020

    @ranj063
    Collaborator

    @ranj063 if the unloading driver before reboot solves the issue, wouldn't this point to a .shutdown() callback that's not doing the same thing as a .remove()?

    @plbossart I'd think so. I'll work with @sathya-nujella this morning to try it out.

  10. sathya-nujella commented on Nov 22, 2020

    @sathya-nujella
    Author

    Thank you @ranj063 . In today's debug with Ranjani's support tried, warm reboot tests.
    With her suggestion, found out that after reverting this SOF patch, issue not reproduced in 100-iterations.
    As it is random issue, I will continue more tests. But clearly reverting that SOF patch shows improvement.

    Patch reverted: thesofproject/sof@75561a9

    SOF issue reported based on this: thesofproject/sof#3633

  11. mengdonglin commented on Nov 23, 2020

    @mengdonglin

    Let's track the issue in thesofproject/sof#3633 atm

  12. 15 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ChromeRelated to Chrome integrationHDA reset failureHD-Audio controller failed to resetP1Blocker bugs or important featuresTGLApplies to Tiger Lake platformbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions