Skip to content

[BUG][Zephyr] ipc tx error for 0x30100000(PIPE_NEW) on ADLP Zephyr platform #5554

Closed

Description

@keqiaozhang

Describe the bug
We detected this issue in CI when testing multiple-pipeline-all on ADLP_RVP_NOCODEC_ZEPHYR platform.

[ 1339.280533] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x40070000: GLB_PM_MSG: CORE_ENABLE
[ 1339.280770] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx succeeded: 0x40070000: GLB_PM_MSG: CORE_ENABLE
[ 1339.280773] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Core 2 powered up
[ 1339.280778] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x30100000: GLB_TPLG_MSG: PIPE_NEW
[ 1339.281319] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x30100000 (msg/reply size: 48/20): -12
[ 1339.281421] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Failed to setup widget PIPELINE.7.SSP0.OUT
[ 1339.281426] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x40070000: GLB_PM_MSG: CORE_ENABLE
[ 1339.281501] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
[ 1339.281527] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
[ 1339.281678] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx succeeded: 0x40070000: GLB_PM_MSG: CORE_ENABLE
[ 1339.281686] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Core 2 powered down
[ 1339.281687] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Failed to set up connected widgets
[ 1339.281692] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: stream_tag 1

To Reproduce
$ ~/sof-test/test-case/multiple-pipeline.sh -f p -c 20 -l 50

Reproduction Rate
Hard to tell, unable to reproduce this issue manually.

Expected behavior
NO ipc error

Environment
Kernel: sof-dev/d2937505b7b5
SOF : main/51e7c6180141
Zephyr Commit: fc4016a113dc

trace

[   182248316.560186] (         383.750000) c0 ipc                  src/ipc/ipc3/handler.c:1585 INFO ipc: new cmd 0x40070000
[   182248330.883102] (          14.322916) c0 ipc                  src/ipc/ipc3/handler.c:696  INFO ipc: pm core mask 0x1 -> enable
[   182248542.758094] (         211.874985) c0 ipc                  src/ipc/ipc3/handler.c:1585 INFO ipc: new cmd 0x60010000

[   182254155.934954] (        5596.770508) c0 ipc                  src/ipc/ipc3/handler.c:1585 INFO ipc: new cmd 0x30100000
[   182254172.497453] (          16.562500) c0 pipe               ......./pipeline-graph.c:114  INFO pipeline new pipe_id 6 priority 0



[   182254804.997428] (         340.885406) c0 ipc                  src/ipc/ipc3/handler.c:1585 INFO ipc: new cmd 0x60010000

