Skip to content

[BUG][TGL] WOV can not be triggered after suspend/resume #3115

Closed

Description

@Liviali155

Describe the bug
WOV can not be triggered after suspend/resume

To Reproduce
1."sudo reboot" to reboot system
2.arecord -Dhw:0,7 -M -N -f s16_le -r 16000 -i -vvv -c2 --buffer-size=68000 ./tmp.wav
3.open another terminal to run "sudo rtcwake -m mem -s 10"
4.After wake up clap hands or make some noise to trigger wov

Reproduction Rate
10/10

Expected behavior
Wov can be triggered successfully

Impact
WOV can not be triggered after suspend/resume
Capture1

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: {sof-dev(38849516)}
    • SOF: {Master(461f7d5)}
  2. Name of the topology file
    • Topology: {rename sof-hda-generic-4ch-kwd.tplg to sof-hda-generic-4ch.tplg}
  3. Name of the platform(s) on which the bug is observed.
    • Platform: {TGL-U RVP with onboard codec ALC711 in HDA mode}

···
dmic-dai 2.0 src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 671088640
[714536840.364583] ( 6.927083) c0 dmic-dai 2.0 src/drivers/intel/dmic.c:1542 ERROR dmic_irq_handler(): full fifo B or PDM overrun
[714536848.437500] ( 8.072917) c0 dmic-dai 2.1 src/drivers/intel/dmic.c:1533 dmic_irq_handler(), OUTSTAT0 = 2147483648
[714536855.729167] ( 7.291667) c0 dmic-dai 2.1 src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 536870912
[714536949.427083] ( 93.697914) c0 dmic-dai 2.0 src/drivers/intel/dmic.c:1533 dmic_irq_handler(), OUTSTAT0 = 2147483648
[714536956.927083] ( 7.500000) c0 dmic-dai 2.0 src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 671088640
[714536963.854167] ( 6.927083) c0 dmic-dai 2.0 src/drivers/intel/dmic.c:1542 ERROR dmic_irq_handler(): full fifo B or PDM overrun
[714536971.927083] ( 8.072917) c0 dmic-dai 2.1 src/drivers/intel/dmic.c:1533 dmic_irq_handler(), OUTSTAT0 = 2147483648
[714536979.218750] ( 7.291667) c0 dmic-dai 2.1 src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 536870912
···

dmesg0630.log

sof-logger-0630.zip

