Skip to content

[BUG][TGL]"Input/output error" occurred when do multiple-pipeline-playback test. #3177

Closed

Description

@Liviali155

Describe the bug
"Input/output error" occurred when do multiple-pipeline-playback test.
after error occured,all the pipeline can work

To Reproduce
1.sudo reboot
2.cd sof-test
3.cd test-case
4.export TPLG=sof-tgl-max98357a-rt5682.tplg
5../multiple-pipeline-playback.sh -c 8 -l 300

Reproduction Rate
Failed at 2th when arecord via headset(0,1)

Expected behavior
No error occured

Impact
"Input/output error when arecord via headset(0,1),"dmesg show error: ipc error for 0x60050000 size 12

Capture

ubuntu@ubuntu-Volteer:~/sof-test/test-case$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: sofrt5682 [sof-rt5682], device 1: Headset (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofrt5682 [sof-rt5682], device 6: EchoRef (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofrt5682 [sof-rt5682], device 99: DMIC48kHz (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofrt5682 [sof-rt5682], device 100: DMIC16k (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
dmesg_error.log
[   85.543221] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[   85.543359] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60050000 size 12
[   85.543881] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[   85.543893] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x340000 successful
[   85.543898]  Headset: ASoC: trigger FE cmd: 0 failed: -22
[   85.543900] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[   85.543914]  Headset: ASoC: hw_free FE Headset
[   85.543918] sof-audio-pci 0000:00:1f.3: pcm: free stream 1 dir 1
[   85.543923] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[   85.544069] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x6003000
sof_error.log
239583) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1537 ERROR dmic_irq_handler(): full fifo A or PDM overrun
[177856006.875000] (        8.072917) c0 dmic-dai     2.1   src/drivers/intel/dmic.c:1533 dmic_irq_handler(), OUTSTAT0 = 536870912
[177856014.531250] (        7.656250) c0 dmic-dai     2.1   src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 2147483648
[177856024.531250] (       10.000000) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1533 dmic_irq_handler(), OUTSTAT0 = 671088640
[177856032.083333] (        7.552083) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 2147483648
[177856039.375000] (        7.291667) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1537 ERROR dmic_irq_handler(): full fifo A or PDM overrun
[177856047.447917] (        8.072917) c0 dmic-dai     2.1   src/drivers/intel/dmic.c:1533 dmic_irq_handler(), OUTSTAT0 = 536870912
[177856055.052083] (        7.604167) c0 dmic-dai     2.1   src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 2147483648
[177856065.052083] (       10.000000) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1533 dmic_irq_handler(), OUTSTAT0 = 671088640
[177856072.395833] (        7.343750) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 2147483648
[177856079.843750] (        7.447917) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1537 ERROR dmic_irq_handler(): full fifo A or PDM overru
Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver). Kernel: Kernel:https://github.com/thesofproject/linux/commits/topic/sof-dev (commit: 1b2f260)

PR#2208 for DP fix
PR#2184 for wov S0i2
+PR#2238 for max98373-sdw jack switch
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 v7.0-rc6,commit: a40b46c
PR#3116 for KWD trigger volume
Name of the topology file
Topology: sof-tgl-max98357a-rt5682.tplg
Name of the platform(s) on which the bug is observed.
Platform: TGL chromebook with codec 98357 in I2S mode

dmesg0707.log
sof-logger_0707.log

Activity

  1. added
    bugSomething isn't working as expected
    TGLApplies to Tiger Lake
    P1Blocker bugs or important features
    on Jul 14, 2020
  2. Liviali155 commented on Jul 14, 2020

    @Liviali155
    Author

    on TGL chromebook with codec 98357 in I2S mode
    issue also can be reproduced in below scenerios

    scenerio 1:
    when do pause/release of speaker playbak&dmic capture
    scenerio 2:
    export TPLG=sof-tgl-max98357a-rt5682.tplg
    ./multiple-pause-resume.sh -r 100 (https://github.com/thesofproject/sof-test/blob/master/test-case/multiple-pause-resume.sh)

  3. Liviali155 commented on Jul 14, 2020

    @Liviali155
    Author

    Issue also can be reproduced on TGL chromebook in SDW mode with codec 98373 when run multipipeline with https://github.com/thesofproject/sof/commits/releases/tgl/v7.0-rc7 ,commit: 33cfa90

    Issue can not be reproduced with FW:https://github.com/thesofproject/sof/tree/tgl-007-drop-stable v7.0-rc6,commit: a40b46c + PR#3116 for KWD trigger volume

    1.sudo reboot
    2.cd sof-test
    3.cd test-case
    4.export TPLG=sof-tgl-sdw-max98373-rt5682.tplg
    5../multiple-pipeline-playback.sh -c 9 -l 300

    Failed at 1th when arecord via dmic (0,4)
    Capture

    sof_error.log
    0 dai          3.17           src/audio/dai.c:736  dai_config() dai type = 4 index = 258
    [145318319.010417] (   596156.125000) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1533 dmic_irq_handler(), OUTSTAT0 = 671088640
    [145318343.906250] (       24.895834) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 2147483648
    [145318367.552083] (       23.645834) c0 dmic-dai     2.0   src/drivers/intel/dmic.c:1537 ERROR dmic_irq_handler(): full fifo A or PDM overrun
    [145318392.864583] (       25.312500) c0 dmic-dai     2.1   src/drivers/intel/dmic.c:1533 dmic_irq_handler(), OUTSTAT0 = 671088640
    [145318417.552083] (       24.687500) c0 dmic-dai     2.1   src/drivers/intel/dmic.c:1534 dmic_irq_handler(), OUTSTAT1 = 2147483648
    [145318441.145833] (       23.593750) c0 dmic-dai     2.1   src/drivers/intel/dmic.c:1537 ERROR dmic_irq_handler(): full fifo A or PDM overrun
    [145318773.958333] (      332.812500) c0 hda-dma            ..../intel/hda/hda-dma.c:790  ERROR hda_dma_link_check_xrun(): underrun detected
    [145319395.520833] (      621.562500) c0 hda-dma            ..../intel/hda/hda-dma.c:790  ERROR hda_dma_link_check_xrun(): underrun detected
    [145319989.843750] (      594.322937) c0 hda-dma            ..../intel/hda/hda-dma.c:790  ERROR hda_dma_link_check_xrun(): underrun detected
    [145320307.447917] (      317.604156) c0 hda-dma            ..../intel/hda/hda-dma.c:790  ERROR hda_dma_link_check_xrun(): underrun detected
    [145320430.104167] (      122.656250) c0 ll-schedule        /schedule/timer_domain.c:35   ERROR 
    
    dmesg_error.log
    Volteer-rt5682-max98373-i2s kernel: [   72.400283] rt5682 sdw:0:25d:5682:0: rt5682_clock_config complete, clk_freq=4800000
    Volteer-rt5682-max98373-i2s kernel: [   72.400824] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x2034001e successful
    Volteer-rt5682-max98373-i2s kernel: [   72.404536] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x24001e successful
    Volteer-rt5682-max98373-i2s kernel: [   73.322150] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x60040000 size 12
    Volteer-rt5682-max98373-i2s kernel: [   73.322153] sof-audio-pci 0000:00:1f.3: info: preventing DSP entering D3 state to preserve context
    Volteer-rt5682-max98373-i2s kernel: [   73.322197] sof-audio-pci 0000:00:1f.3: status: fw entered - code 00000005
    Volteer-rt5682-max98373-i2s kernel: [   73.322945] sof-audio-pci 0000:00:1f.3: error: unexpected fault 0x00000000 trace 0x00004000
    Volteer-rt5682-max98373-i2s kernel: [   73.322995] sof-audio-pci 0000:00:1f.3: error: hda irq intsts 0x00000000 intlctl 0xc0001f8f rirb 00
    Volteer-rt5682-max98373-i2s kernel: [   73.323035] sof-audio-pci 0000:00:1f.3: error: dsp irq ppsts 0x00000000 adspis 0x00000000
    Volteer-rt5682-max98373-i2s kernel: [   73.323040] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003
    Volteer-rt5682-max98373-i2s kernel: [   73.323041] sof-audio-pci 0000:00:1f.3: error: waking up any trace sleepers
    Volteer-rt5682-max98373-i2s kernel: [   73.323088] sof-audio-pci 0000:00:1f.3: error: trace IO error
    Volteer-rt5682-max98373-i2s kernel: [   73.323093]  Headset mic: ASoC: trigger FE cmd: 1 failed: -110
    Volteer-rt5682-max98373-i2s kernel: [   73.826167] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x60050000 size 12
    Volteer-rt5682-max98373-i2s kernel: [   73.826210] sof-audio-pci 0000:00:1f.3: info: preventing DSP entering D3 state to preserve context
    Volteer-rt5682-max98373-i2s kernel: [   73.826213] sof-audio-pci 0000:00:1f.3: status: fw entered - code 00000005
    Volteer-rt5682-max98373-i2s kernel: [   73.826985] sof-audio-pci 0000:00:1f.3: error: unexpected fault 0x00000000 trace 0x00004000
    Volteer-rt5682-max98373-i2s kernel: [   73.827032] sof-audio-pci 0000:00:1f.3: error: hda irq intsts 0x00000000 intlctl 0xc0001f8f rirb 00
    Volteer-rt5682-max98373-i2s kernel: [   73.827033] sof-audio-pci 0000:00:1f.3: error: dsp irq ppsts 0x00000000 adspis 0x00000000
    Volteer-rt5682-max98373-i2s kernel: [   73.827039] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003
    Volteer-rt5682-max98373-i2s kernel: [   73.827040] sof-audio-pci 0000:00:1f.3: error: waking up any trace sleepers
    Volteer-rt5682-max98373-i2s kernel: [   73.827619] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x20340000 successful
    
    

    dmesg.txt
    slogger.txt

  4. Liviali155 commented on Jul 14, 2020

    @Liviali155
    Author

    Error also seen on i2s 5682-max08373

  5. Liviali155 commented on Jul 17, 2020

    @Liviali155
    Author

    Error not seen with https://github.com/thesofproject/sof/commits/releases/tgl/v7.0-rc10 ,commit: fb801c8 +https://github.com/thesofproject/linux/tree/tgl-007-20200716
    on below platforms
    i2s 5682-max08373
    chromebook in SDW mode with codec 98373

    closed it

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

    P1Blocker 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