[   184231227.835559] (     1976406.125000) c0 zll-schedule       src/schedule/zephyr_ll.c:142  INFO ll task 0x9e07cb98 agent-work 
[   182143238.022695] (          16.197916) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 46 not found
[   182149768.282852] (          14.999999) c2 pipe               ......./pipeline-graph.c:122  ERROR pipeline_new(): Out of Memory
[   182149892.866180] (         124.583328) c2 ipc                   src/ipc/ipc3/helper.c:343  ERROR ipc_pipeline_new(): pipeline_new() failed
[   182150044.376591] (         151.510406) c2 ipc                  src/ipc/ipc3/handler.c:1325 ERROR ipc: pipe 11 creation failed -12
[   182150792.293228] (          16.302082) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 51 not found
[   182225634.946504] (          15.312499) c1 pipe               ......./pipeline-graph.c:122  ERROR pipeline_new(): Out of Memory
[   182225761.196499] (         126.249992) c1 ipc                   src/ipc/ipc3/helper.c:343  ERROR ipc_pipeline_new(): pipeline_new() failed
[   182225912.811076] (         151.614578) c1 ipc                  src/ipc/ipc3/handler.c:1325 ERROR ipc: pipe 20 creation failed -12
[   182227134.477694] (          16.770832) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 56 not found
[   182232862.862883] (          15.572916) c0 pipe               ......./pipeline-graph.c:122  ERROR pipeline_new(): Out of Memory
[   182232987.550378] (         124.687492) c0 ipc                   src/ipc/ipc3/helper.c:343  ERROR ipc_pipeline_new(): pipeline_new() failed
[   182233138.956622] (         151.406250) c0 ipc                  src/ipc/ipc3/handler.c:1325 ERROR ipc: pipe 21 creation failed -12
[   182233693.748267] (          16.770832) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 64 not found
[   182239965.570934] (          14.843749) c2 pipe               ......./pipeline-graph.c:122  ERROR pipeline_new(): Out of Memory
[   182240090.206346] (         124.635414) c2 ipc                   src/ipc/ipc3/helper.c:343  ERROR ipc_pipeline_new(): pipeline_new() failed
[   182240241.560507] (         151.354156) c2 ipc                  src/ipc/ipc3/handler.c:1325 ERROR ipc: pipe 2 creation failed -12
[   182241046.091725] (          17.031250) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 6 not found
[   182247656.924795] (          14.999999) c3 pipe               ......./pipeline-graph.c:122  ERROR pipeline_new(): Out of Memory
[   182247781.351874] (         124.427078) c3 ipc                   src/ipc/ipc3/helper.c:343  ERROR ipc_pipeline_new(): pipeline_new() failed
[   182247932.810201] (         151.458328) c3 ipc                  src/ipc/ipc3/handler.c:1325 ERROR ipc: pipe 4 creation failed -12
[   182248559.164343] (          16.406250) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 18 not found
[   182254188.018286] (          15.520833) c0 pipe               ......./pipeline-graph.c:122  ERROR pipeline_new(): Out of Memory
[   182254312.497448] (         124.479164) c0 ipc                   src/ipc/ipc3/helper.c:343  ERROR ipc_pipeline_new(): pipeline_new() failed
[   182254464.112025] (         151.614578) c0 ipc                  src/ipc/ipc3/handler.c:1325 ERROR ipc: pipe 6 creation failed -12
[   182254821.664094] (          16.666666) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 30 not found avg 55, max 68
[   184231270.491807] (          42.656250) c0 zll-schedule       ......../zephyr_domain.c:89   INFO ll timer avg 415, max 1024, overruns 0
[   184284233.927202] (       52963.433594) c0 zll-schedule       src/schedule/zephyr_ll.c:142  INFO ll task 0x9e07c430 dma-trace-task <2b972272-c5b1-4b7e-926f-0fc5cb4c4690> avg 29, max 365
[   186226117.183372] (     1941883.250000) c0 ipc                  src/ipc/ipc3/handler.c:1585 INFO ipc: new cmd 0x90040000
[   186226128.745872] (          11.562500) c0 ipc                  src/ipc/ipc3/handler.c:921  INFO ipc: debug cmd 0x40000
[   186226139.214621] (          10.468750) c0 ipc                  src/ipc/ipc3/handler.c:891  INFO ipc: trace_filter_update received, size 2 elems
[   186226156.662537] (          17.447916) c0 ipc                  src/ipc/ipc3/handler.c:908  INFO trace_filter_update for UUID key 0x20780, comp -1.-1 affected 1 components
[   186235890.620484] (        9733.958008) c0 ipc                  src/ipc/ipc3/handler.c:1585 INFO ipc: new cmd 0x90040000
[   186235901.610067] (          10.989583) c0 ipc                  src/ipc/ipc3/handler.c:921  INFO ipc: debug cmd 0x40000
[   186235912.235066] (          10.625000) c0 ipc                  src/ipc/ipc3/handler.c:891  INFO ipc: trace_filter_update received, size 2 elems
[   186235929.630899] (          17.395832) c0 ipc                  src/ipc/ipc3/handler.c:908  INFO trace_filter_update for UUID key 0x20780, comp -1.-1 affected 1 components
[   186320027.856724] (       84098.226562) c0 zll-schedule       src/schedule/zephyr_ll.c:142  INFO ll task 0x9e07cb98 agent-work  avg 55, max 60
[   186320070.408806] (          42.552082) c0 zll-schedule       ......../zephyr_domain.c:89   INFO ll timer avg 414, max 1016, overruns 0

dmesg.txt
logger.txt

TPLG
image