Activity

  1. added
    bugSomething isn't working as expected
    TGLApplies to Tiger Lake
    P2Critical bugs or normal features
    on Jun 30, 2020
  2. Liviali155 commented on Jul 1, 2020

    @Liviali155
    Author

    Issue also can be reproduced when use "echo freeze > /sys/power/state" to suspend with Kernel: {sof-dev(38849516)}+
    SOF: {Master(461f7d5)}

    1."sudo reboot" to reboot system
    2.arecord -Dhw:0,7 -M -N -f s16_le -r 16000 -i -vvv -c2 --buffer-size=68000 ./tmp.wav
    3.open another terminal to run "sudo su" then "echo freeze > /sys/power/state" to suspend
    4. clap hands or make some noise to trigger wov

    WOV can not be triggered,at the same time if press keyboard to wake up device,ipc error occured in dmesg

    dmesg_error.log
    :29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.158548] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.158851] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.158853] sof-audio-pci 0000:00:1f.3: error: pcm params failed for DETECT12.0
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.158854] sof-audio-pci 0000:00:1f.3: error: failed to set pcm params for widget DETECT12.0
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.158855] sof-audio-pci 0000:00:1f.3: ASoC: PRE_PMU: DETECT12.0 event failed: -22
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.158857] sof-audio-pci 0000:00:1f.3: received event 2 for widget DETECT12.0
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.248807] OOM killer enabled.
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.248809] Restarting tasks ... 
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.250681] sof-audio-pci 0000:00:1f.3: pcm: prepare stream 7 dir 1
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.250684] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 7 dir 1
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.250689] sof-audio-pci 0000:00:1f.3: generating page table for 000000006e668646 size 0x426c0 pages 67
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.250709] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.250727] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.250730] sof-audio-pci 0000:00:1f.3: period_bytes:0x10980
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.250731] sof-audio-pci 0000:00:1f.3: periods:4
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.250746] sof-audio-pci 0000:00:1f.3: stream_tag 2
    Jul  1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [   74.250758] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: 
    
    

    kern0701.log
    sof-logger0701.log

    After applied #3116 issue still can be reproduced

  3. keyonjie commented on Jul 1, 2020

    @keyonjie
    Contributor

    Thanks @Liviali155

    @mrajwa FYI.

  4. Liviali155 commented on Jul 3, 2020

    @Liviali155
    Author

    On TGL chrome laptop I2S with codec 98357 also has this issue when use "echo freeze > /sys/power/state" to suspend with
    Kernel:
    Kernel:https://github.com/thesofproject/linux/commits/topic/sof-dev (commit: 1b2f260)
    + PR # thesofproject/linux#2208 for DP fix
    + PR thesofproject/linux#2184 for wov S0i2
    + PR # thesofproject/linux#2238
    + codec hack commit to verify this captured data.
    + revert regression on USB-C 6a7c533 for volteer
    + revert d4b41f8bb
    + revert regression on PINCTRL cd0a323 for volteer
    SOF:https://github.com/thesofproject/sof/tree/tgl-007-drop-stable commit: 1dd07a8+PR #3116

    dmesg_error.log
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.157582] sof_rt5682 tgl_max98357a_rt5682: ASoC: resume work completed
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.158138] sof-audio-pci 0000:00:1f.3: received event 1 for widget DETECT12.0
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.158152] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.158464] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.158467] sof-audio-pci 0000:00:1f.3: error: pcm params failed for DETECT12.0
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.158469] sof-audio-pci 0000:00:1f.3: error: failed to set pcm params for widget DETECT12.0
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.158470] sof-audio-pci 0000:00:1f.3: ASoC: PRE_PMU: DETECT12.0 event failed: -22
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.158472] sof-audio-pci 0000:00:1f.3: received event 2 for widget DETECT12.0
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.159688]  DMIC16k: ASoC: prepare FE DMIC16k
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.159691]  dmic16k: ASoC: prepare BE dmic16k
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.159717] sof-audio-pci 0000:00:1f.3: pcm: prepare stream 100 dir 1
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.159718] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 100 dir 1
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.159720] sof-audio-pci 0000:00:1f.3: generating page table for 00000000ca5b6aae size 0x426c0 pages 67
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.159726] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.159741] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    Jun 24 00:48:41 ubuntu-Volteer kernel: [  172.159743] sof-audio-pci 0000:00:1f.3: period_bytes:0x10980
    

    kern.log
    sof-logger0703.log

  5. Liviali155 commented on Jul 8, 2020

    @Liviali155
    Author

    Error also can be reproduced with https://github.com/thesofproject/sof/commits/releases/tgl/v7.0-rc7 ,commit: 33cfa90 on TGL-U RVP with onboard codec ALC711 in HDA mode and TGL chrome laptop I2S with codec 98357

  6. Liviali155 commented on Jul 9, 2020

    @Liviali155
    Author

    Error still can be reproduced with https://github.com/thesofproject/sof/tree/releases/tgl/v7.0-rc8 ,commit: 2057409 on TGL chrome laptop I2S with codec 98357

  7. ClarexZhou commented on Jul 10, 2020

    @ClarexZhou

    Error also seen with https://github.com/thesofproject/sof/tree/releases/tgl/v7.0-rc9 ,commit: be6c347.
    Verified on 5682-max98357a on chrome OS, error also can be reproduced (frequency: 3/5) and frequcey :2/5 system will hang and can't wake up after enter s0ix.

  8. changed the title [-][BUG][TGL][HDA] WOV can not be triggered after suspend/resume[/-] [+][BUG][TGL] WOV can not be triggered after suspend/resume[/+] on Jul 10, 2020
  9. added
    P1Blocker bugs or important features
    and removed
    P2Critical bugs or normal features
    on Jul 10, 2020
  10. ClarexZhou commented on Jul 10, 2020

    @ClarexZhou

    This issue is caused by alsa lib too old when building sof. Error seen when build tplg with libasound2 verison 1.1.0. Error not seen when build tplg with libasound2 1.1.3-5ubuntu0.2. Close

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

    Keyword DetectionApplies to Keyword DetectionP1Blocker bugs or important featuresTGLApplies to Tiger LakebugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions