Repository navigation
[BUG][TGL] WOV can not be triggered after suspend/resume #3115
Description
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
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: {sof-dev(38849516)}
- SOF: {Master(461f7d5)}
- Name of the topology file
- Topology: {rename sof-hda-generic-4ch-kwd.tplg to sof-hda-generic-4ch.tplg}
- 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
···
Activity
Liviali155 commentedon Jul 1, 2020
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
kern0701.log
sof-logger0701.log
After applied #3116 issue still can be reproduced
keyonjie commentedon Jul 1, 2020
Thanks @Liviali155
@mrajwa FYI.
Liviali155 commentedon Jul 3, 2020
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
kern.log
sof-logger0703.log
Liviali155 commentedon Jul 8, 2020
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
Liviali155 commentedon Jul 9, 2020
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
ClarexZhou commentedon Jul 10, 2020
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.
[-][BUG][TGL][HDA] WOV can not be triggered after suspend/resume[/-][+][BUG][TGL] WOV can not be triggered after suspend/resume[/+]ClarexZhou commentedon Jul 10, 2020
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