Activity

  1. changed the title [-][BUG] ipc tx error for 0x30100000(PIPE_NEW) on ADLP Zephyr platform[/-] [+][BUG][Zephyr] ipc tx error for 0x30100000(PIPE_NEW) on ADLP Zephyr platform[/+] on Mar 16, 2022
  2. added
    ZephyrIssues only observed with Zephyr integrated
    IPC errorIPC error is observed
    on Mar 16, 2022
  3. keqiaozhang commented on Mar 18, 2022

    @keqiaozhang
    CollaboratorAuthor

    Observed another IPC timed out(PIPE_FREE) in daily test 11164.
    ** dmesg **

    [ 1358.295971] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
    [ 1358.296413] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx succeeded: 0x60030000: GLB_STREAM_MSG: PCM_FREE
    [ 1358.296529] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x30020000: GLB_TPLG_MSG: COMP_FREE
    [ 1358.296732] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx succeeded: 0x30020000: GLB_TPLG_MSG: COMP_FREE
    [ 1358.296736] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x30110000: GLB_TPLG_MSG: PIPE_FREE
    [ 1358.296825] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
    [ 1358.296833] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
    [ 1358.297792] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
    [ 1358.297801] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
    [ 1358.735845] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
    [ 1358.735897] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
    [ 1358.762825] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
    [ 1358.762859] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG: DMA_POSITION
    [ 1358.801589] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx timed out for 0x30110000 (msg/reply size: 12/12)
    [ 1358.801838] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: preventing DSP entering D3 state to preserve context
    [ 1358.801847] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ IPC dump start ]------------
    [ 1358.801869] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: hda irq intsts 0x00000000 intlctl 0xc0000081 rirb 00
    [ 1358.801883] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: dsp irq ppsts 0x00000000 adspis 0x00000000
    [ 1358.801900] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003
    [ 1358.801911] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ IPC dump end ]------------
    [ 1358.801920] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump start ]------------
    [ 1358.801929] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware exception
    [ 1358.801938] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: fw_state: SOF_FW_BOOT_COMPLETE (6)
    [ 1358.801955] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: status: fw entered - code 00000005
    [ 1358.802094] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: unexpected fault 0x00000000 trace 0x00004000
    [ 1358.802108] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump end ]------------
    
  4. lgirdwood commented on Mar 18, 2022

    @lgirdwood
    Member

    @keqiaozhang can you log the IPC timeout as a separate issue.
    @kv2019i are we able to dump the Zephyr stack dump yet from SRAM to Linux dmesg. Is this something for@ujfalusi to check ?

  5. lgirdwood commented on Mar 18, 2022

    @lgirdwood
    Member
    > [   184231227.835559] (     1976406.125000) c0 zll-schedule       src/schedule/zephyr_ll.c:142  INFO ll task 0x9e07cb98 agent-work 
    > [   182143238.022695] (          16.197916) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 46 not found
    > [   182149768.282852] (          14.999999) c2 pipe               ......./pipeline-graph.c:122  ERROR pipeline_new(): Out of Memory
    > [   182149892.866180] (         124.583328) c2 ipc                   src/ipc/ipc3/helper.c:343  ERROR ipc_pipeline_new(): pipeline_new() failed
    > [   182150044.376591] (         151.510406) c2 ipc                  src/ipc/ipc3/handler.c:1325 ERROR ipc: pipe 11 creation failed -12
    > [   182150792.293228] (          16.302082) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 51 not found
    > [   182225634.946504] (          15.312499) c1 pipe               ......./pipeline-graph.c:122  ERROR pipeline_new(): Out of Memory
    > [   182225761.196499] (         126.249992) c1 ipc                   src/ipc/ipc3/helper.c:343  ERROR ipc_pipeline_new(): pipeline_new() failed
    > [   182225912.811076] (         151.614578) c1 ipc                  src/ipc/ipc3/handler.c:1325 ERROR ipc: pipe 20 creation failed -12
    > [   182227134.477694] (          16.770832) c0 ipc                  src/ipc/ipc3/handler.c:205  ERROR ipc: comp 56 not found
    > [   182232862.862883] (          15.572916) c0 pipe               ......./pipeline-graph.c:122  ERROR pipeline_new(): Out of Memory
    

    @keqiaozhang are we using dynamic pipelines without FW reboot ? Could we be leaking memory ?

  6. keqiaozhang commented on Mar 21, 2022

    @keqiaozhang
    CollaboratorAuthor

    @keqiaozhang can you log the IPC timeout as a separate issue.

    ACK, let's track the IPC timeout issue in #5573

  7. keqiaozhang commented on Mar 21, 2022

    @keqiaozhang
    CollaboratorAuthor

    @keqiaozhang are we using dynamic pipelines without FW reboot ? Could we be leaking memory ?

    Yes, we are using the dynamic pipelines, I have attached the tplg graph in bug description.

  8. added this to the v2.2 milestone on Mar 21, 2022
  9. added
    P1Blocker bugs or important features
    on Mar 22, 2022
  10. kv2019i commented on Mar 25, 2022

    @kv2019i
    Collaborator

    It is highly likely that #5588 will fix this as well. It has a clear impact to #5556 when I run experiements with very high amount of test iterations with both with and without the patch.

  11. kv2019i commented on Mar 29, 2022

    @kv2019i
    Collaborator

    No errors in Intel daily plan 11433, so potentially fixed by the fix to #5556.

  12. kv2019i commented on Apr 1, 2022

    @kv2019i
    Collaborator

    @keqiaozhang Can we close. Not seen in Intel daily testing for multiple days.

  13. keqiaozhang commented on Apr 1, 2022

    @keqiaozhang
    CollaboratorAuthor

    @keqiaozhang Can we close. Not seen in Intel daily testing for multiple days.

    Yes, let's close this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ADLApplies to Alder Lake platformIPC errorIPC error is observedP1Blocker bugs or important featuresZephyrIssues only observed with Zephyr integratedbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions