Skip to content

[BUG] [BYT] WARN pipeline_get_timestamp(): DAI position update failed #5086

Closed

Description

@marc-hb

Describe the bug

https://sof-ci.01.org/sofpr/PR5074/build11349/devicetest/?model=BYT_MB_NOCODEC&testcase=multiple-pipeline-capture has many:

[    21702022.887639] (         469.583313) c0 ipc                  src/ipc/ipc3/handler.c:1576 INFO ipc: new cmd 0x60040000
[    21702037.783472] (          14.895833) c0 mixer        1.1      src/audio/component.c:62   INFO comp_set_state(), state already set to 5
[    21702043.512638] (           5.729167) c0 ll-schedule        ./schedule/ll_schedule.c:451  INFO task add 0xff317900 pipe-task 
[    21702047.470971] (           3.958333) c0 ll-schedule        ./schedule/ll_schedule.c:455  INFO task params pri 0 flags 0 start 0 period 5000
[    21702052.054305] (           4.583333) c0 ll-schedule        /dma_multi_chan_domain.c:126  INFO dma_multi_chan_domain_register()
[    21702058.668888] (           6.614583) c0 ll-schedule        ./schedule/ll_schedule.c:357  INFO new added task->start 3457407097 at 3617586556
[    21702062.679304] (           4.010417) c0 ll-schedule        ./schedule/ll_schedule.c:360  INFO num_tasks 4 total_num_tasks 4
[    21749505.750336] (       47443.070312) c0 pipe         4.25  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    21755464.500099] (        5958.750000) c0 pipe         3.19  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    21775872.988871] (       20408.488281) c0 pipe         2.13  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    21834505.799041] (       58632.808594) c0 pipe         4.25  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    21840464.652971] (        5958.854004) c0 pipe         3.19  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
...
...
[    27728464.419003] (        5959.583008) c0 pipe         3.19  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    27748872.907776] (       20408.488281) c0 pipe         2.13  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    27807504.988779] (       58632.082031) c0 pipe         4.25  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    27813464.467709] (        5959.479004) c0 pipe         3.19  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    27833873.112731] (       20408.644531) c0 pipe         2.13  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    27893504.777028] (       59631.664062) c0 pipe         4.25  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    27899464.255958] (        5959.479004) c0 pipe         3.19  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    27919872.744731] (       20408.488281) c0 pipe         2.13  ....../pipeline-stream.c:495  WARN pipeline_get_timestamp(): DAI position update failed
[    27950203.056025] (       30330.310547) c0 ipc                  src/ipc/ipc3/handler.c:1576 INFO ipc: new cmd 0x60050000
[    27950212.014358] (           8.958333) c0 dw-dma                 src/drivers/dw/dma.c:408  INFO dw_dma_stop(): dma 0 channel 0 stop
[    27950226.753941] (          14.739583) c0 ll-schedule        ./schedule/ll_schedule.c:606  INFO task cancel 0xff317940 pipe-task 
[    27950231.181024] (           4.427083) c0 ll-schedule        /dma_multi_chan_domain.c:216  INFO dma_multi_chan_domain_unregister()
[    27950238.264357] (           7.083333) c0 ll-schedule        ./schedule/ll_schedule.c:387  INFO num_tasks 3 total_num_tasks 3
[    27950322.431021] (          84.166664) c0 ipc                  src/ipc/ipc3/handler.c:1576 INFO ipc: new cmd 0x60030000
[    27950328.108104] (           5.677083) c0 pipe         2.13  ......./pipeline-graph.c:341  INFO pipe reset
[    27950334.462270] (           6.354167) c0 dw-dma                 src/drivers/dw/dma.c:255  INFO dw_dma_channel_put(): dma 1 channel 3 put
[    27950359.670602] (          25.208332) c0 dai          2.12           src/audio/dai.c:671  INFO dai_reset()

To Reproduce

On BYT, run multiple-pipeline-capture test?

Reproduction Rate

Observed only that time.

Expected behavior

No warning.

Impact

No idea sorry.

Environment

From https://sof-ci.01.org/sofpr/PR5074/build11349/devicetest/?model=BYT_MB_NOCODEC&testcase=multiple-pipeline-capture

Linux: 25d4484b ASoC: SOF: sof-audio: removed unused function
SOF: 3e1c160e5053 topology1: fix errors due to newline in list generator

Logarithm PR #5074 seems totally unrelated.

Activity

  1. added
    bugSomething isn't working as expected
    on Dec 14, 2021
  2. marc-hb commented on Dec 14, 2021

    @marc-hb
    CollaboratorAuthor

    From @ujfalusi

    The kernel is not sending SOF_IPC_GLB_STREAM_MSG:SOF_IPC_STREAM_POSITION, so it is not triggered by that.
    The only other place where it is called is in src/audio/host.c host_update_position() if hd->no_stream_position is 0.
    This kernel patch moved the setting out from hda to higher level: 9cce2adefa0084cfe (thesofproject/linux/pull/3303) I don't see anything broken in that commit.

  3. marc-hb commented on Dec 14, 2021

    @marc-hb
    CollaboratorAuthor

    From @lyakh

    The only way that could happen seems to be if pipeline_comp_timestamp() returns 0 after finding an inactive component. And the topology has a mixer in it, so I could suspect the mixer FSM not playing well with my recent changes in this case too. But I also see those warnings on pipeline 2 in the log above, and that pipeline has no mixers in it... Herbert, Marc if you could create an issue and assign it to me I'd appreciate it,

  4. miRoox commented on Dec 17, 2021

    @miRoox

    Seems duplicate #5017?

  5. lyakh commented on Feb 15, 2022

    @lyakh
    Collaborator

    #5017 is closed

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

Metadata

Metadata

Assignees

Labels

BYTApplies to Baytrail platformbugSomething isn't working as expectedduplicateThis issue or pull request already exists

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions