Skip to content

[BUG][TGL] "power off/power on" stress test make the system hang randomly #2781

Closed

Description

@jason77-wang

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.

Activity

  1. jason77-wang commented on Mar 5, 2021

    @jason77-wang
    Author

    webwxgetmsgimg
    When power off process hang, we could see the error log from monitor:

  2. jason77-wang commented on Mar 5, 2021

    @jason77-wang
    Author

    webwxgetmsgimg

  3. jason77-wang commented on Mar 5, 2021

    @jason77-wang
    Author

    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

  4. keyonjie commented on Mar 5, 2021

    @keyonjie

    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.

  5. jason77-wang commented on Mar 5, 2021

    @jason77-wang
    Author

    @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.

  6. keyonjie commented on Mar 5, 2021

    @keyonjie

    @jason77-wang thanks, so did you observe abnormal failure(e.g. dsp probing failed, sound card creating failed...) before initiating the reboot?

  7. jason77-wang commented on Mar 5, 2021

    @jason77-wang
    Author

    @keyonjie no, the syslog could record the dmesg of booting process, we checked the syslog, there is no failure log during booting so far.

  8. libinyang commented on Mar 5, 2021

    @libinyang

    @jason77-wang Could you have a try on #2768 ?

  9. jason77-wang commented on Mar 5, 2021

    @jason77-wang
    Author

    @libinyang OK, got it. The machine is in the office, we will test #2768 next Monday. Thanks.

  10. added
    P1Blocker bugs or important features
    on Mar 8, 2021
  11. added
    TGLApplies to Tiger Lake platform
    power on/offIssues observed in system power on/off test (e.g. S5)
    system hangSystem hang is observed.
    on Mar 8, 2021
  12. jason77-wang commented on Mar 8, 2021

    @jason77-wang
    Author

    @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.

  13. jason77-wang commented on Mar 12, 2021

    @jason77-wang
    Author

    hang-config.txt

    Please use this kconfig with topic/sof-dev, it is easier to reproduce this issue.

  14. cooper-chiou commented on Mar 12, 2021

    @cooper-chiou

    @jason77-wang Could you share the impacted project names as we need to have discussion internally.

  15. plbossart commented on Mar 12, 2021

    @plbossart
    Member

    hang-config.txt

    Please use this kconfig with topic/sof-dev, it is easier to reproduce this issue.

    what's different about this?

  16. libinyang commented on Mar 15, 2021

    @libinyang

    @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

  17. jason77-wang commented on Mar 15, 2021

    @jason77-wang
    Author

    @libinyang
    Thanks, I will test it.

  18. plbossart commented on Mar 16, 2021

    @plbossart
    Member

    FWIW we seen issues in reboot loops on WHL and TGL even with the fixes from @libinyang, something's still not quite right

  19. jason77-wang commented on Mar 17, 2021

    @jason77-wang
    Author

    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.

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

Metadata

Metadata

Assignees

Labels

P1Blocker bugs or important featuresTGLApplies to Tiger Lake platformpower on/offIssues observed in system power on/off test (e.g. S5)system hangSystem hang is observed.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions