Repository navigation
[BUG][SDW]Shows ipc timed out for 0x30010000 size 76 when run system boot up stress test. #1395
Copy link
Copy link
Closed
Labels
CMLApplies to Comet Lake platformApplies to Comet Lake platformMSIIssues observed only in MSI modeIssues observed only in MSI modeP1Blocker bugs or important featuresBlocker bugs or important featuresSDWApplies to SoundWire bus for codec connectionApplies to SoundWire bus for codec connectionSDW_DEVSDW bug reproduced by developers, fix WIPSDW bug reproduced by developers, fix WIPbugSomething isn't workingSomething isn't working
Description
Describe the bug
Shows ipc timed out for 0x30010000 size 76 when run system reboot stress test. Failed at 22nd time.
To Reproduce
- Run reboot stress test via "./test-reboot.sh 100"
frequency
Run 100 times, failed at 22nd time.
Expected result
System boot up without any error
Actual result
System bootup with ipc timed out for 0x30010000 size 76
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: 661d261 + PR1359
FW: https://github.com/thesofproject/sof/commits/master commit: 0e8cf66
tplg: https://github.com/bardliao/sof/commits/soundwire-tplg (commit: 0408153), sof-cml-rt711-rt1308-rt715.tplg
platform: CML SDW Laptop with ALC711+ ALC1308+ ALC715
dmesg
[ 2.918676] rt715 sdw:3:25d:715:0: [rt715_sdw_write] 4c1d <= 00d0
[ 2.918715] rt715 sdw:3:25d:715:0: [rt715_sdw_write] 4d1d <= 0011
[ 3.424814] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x30010000 size 76
[ 3.424817] sof-audio-pci 0000:00:1f.3: info: preventing DSP entering D3 state to preserve context
[ 3.424821] sof-audio-pci 0000:00:1f.3: status: fw entered - code 00000005
[ 3.425074] sof-audio-pci 0000:00:1f.3: error: unexpected fault 0x00000000 trace 0x00004000
[ 3.425079] sof-audio-pci 0000:00:1f.3: error: hda irq intsts 0x80000000 intlctl 0xc0000001 rirb 00
[ 3.425080] sof-audio-pci 0000:00:1f.3: error: dsp irq ppsts 0x80000000 adspis 0x00000001
[ 3.425083] sof-audio-pci 0000:00:1f.3: error: host status 0x80000000 dsp status 0x00000000 mask 0x00000003
[ 3.425084] sof-audio-pci 0000:00:1f.3: error: waking up any trace sleepers
[ 3.425087] sof-audio-pci 0000:00:1f.3: error: DSP failed to add widget id 0 type 24 name : PCM1C stream Passthrough Capture 1 reply 0
[ 3.425090] sof-audio-pci 0000:00:1f.3: ASoC: failed to load widget PCM1C
[ 3.425095] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
[ 3.425098] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1000f0f successful
[ 3.425100] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask 1
[ 3.425102] sof-audio-pci 0000:00:1f.3: error: tplg component load failed -110
[ 3.425107] sof-audio-pci 0000:00:1f.3: error: failed to load DSP topology -22
[ 3.425108] sof-audio-pci 0000:00:1f.3: ASoC: failed to probe component -22
[ 3.425119] sdw_rt711_rt1308_rt715 sdw_rt711_rt1308_rt715: ASoC: failed to instantiate card -22
[ 3.425133] rt711 sdw:0:25d:711:0: rt711_set_jack_detect hw_init not ready yet
[ 3.425176] sdw_rt711_rt1308_rt715 sdw_rt711_rt1308_rt715: snd_soc_register_card failed -22
[ 3.425181] sdw_rt711_rt1308_rt715: probe of sdw_rt711_rt1308_rt715 failed with error -22
[ 4.930394] rfkill: input handler disabled
[ 4.968778] intel-sdw sdw-master-3: IO transfer timed out
[ 4.968785] rt715 sdw:3:25d:715:0: [rt715_sdw_write] 4e1d <= 00a1
[ 4.968792] intel-sdw sdw-master-0: IO transfer timed out
[ 4.968796] rt711 sdw:0:25d:711:0: [rt711_sdw_write] 7520 85a0 7420 84a0 <= 004a 201b
[ 5.032778] intel-sdw sdw-master-1: SCP Msg trf timed out
[ 7.017775] intel-sdw sdw-master-0: IO transfer timed out
[ 7.017782] intel-sdw sdw-master-3: IO transfer timed out
[ 7.017785] rt715 sdw:3:25d:715:0: [rt715_sdw_write] 4f1d <= 0081
[ 7.080779] intel-sdw sdw-master-1: SCP Msg trf timed out
[ 9.064823] intel-sdw sdw-master-3: IO transfer timed out
[ 9.064831] rt715 sdw:3:25d:715:0: [rt715_sdw_write] 4c29 <= 00d1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CMLApplies to Comet Lake platformApplies to Comet Lake platformMSIIssues observed only in MSI modeIssues observed only in MSI modeP1Blocker bugs or important featuresBlocker bugs or important featuresSDWApplies to SoundWire bus for codec connectionApplies to SoundWire bus for codec connectionSDW_DEVSDW bug reproduced by developers, fix WIPSDW bug reproduced by developers, fix WIPbugSomething isn't workingSomething isn't working
Activity
[-]ipc[/-][+][BUG][SDW]Shows ipc timed out for 0x30010000 size 76 when run system boot up stress test.[/+]plbossart commentedon Oct 30, 2019
@YvonneYang2 can you try with MSI disabled?
YvonneYang2 commentedon Oct 31, 2019
Test it 100 times with MSI disabled, issue cannot be reproduced.
Test recipe:
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: 9f1bd5b + PR1403
FW: https://github.com/thesofproject/sof/commits/master commit: 59c9338
tplg: same path as FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML SDW Laptop with ALC711+ ALC1308+ ALC715
plbossart commentedon Oct 31, 2019
Thanks @YvonneYang2 this helps. @bardliao I think this is an indication we do need to have a single handler for the shared interrupt, we still have 3 (IPC, stream, soundwire).
YvonneYang2 commentedon Nov 1, 2019
@plbossart
Test it 45 times with MSI disabled again on Ubuntu19.04, issue is reproduced once at 20th time. I Will test more times on Ubuntu18.04 next week.
Add options snd_sof_intel_hda_common use_msi=0 in /etc/modprobe.d/alsa-base.conf to disable MSI.
Test recipe:
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: 9f1bd5b + PR1403
FW: https://github.com/thesofproject/sof/commits/master commit: fe321d6
tplg: same path as FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML SDW Laptop with ALC711+ ALC1308+ ALC715
dmesg
dmesg_failed_20.log
YvonneYang2 commentedon Nov 5, 2019
Tested it 53 times with MSI interrupt mode, occurred "error: ipc timed out for 0x90030000 size 80", then occurred "ipc timed out for 0x30010000 size 76". Error dmesg is as below :
MSI interrupt mode error dmesg
logs:
dmesg_failed_53.log
Tested it 300 times with MSI disabled mode, original issue didn't occur. But occurred " platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 ". Failed at 141th and 203th time. Reproduced rate is 2/300. Error dmesg is as below:
MSI disabled error dmesg
logs:
dmesg_failed_141.log
logger_failed_203.log
Test recipe:
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: 9f1bd5b + PR1403
FW: https://github.com/thesofproject/sof/commits/master commit: e5fe2ca
tplg: same path as FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML SDW Laptop with ALC711+ ALC1308+ ALC715
plbossart commentedon Nov 5, 2019
Thanks @YvonneYang2
I think we can assume for now that the MSI mode is still problematic. The issue with MSI disabled has nothing to do with SOF so we can ignore it.
@bardliao can you work with @YvonneYang2 to see if your interrupt rework works better with MSI enabled? Thanks!
YvonneYang2 commentedon Nov 6, 2019
Tested it with latest integration/soundwire-latest + #1412 , issue can still be reproduced.
Tested it 300 times, original issue occurred 4 times.
ipc timed out for 0x30010000 size 84 dmesg log
dmesg_failed_54.log
Beside, occurred 3 times "ipc timed out for 0x30200000 size 36"
ipc timed out for 0x30200000 size 36 dmesg log
dmesg_failed_115.log
Test recipe:
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: 085b4bf + PR1403
FW: https://github.com/thesofproject/sof/commits/master commit: 0b7fd03
tplg: same path as FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML SDW Laptop with ALC711+ ALC1308+ ALC715
YvonneYang2 commentedon Nov 13, 2019
Issue cannot be reproduced in 120 times test-reboot stress test with #1451
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: fb40b85 + PR1451
FW: https://github.com/thesofproject/sof/commits/master commit: 835d876
tplg: same path as FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML SDW Laptop with ALC711+ ALC1308+ ALC715
mengdonglin commentedon Nov 25, 2019
@YvonneYang2 Please verify latest ttps://github.com/thesofproject/linux/tree/integration/soundwire-latest
PR #1451 was replaced by PR #1483, and PR #1483 was merged by integration/soundwire-latest
YvonneYang2 commentedon Nov 25, 2019
Ipc timed out for 0x30010000 issue can still be reproduced after #1483 merged.
Run 100 times, failed at 75th time.
Dmesg
Test recipe:
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: 68cadd8
FW: https://github.com/thesofproject/sof/commits/master commit: 9b5dc8c
tplg: Same with FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML Laptop with ALC711+ ALC1308+ ALC715
dmesg_failed_75.log
bardliao commentedon Nov 25, 2019
@YvonneYang2 Could you retest it with #1543?
YvonneYang2 commentedon Nov 25, 2019
Run reboot stress test 300 times with #1543 in MSI IRQ mode, issue cannot be reproduced.
Test recipe:
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: 68cadd8 + #1543
FW: https://github.com/thesofproject/sof/commits/master commit: d6fe2b1
tplg: Same with FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML Laptop with ALC711+ ALC1308+ ALC715
plbossart commentedon Nov 25, 2019
@bardliao @YvonneYang2 I wonder if in MSI mode we need to avoid disabling interrupts?
@lyakh suggested we don't, and I suggested an update here:
1cce7a3
bardliao commentedon Nov 26, 2019
@plbossart I just tested #1476 with interrupt not disabled, but it didn't work while #1547 works on the same issue
YvonneYang2 commentedon Nov 27, 2019
Tested it 500 times with #1548 , issue cannot be reproduced.
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: a370cb0 + #1548
FW: https://github.com/thesofproject/sof/commits/master commit: db7671a
tplg: Same with FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML Laptop with ALC711+ ALC1308+ ALC715 in SDW mode
YvonneYang2 commentedon Nov 28, 2019
Tested it 500 times after #1538 merged into integration/soundwire-latest , issue cannot be reproduced. Close the bug, track other reboot issue in #1558
Test recipe:
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: d6078f9
FW: https://github.com/thesofproject/sof/commits/master commit: d740a3e
tplg: Same with FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML Laptop with ALC711+ ALC1308+ ALC715 in SDW mode