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
[BUG][TGL] "power off/power on" stress test make the system hang randomly #2781
We have a LENOVO TGL laptop model, and have 4 SKUs of this model.
We run "power off/power on" stress test on them, the "power off/power on" will repeat 30 times in a test round. we found the system will hang randomly during the power off process.
This issue happened on all 4 SKUS. And we found if we blacklist snd-sof-pci, the system will not hang. And If we add snd_hda_intel.dmic_detect=0, the system will not hang.
We tested ubuntu 5.10.0-1013oem kernel, mainline 5.11-rc7 kernel and thesofproject/linux topic/sof-dev (5.11-rc7), all of them could reproduce the hang issue.
@keyonjie, since this happens during the power off process, the error logs are not in the dmesg. This issue happens at the last step of power off, the dmesg daemon is already closed at the moment.
I applied the patches of #2768 to topic/sof-dev branch, and built a kernel, our QA reported this kernel still hang when executing poweroff/poweron stress test. The test should repeat poweroff/poweron 30 times, and the system got hang at the 28th poweroff.
@jason77-wang There are 2 issues in this bug as I can see from the symptom.
One issue can be fixed by #2768.
Another issue is caused by DMI L1. Please de-select "SOF enable DMI Link L1 " in the menuconfig: Device Drivers ---> Sound card support ---> Advanced Linux Sound Architecture ---> ALSA for SoC audio support ---> SOF enable DMI Link L1
After applied the patch of #2768 and disable the DMI L1, the system didn't hang anymore during 90 times poweroff stress test. Let us close this bug temporarily.
thanks.
Activity
jason77-wang commentedon Mar 5, 2021
When power off process hang, we could see the error log from monitor:
jason77-wang commentedon Mar 5, 2021
jason77-wang commentedon Mar 5, 2021
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:a0c8] (rev 20) (prog-if 80)
Subsystem: Lenovo Device [17aa:22d5]
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-
Latency: 64
Interrupt: pin A routed to IRQ 183
Region 0: Memory at 603d1d8000 (64-bit, non-prefetchable) [size=16K]
Region 4: Memory at 603d000000 (64-bit, non-prefetchable) [size=1M]
Capabilities:
Kernel driver in use: sof-audio-pci
Kernel modules: snd_hda_intel, snd_sof_pci
keyonjie commentedon Mar 5, 2021
Hi @jason77-wang can you upload the full dmesg with the fail case? We have a similar issue reported here: #2775
@kv2019i @plbossart @ranj063 FYI.
@libinyang waiting for your PR to fix one more issue.
jason77-wang commentedon Mar 5, 2021
@keyonjie, since this happens during the power off process, the error logs are not in the dmesg. This issue happens at the last step of power off, the dmesg daemon is already closed at the moment.
keyonjie commentedon Mar 5, 2021
@jason77-wang thanks, so did you observe abnormal failure(e.g. dsp probing failed, sound card creating failed...) before initiating the reboot?
jason77-wang commentedon Mar 5, 2021
@keyonjie no, the syslog could record the dmesg of booting process, we checked the syslog, there is no failure log during booting so far.
libinyang commentedon Mar 5, 2021
@jason77-wang Could you have a try on #2768 ?
jason77-wang commentedon Mar 5, 2021
@libinyang OK, got it. The machine is in the office, we will test #2768 next Monday. Thanks.
jason77-wang commentedon Mar 8, 2021
@libinyang
I applied the patches of #2768 to topic/sof-dev branch, and built a kernel, our QA reported this kernel still hang when executing poweroff/poweron stress test. The test should repeat poweroff/poweron 30 times, and the system got hang at the 28th poweroff.
jason77-wang commentedon Mar 12, 2021
hang-config.txt
Please use this kconfig with topic/sof-dev, it is easier to reproduce this issue.
cooper-chiou commentedon Mar 12, 2021
@jason77-wang Could you share the impacted project names as we need to have discussion internally.
plbossart commentedon Mar 12, 2021
what's different about this?
libinyang commentedon Mar 15, 2021
@jason77-wang There are 2 issues in this bug as I can see from the symptom.
One issue can be fixed by #2768.
Another issue is caused by DMI L1. Please de-select "SOF enable DMI Link L1 " in the menuconfig: Device Drivers ---> Sound card support ---> Advanced Linux Sound Architecture ---> ALSA for SoC audio support ---> SOF enable DMI Link L1
jason77-wang commentedon Mar 15, 2021
@libinyang
Thanks, I will test it.
plbossart commentedon Mar 16, 2021
FWIW we seen issues in reboot loops on WHL and TGL even with the fixes from @libinyang, something's still not quite right
jason77-wang commentedon Mar 17, 2021
After applied the patch of #2768 and disable the DMI L1, the system didn't hang anymore during 90 times poweroff stress test. Let us close this bug temporarily.
thanks.