Skip to content

[BUG] WoV cannot trigger with topic/sof-dev(kernel) and master(sof) branch #1775

Closed

Description

@aiChaoSONG

Describe the bug
Wov cannot trigger with topic/sof-dev(kernel) and master(sof) branch

To Reproduce

  1. run arecord -Dhw:0,8 -M -N -r 16000 -c2 -f s24_le -vvv -d 5 wov.wav
  2. make some sound to trigger wov.

Reproduction Rate
100%

Expected behavior
Wov should be triggered and start recording.

Environment

  1. Kernel: topic/sof-dev
  2. SOF: master
  3. Topology: sof-cml-rt5682-max98357a.tplg(cml) / sof-glk-da7219-kwd.tplg(glk)
  4. Platform: CML Chrome/GLK Chrome
  5. OS: Ubuntu 1804

Error Log

  CORE  LEVEL      COMP_ID                TIMESTAMP            DELTA                FILE_NAME	CONTENT
    0      1          MEM         212263651.510417 212263648.000000      src/lib/alloc.c:273 	error: 171 blocks needed for allocation but only 170 blocks are remaining
    0      1          DAI 8.48    212267597.604167      3946.093750      src/audio/dai.c:580 	dai_check_for_xrun() error: overrun due to no data available
    0      1         COMP         212267603.958333         6.354167 of/audio/component.h:758 	comp_overrun() error: dev->comp.id = 48, sink->free = 16, copy_bytes = 0
    0      1         PIPE         212267664.531250        60.572918 src/audio/pipeline.c:799 	pipeline_copy() error: ret = -61, start->comp.id = 48, dir = 0
    0      1         PIPE 8.49    212267671.822917         7.291667 src/audio/pipeline.c:993 	pipeline_task(): xrun recover failed! pipeline will be stopped!
    0      1         COMP         248123558.437500  35855888.000000 rc/audio/component.c:192 	comp_set_state() error: wrong state = 5, COMP_TRIGGER_RESET
    0      1         COMP         248123571.562500        13.125000 rc/audio/component.c:192 	comp_set_state() error: wrong state = 5, COMP_TRIGGER_RESET


Activity

  1. added
    bugSomething isn't working as expected
    CMLApplies to Comet Lake platform
    GLKApplies to Gemini Lake platform
    on Aug 29, 2019
  2. wwittbrx commented on Aug 29, 2019

    @wwittbrx
    Contributor

    Could you attach sof-logger output? I wonder if this is a duplicate of #1772.

    Also I think topic/sof-dev does not have all PR's merged, https://github.com/thesofproject/linux/tree/topic/keyword_detect should work better, not sure though.

  3. added this to the v1.4 milestone on Aug 31, 2019
  4. aiChaoSONG commented on Sep 2, 2019

    @aiChaoSONG
    CollaboratorAuthor

    this issue exists even before the release of cml-007, I think it is not a duplicate of #1772. I think some code of sof or kernel may not be put upstream. @wwittbrx @lgirdwood

  5. keqiaozhang commented on Sep 2, 2019

    @keqiaozhang
    Collaborator

    @mrajwa
    Please make sure all WoV-related code or patches are landed on master, we need to align the status with release branch. Thanks.

  6. mrajwa commented on Sep 2, 2019

    @mrajwa
    Contributor

    @keqiaozhang, @aiChaoSONG, please wait for these two patches #1768 and #1689

  7. aiChaoSONG commented on Sep 3, 2019

    @aiChaoSONG
    CollaboratorAuthor

    On CML Chrome, after applying #1768 and #1689, still cannot trigger due to some errors. @keqiaozhang @mrajwa @wwittbrx

     CORE  LEVEL      COMP_ID                TIMESTAMP            DELTA                FILE_NAME	CONTENT
        0      1          MEM         112292132.343750 112292136.000000      src/lib/alloc.c:273 	error: 171 blocks needed for allocation but only 170 blocks are remaining
        0      1          DAI 8.48    112296571.041667      4438.697754      src/audio/dai.c:580 	dai_check_for_xrun() error: overrun due to no data available
        0      1         COMP         112296577.604167         6.562500 of/audio/component.h:758 	comp_overrun() error: dev->comp.id = 48, sink->free = 16, copy_bytes = 0
        0      1         PIPE         112296638.281250        60.677082 src/audio/pipeline.c:790 	pipeline_copy() error: ret = -61, start->comp.id = 48, dir = 0
        0      1         PIPE 8.49    112296645.781250         7.500000 src/audio/pipeline.c:984 	pipeline_task(): xrun recover failed! pipeline will be stopped!
    
  8. YvonneYang2 commented on Sep 3, 2019

    @YvonneYang2

    @mrajwa ,Wov shows IO error before trigger it on WHL platform with topic/sof-dev(kernel) and master(sof) branch. Issue still can be reproduced after applying #1768 and #1689

    error logger without patch 1768 and 1689

     CORE  LEVEL      COMP_ID                TIMESTAMP            DELTA                FILE_NAME    CONTENT
        0      1          MEM         746878406.458333 746878400.000000      src/lib/alloc.c:273    error: 171 blocks needed for allocation but only 170 blocks are remaining
    

    error log after applying patch 1768 and 1689

     CORE  LEVEL      COMP_ID                TIMESTAMP            DELTA                FILE_NAME	CONTENT
        0      1          MEM         941441840.052083 941441856.000000      src/lib/alloc.c:273 	error: 171 blocks needed for allocation but only 170 blocks are remaining
        0      1          DAI 8.40    941446883.281250      5043.229004      src/audio/dai.c:580 	dai_check_for_xrun() error: overrun due to no data available
        0      1         COMP         941446889.687500         6.406250 of/audio/component.h:758 	comp_overrun() error: dev->comp.id = 40, sink->free = 16, copy_bytes = 0
        0      1         PIPE         941446950.104167        60.416668 src/audio/pipeline.c:790 	pipeline_copy() error: ret = -61, start->comp.id = 40, dir = 0
        0      1         PIPE 8.41    941446957.760417         7.656250 src/audio/pipeline.c:984 	pipeline_task(): xrun recover failed! pipeline will be stopped!
        0      1         COMP         942077383.125000    630425.375000 rc/audio/component.c:192 	comp_set_state() error: wrong state = 5, COMP_TRIGGER_RESET
        0      1         COMP         942077395.729167        12.604167 rc/audio/component.c:192 	comp_set_state() error: wrong state = 5, COMP_TRIGGER_RESET
    

    all logs
    dmesg after applying patch.log
    logger after applying patch.log
    logger.log
    dmesg.log

  9. mrajwa commented on Sep 3, 2019

    @mrajwa
    Contributor

    Have you applied #1768 and #1689 on top of the master branch? The XRUN issue was caused by #1772 and should be fixed now on master branch. I did some testes yesterday and did not see this issue anymore. However I saw IPC timeout error in dmesg...I think this issue is handled by somebody already.

  10. mrajwa commented on Sep 3, 2019

    @mrajwa
    Contributor

    @YvonneYang2, what I/O error are you talking about? All I see is XRUN?

  11. aiChaoSONG commented on Sep 3, 2019

    @aiChaoSONG
    CollaboratorAuthor

    PR #1773 fix #1772, and #1773 is merged, but we still see xrun with master branch. btw, we are using daily version of kernel and sof. io error is a message of arecord, i guess it it because of wov inability of sof. @mrajwa

  12. YvonneYang2 commented on Sep 3, 2019

    @YvonneYang2

    @YvonneYang2, what I/O error are you talking about? All I see is XRUN?

    I/O error is showed in console when do arecord
    Capture

  13. keqiaozhang commented on Sep 3, 2019

    @keqiaozhang
    Collaborator

    @YvonneYang2
    I/O error is caused by the missing "-M -N" options, please retest it. Thanks!

  14. YvonneYang2 commented on Sep 3, 2019

    @YvonneYang2

    Retest it with right command " arecord -Dhw:0,8 -r 16000 -c2 -f s16_le -vvv -i 1.wav -M -N
    ", I/O error is gone. But still can reproduce the original issue with #1768 and #1689 .

    error logger

     CORE  LEVEL      COMP_ID                TIMESTAMP            DELTA                FILE_NAME	CONTENT
        0      1          MEM          23079106.562500  23079106.000000      src/lib/alloc.c:273 	error: 171 blocks needed for allocation but only 170 blocks are remaining
        0      1          DAI 8.40     23082850.364583      3743.802002      src/audio/dai.c:580 	dai_check_for_xrun() error: overrun due to no data available
        0      1         COMP          23082856.770833         6.406250 of/audio/component.h:758 	comp_overrun() error: dev->comp.id = 40, sink->free = 16, copy_bytes = 0
        0      1         PIPE          23082917.239583        60.468750 src/audio/pipeline.c:790 	pipeline_copy() error: ret = -61, start->comp.id = 40, dir = 0
        0      1         PIPE 8.41     23082924.791667         7.552083 src/audio/pipeline.c:984 	pipeline_task(): xrun recover failed! pipeline will be stopped!
        0      1         COMP          30841417.708333   7758493.000000 rc/audio/component.c:192 	comp_set_state() error: wrong state = 5, COMP_TRIGGER_RESET
        0      1         COMP          30841430.208333        12.500000 rc/audio/component.c:192 	comp_set_state() error: wrong state = 5, COMP_TRIGGER_RESET
    

    all logs
    dmesg.log
    error_logger.log
    logger.log

  15. wwittbrx commented on Sep 3, 2019

    @wwittbrx
    Contributor

    Please check the following recipe:

    FW 90873c5 + #1689 + #1740 + #1768
    Kernel f95e4eb + PR1037

    I have checked this recipe today on my CML platform and it works for me with no issues.
    As far as I know this is the only working recipe based on master branches. Please make sure you include all FW PRs and one kernel PR.

    The test command I use for testing is
    sudo arecord -M -N -D hw:0,8 -f s24_le -c 2 -r 16000 -d 10 record_kd.wav

  16. YvonneYang2 commented on Sep 4, 2019

    @YvonneYang2

    Test it with recipe as below, issue cannot reproduce on WHL platform.

    FW: master branch 90873c5 + #1689 + #1740 + #1768
    Kernel: topic/sof-dev branch f95e4eb + thesofproject/linux#1037

  17. wwittbrx commented on Sep 4, 2019

    @wwittbrx
    Contributor

    Ok, we are on the same page then. Lets wait for PRs to be merged to their respective master branches, retest and then close this issue.

  18. wenqingfu commented on Sep 25, 2019

    @wenqingfu

    All PRs above has been merged. Can this issue be closed now? @keyonjie @mrajwa

  19. aiChaoSONG commented on Sep 25, 2019

    @aiChaoSONG
    CollaboratorAuthor

    @wenqingfu We will run tests on several platforms today, if everything is fine, then this issue can be closed.

  20. YvonneYang2 commented on Sep 25, 2019

    @YvonneYang2

    Issue cannot reproduce on whl-i2s and CML Chrome platforms. Close the bug.

    Test recipe:
    Firmware: d42c019 https://github.com/thesofproject/sof/commits/master
    Kernel: c0f21e6 https://github.com/thesofproject/linux/commits/topic/sof-dev

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

Metadata

Metadata

Assignees

Labels

CMLApplies to Comet Lake platformGLKApplies to Gemini Lake platformKeyword DetectionApplies to Keyword DetectionWHLApplies to WhiskeyLake platformbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions