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
TGL; sound card binding fails with error "failed to ready HDA controller" #3078
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".
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.
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?
@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
staticvoidkernel_shutdown_prepare(enumsystem_statesstate)
{
blocking_notifier_call_chain(&reboot_notifier_list,
(state==SYSTEM_HALT) ? SYS_HALT : SYS_POWER_OFF, NULL); <<<ThisiswherewecanaddacallbacktoforcethedevicetogetoutofD0i1system_state=state;
usermodehelper_disable();
device_shutdown(); <<<thisiswhereweforcethedevicetogetoutofD0i1today, andit's not reached if there'sapanicearlier.
}
@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.
@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.
Activity
plbossart commentedon Aug 3, 2021
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?
plbossart commentedon Nov 10, 2021
@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
ranj063 commentedon Nov 10, 2021
@plbossart the magic sequence didnt quite work as expected and the HW team is still debugging further.
marc-hb commentedon Nov 12, 2021
@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 )
plbossart commentedon Jun 29, 2022
@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.