Skip to content

TGL; sound card binding fails with error "failed to ready HDA controller" #3078

Closed

Description

@sathya-nujella

Error from dmesg:
sof-audio-pci 0000:00:1f.3: error: get caps error
sof-audio-pci 0000:00:1f.3: error: failed to probe DSP -5
sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -5

Test step to repro:
This issue is happening only when: "google hotword capture path is OPEN + panic happened in DUT which prevented normal shutdown sequence".

History for the issue:

Earlier fix provided for this issue:
Added shutdown call back to put DSP to D3 at the time of shutdown.

Why we are seeing the issue now:
Some times DUT encountered non-audio related kernel panic. Because of this kernel did not do proper shutdown.
So, audio driver could not perform putting DSP to D3 state.
When some kernel panic happens, DUT rebooted and encountered this audio issue.

Now,
WA accepted in Chrome 5.4 kernel:
Do not enable D0i3 work
https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3025608/
This kernel WA prevents the problem observed.

Google's comment:
Upstream is still susceptible to this issue.
So, this WA can be accepted only for short term only.

Based on this comment: creating this tracker for long term fix.

EDIT: internal issue 22012784321

Activity

  1. added
    TGLApplies to Tiger Lake platform
    P3Low-impact bugs or features
    on Aug 3, 2021
  2. plbossart commented on Aug 3, 2021

    @plbossart
    Member

    This a tough one @sathya-nujella. We have a known requirement to execute the .shutdown callback to be able to reboot reliably. If anything non-audio interferes with this, the options are really really limited. I can't think of any turn-key proposal outside of 'fix the other drivers'...
    @ranj063 any suggestions?

  3. plbossart commented on Nov 10, 2021

    @plbossart
    Member

    @sathya-nujella can you confirm when the non-audio related kernel panic. Is this after the start of device_shutdown()?

    @ranj063 I vaguely recall you mentioning that there might be a magic sequence we could use on the reboot part? if not we'd have to hack the shutdown() sequence to be done earlier, maybe with a reboot notifier

    static void kernel_shutdown_prepare(enum system_states state)
    {
        blocking_notifier_call_chain(&reboot_notifier_list,
            (state == SYSTEM_HALT) ? SYS_HALT : SYS_POWER_OFF, NULL); <<< This is where we can add a callback to force the device to get out of D0i1
        system_state = state;
        usermodehelper_disable();
        device_shutdown(); <<< this is where we force the device to get out of D0i1 today, and it's not reached if there's a panic earlier.
    }
  4. ranj063 commented on Nov 10, 2021

    @ranj063
    Collaborator

    @ranj063 I vaguely recall you mentioning that there might be a magic sequence we could use on the reboot part? if not we'd have to hack the shutdown() sequence to be done earlier, maybe with a reboot notifier

    @plbossart the magic sequence didnt quite work as expected and the HW team is still debugging further.

  5. marc-hb commented on Nov 12, 2021

    @marc-hb
    Collaborator

    When some kernel panic happens, DUT rebooted

    @sathya-nujella How is the DUT rebooted in that case?

    (In 2011 there were at least 5 ways to reboot: https://mjg59.livejournal.com/137313.html )

  6. plbossart commented on Jun 29, 2022

    @plbossart
    Member

    @sathya-nujella there's been no update since November 2021, so closing this bug. If there's still an ask to fix something, please re-create an issue with a test that can be reproduced.

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

    P3Low-impact bugs or featuresTGLApplies to Tiger Lake platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions