Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [SDW] ipc error for multiple-pause-resume.sh test #2658

Closed
bardliao opened this issue Dec 24, 2020 · 1 comment
Closed

[BUG] [SDW] ipc error for multiple-pause-resume.sh test #2658

bardliao opened this issue Dec 24, 2020 · 1 comment
Labels
SDW Applies to SoundWire bus for codec connection

Comments

@bardliao
Copy link
Collaborator

We will see ipc error if we run multiple-pause-resume.sh test on TGL chromebook

dmesg:

[   70.860201] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
[   70.860359] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60060000 size 12
[   70.860367] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x20240000 successful
[   70.860371] sof-audio-pci 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_trigger on 0000:00:1f.3: -22
[   70.860374]  echo: ASoC: trigger FE cmd: 3 failed: -22

sof-logger:

         TIMESTAMP              DELTA C# COMPONENT          LOCATION                      CONTENT
[134320219.479167] (134320224.000000) c0 dma-trace             src/trace/dma-trace.c:339  ERROR FW ABI 0x3012001 DBG ABI 0x5002001 tag v1.5-rc1-964-g8d277b5b159e src hash 0x1b918673 (ldc hash 0x1b918673)
[140514764.739583] (  6194545.500000) c0 dw-dma                 src/drivers/dw/dma.c:1101 ERROR dw_dma_get_data_size(): xrun detected
[140514783.125000] (       18.385416) c0 dai          4.23           src/audio/dai.c:788  ERROR dai_report_xrun(): overrun due to no space available
[140514799.895833] (       16.770834) c0 dai          4.23           src/audio/dai.c:685  ERROR comp_overrun(): sink->free = 304, copy_bytes = 0
[140514890.625000] (       90.729164) c0 pipe         4.24      src/audio/pipeline.c:1029 ERROR pipeline_copy(): ret = -61, start->comp.id = 23, dir = 0
[140514912.447917] (       21.822916) c0 pipe         4.24      src/audio/pipeline.c:1219 ERROR pipeline_task(): xrun recover failed! pipeline will be stopped!
[140534744.166667] (    19831.718750) c0 dw-dma                 src/drivers/dw/dma.c:1101 ERROR dw_dma_get_data_size(): xrun detected
[140534763.385417] (       19.218750) c0 dai          3.17           src/audio/dai.c:785  ERROR dai_report_xrun(): underrun due to no data available
[140534780.833333] (       17.447916) c0 dai          3.17           src/audio/dai.c:667  ERROR comp_underrun(): dev->comp.id = 17, source->avail = 0, copy_bytes = 0
[140534898.177083] (      117.343750) c0 pipe         3.18      src/audio/pipeline.c:1029 ERROR pipeline_copy(): ret = -61, start->comp.id = 17, dir = 1
[140534920.052083] (       21.875000) c0 pipe         3.18      src/audio/pipeline.c:1219 ERROR pipeline_task(): xrun recover failed! pipeline will be stopped!
[141707405.625000] (  1172485.625000) c0 dai          4.23     src/audio/component.c:223  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_PAUSE
[141707425.572917] (       19.947916) c0 pipe         4.24      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 19, cmd = 2
[141707447.812500] (       22.239584) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 19 trigger 0x60000 failed -22
[141708902.500000] (     1454.687500) c0 dai          4.23     src/audio/component.c:199  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_RELEASE
[141708922.604167] (       20.104166) c0 pipe         4.24      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 19, cmd = 3
[141708942.812500] (       20.208334) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 19 trigger 0x70000 failed -22
[141709537.708333] (      594.895813) c0 dai          4.23     src/audio/component.c:223  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_PAUSE
[141709557.656250] (       19.947916) c0 pipe         4.24      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 19, cmd = 2
[141709579.375000] (       21.718750) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 19 trigger 0x60000 failed -22
[141710896.093750] (     1316.718750) c0 dai          4.23     src/audio/component.c:199  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_RELEASE
[141710915.989583] (       19.895834) c0 pipe         4.24      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 19, cmd = 3
[141710936.718750] (       20.729166) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 19 trigger 0x70000 failed -22
[141731866.250000] (    20929.531250) c0 host         3.12     src/audio/component.c:223  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_PAUSE
[141731885.052083] (       18.802084) c0 pipe         3.18      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 12, cmd = 2
[141731904.895833] (       19.843750) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 12 trigger 0x60000 failed -22
[141734006.979167] (     2102.083252) c0 host         3.12     src/audio/component.c:199  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_RELEASE
[141734025.677083] (       18.697916) c0 pipe         3.18      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 12, cmd = 3
[141734045.833333] (       20.156250) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 12 trigger 0x70000 failed -22
[141734284.270833] (      238.437500) c0 host         3.12     src/audio/component.c:223  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_PAUSE
[141734302.812500] (       18.541666) c0 pipe         3.18      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 12, cmd = 2
[141734322.864583] (       20.052084) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 12 trigger 0x60000 failed -22
[141735951.458333] (     1628.593750) c0 host         3.12     src/audio/component.c:199  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_RELEASE
[141735970.156250] (       18.697916) c0 pipe         3.18      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 12, cmd = 3
[141735990.260417] (       20.104166) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 12 trigger 0x70000 failed -22
[142923046.510417] (  1187056.250000) c0 dai          4.23     src/audio/component.c:223  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_PAUSE
[142923066.458333] (       19.947916) c0 pipe         4.24      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 19, cmd = 2
[142923087.187500] (       20.729166) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 19 trigger 0x60000 failed -22
[142924462.083333] (     1374.895874) c0 dai          4.23     src/audio/component.c:199  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_RELEASE
[142924482.187500] (       20.104166) c0 pipe         4.24      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 19, cmd = 3
[142924502.291667] (       20.104166) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 19 trigger 0x70000 failed -22
[142924850.677083] (      348.385406) c0 dai          4.23     src/audio/component.c:223  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_PAUSE
[142924870.885417] (       20.208334) c0 pipe         4.24      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 19, cmd = 2
[142924892.604167] (       21.718750) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 19 trigger 0x60000 failed -22
[142926284.947917] (     1392.343750) c0 dai          4.23     src/audio/component.c:199  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_RELEASE
[142926305.208333] (       20.260416) c0 pipe         4.24      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 19, cmd = 3
[142926325.572917] (       20.364584) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 19 trigger 0x70000 failed -22
[142939160.468750] (    12834.895508) c0 host         3.12     src/audio/component.c:223  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_PAUSE
[142939179.166667] (       18.697916) c0 pipe         3.18      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 12, cmd = 2
[142939199.062500] (       19.895834) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 12 trigger 0x60000 failed -22
[142940534.739583] (     1335.677124) c0 host         3.12     src/audio/component.c:199  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_RELEASE
[142940553.281250] (       18.541666) c0 pipe         3.18      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 12, cmd = 3
[142940573.489583] (       20.208334) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 12 trigger 0x70000 failed -22
[142940874.218750] (      300.729156) c0 host         3.12     src/audio/component.c:223  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_PAUSE
[142940892.708333] (       18.489584) c0 pipe         3.18      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 12, cmd = 2
[142940912.916667] (       20.208334) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 12 trigger 0x60000 failed -22
[142942281.406250] (     1368.489624) c0 host         3.12     src/audio/component.c:199  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_RELEASE
[142942300.416667] (       19.010416) c0 pipe         3.18      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 12, cmd = 3
[142942320.312500] (       19.895834) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 12 trigger 0x70000 failed -22
[143938740.729167] (   996420.437500) c0 dai          4.23     src/audio/component.c:209  ERROR comp_set_state(): wrong state = 1, COMP_TRIGGER_STOP
[143938760.677083] (       19.947916) c0 pipe         4.24      src/audio/pipeline.c:884  ERROR pipeline_trigger(): ret = -22, host->comp.id = 19, cmd = 0
[143938782.552083] (       21.875000) c0 ipc                       src/ipc/handler.c:443  ERROR ipc: comp 19 trigger 0x50000 failed -22

dmesg.txt

The issue is bisect to 2dbd71d
I don't see the issue if I revert 2dbd71d

@bardliao bardliao added the SDW Applies to SoundWire bus for codec connection label Dec 24, 2020
@bardliao
Copy link
Collaborator Author

This is duplicated to thesofproject/sof#3673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SDW Applies to SoundWire bus for codec connection
Projects
None yet
Development

No branches or pull requests

1 participant