Skip to content

[BUG][APL][PCM512X] Xrun detected when do mutil-playback stress test #2482

Closed

Description

@dengyangchao

Describe the bug
Xrun detected when do mutil-playback stress test.

To Reproduce

  1. Reboot system via "sudo reboot"
  2. Cd /sof-test/test-case
  3. Execute command "export TPLG=/lib/firmware/intel/sof-tplg/sof-apl-pcm512x.tplg
  4. Run stress test via command " ./multiple-pipeline-playback.sh -l 2000"

Reproduction Rate
1/519
Tried to run 2000 times and fail at 519th

Expected behavior
Mutil-playback stress test normal, and no error occur

Impact
Xrun detected and test fail

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  2. Name of the topology file
    • Topology: sof-apl-pcm512x.tplg
  3. Name of the platform(s) on which the bug is observed.
    • Platform: APL-UP2 with codec PCM512X in I2S mode

Screenshots or console output
Screenshot from 2020-03-03 04-55-07

No dmesg error

sof-logger-etrace

  CORE  LEVEL      COMP_ID                TIMESTAMP            DELTA                FILE_NAME	CONTENT
    0      1          DMA         5500324119.739584              nan intel/cavs/hda-dma.c:789 	hda_dma_link_check_xrun() error: xrun detected
    0      1         COMP 2.14    5500324123.854167         4.114583      src/audio/dai.c:639 	dai_report_xrun() error: underrun due to no data available
    0      1         COMP 2.14    5500324127.291667         3.437500      src/audio/dai.c:902 	comp_underrun() error: dev->comp.id = 14, source->avail = 32, copy_bytes = 0
    0      1         PIPE         5500324169.166667        41.875000 src/audio/pipeline.c:789 	pipeline_copy() error: ret = -61, start->comp.id = 14, dir = 1
    0      1         PIPE 2.15    5500324172.916667         3.750000 src/audio/pipeline.c:961 	pipeline_task(): xrun recover failed! pipeline will be stopped!

dmesg.txt
etrace.txt
slogger.txt

add test scripts here:
sof-test-master.zip

Activity

  1. added
    bugSomething isn't working as expected
    APLApplies to Apollolake platform
    P1Blocker bugs or important features
    on Mar 4, 2020
  2. lgirdwood commented on Mar 4, 2020

    @lgirdwood
    Member

    @dengyangchao can you confirm the number of active streams that are being tested here. I can see four from the screenshot.

  3. dengyangchao commented on Mar 5, 2020

    @dengyangchao
    Author

    @lgirdwood Yes, the script use four streams for mutil-playback test, HW:0,0 HW:0,1 HW:0,2 and HW:0,3

  4. tlauda commented on Mar 10, 2020

    @tlauda
    Contributor

    @dengyangchao Please verify with #2512.

  5. dengyangchao commented on Mar 11, 2020

    @dengyangchao
    Author

    @tlauda Tried with #2512 , run 2000 times and issue can't reproduce

  6. tlauda commented on Mar 11, 2020

    @tlauda
    Contributor

    Fixed with #2512.

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

Metadata

Metadata

Assignees

Labels

APLApplies to Apollolake platformP1Blocker bugs or important featuresbugSomething 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