Skip to content

[BUG][APL] pause-resume tests xrun on UP2 with pcm512x HiFiBerry cards / topology #5257

Closed

Description

@lyakh

Describe the bug
The pcm512x topology hasn't been tested by CI for some time. Having re-added it to daily tests, pause-resume tests showed a regression. It is supposedly related to that topology's non-traditional mixer placement in the pipeline and to recent changes in trigger processing.

To Reproduce

TPLG=/lib/firmware/intel/sof-tplg/sof-apl-pcm512x.tplg MODEL=APL_UP2_PCM512X sof-test/test-case/check-pause-resume.sh -c 100 -m playback
or
TPLG=/lib/firmware/intel/sof-tplg/sof-apl-pcm512x.tplg MODEL=APL_UP2_PCM512X ~/sof-test/test-case/multiple-pause-resume.sh -r 50

Reproduction Rate
Seems easy enough to reproduce. E.g. at the above link it happened on 18th / 19th iteration

Expected behavior
pipelines with embedded forking components like mixers should work too.

Impact
This is also relevant for QuickBuild CI tests

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: sof-dev
    • SOF: main
  2. Name of the topology file
    • Topology: sof-apl-pcm512x.tplg
  3. Name of the platform(s) on which the bug is observed.
    • Platform: UP2

Activity

  1. added
    bugSomething isn't working as expected
    APLApplies to Apollolake platform
    on Jan 25, 2022
  2. changed the title [-][BUG][APL] pause-resume tests failing on UP2 with pcm512x HiFiBerry cards / topology[/-] [+][BUG][APL] pause-resume tests xrun on UP2 with pcm512x HiFiBerry cards / topology[/+] on Jan 28, 2022
  3. XiaoyunWu6666 commented on Jan 28, 2022

    @XiaoyunWu6666
    Contributor

    happened in inner daily 9800
    model APL_UP2_PCM512X
    testcase check-pause-resume-playback-100

    With IO error in console

    [etrace]

    [      395074.619718] (           0.000000) c0 dma-trace              src/drivers/dw/dma.c:1128 ERROR dw_dma_get_data_size(): xrun detected
    [          10.416666] (          10.416666) c0 dma-trace                   src/audio/dai.c:881  ERROR dai_report_xrun(): underrun due to no data available
    [          17.812499] (           7.395833) c0 dma-trace                   src/audio/dai.c:748  ERROR comp_underrun(): dev->comp.id = 8, source->avail = 192, copy_bytes = 0
    [          45.312498] (          27.499998) c0 dma-trace          ....../pipeline-stream.c:134  ERROR pipeline_copy(): ret = -61, start->comp.id = 8, dir = 1
    [          53.072915] (           7.760417) c0 dma-trace          ..../pipeline-schedule.c:183  ERROR pipeline_task(): xrun recovery failed! pipeline is stopped.
    
  4. added
    Intel Linux Daily testsThis issue can be found in internal Linux daily tests
    xrunXRUN is observed and firmware may not recover
    on Jan 28, 2022
  5. lgirdwood commented on Jan 31, 2022

    @lgirdwood
    Member

    @lyakh @XiaoyunWu6666 Does this happen on Zephyr ?

  6. marc-hb commented on Feb 5, 2022

    @marc-hb
    Collaborator

    Still observed with today's daily run 9986. P1 because it's affecting daily test results. If it's actually low severity explain why and I will SKIP these particular tests on this specific configuration until the bug is fixed.

    Kernel Branch: topic/sof-dev
    Kernel Commit: thesofproject/linux@03175849
    SOF Branch: main
    SOF Commit: cf04ada

    EDIT: similar to #4434? Answer from Pierre: no. "PCM512x has a mixer and is based on I2S, Volteer/Brya have a demux and a combination of input/output."

  7. added
    P1Blocker bugs or important features
    and removed
    P3Low-impact bugs or features
    on Feb 5, 2022
  8. added this to the v2.1 milestone on Feb 9, 2022
  9. lyakh commented on Feb 22, 2022

    @lyakh
    CollaboratorAuthor

    fixed by #5374

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 platformIntel Linux Daily testsThis issue can be found in internal Linux daily testsP1Blocker bugs or important featuresbugSomething isn't working as expectedxrunXRUN is observed and firmware may not recover

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions