Skip to content

[BUG][GLK][Capture] Overrun during pause-release #1578

Closed
thesofproject/linux
#1070

Description

@ranj063

Describe the bug
System shows I/O error when pause arecord then resume. Similar behaviour with all arecord devices. Looks like a pipeline overrun when the user releases pause.

To Reproduce

  1. Arecord via "arecord -Dhw:0,1 -r48000 -c2 -fs16_le 1.wav -vv -i"
    2.Pause arecord
    3.Resume asrecord

Reproduction Rate
100% on GLK Ubuntu
On BYT it happens after a few iterations of pause/release

Expected behavior
Resume playback after pause-release

Impact
showstopper

Environment
Firmware: c0c858c https://github.com/thesofproject/sof/commits/master
Kernel: a50a20a https://github.com/thesofproject/linux/commits/topic/sof-dev
Topology: file: tools/topology/sof-glk-da7219.tplg same as firmware
platform: GLK

Screenshots or console output
please refer to thesofproject/linux#1022

Activity

  1. added
    bugSomething isn't working as expected
    BYTApplies to Baytrail platform
    GLKApplies to Gemini Lake platform
    P1Blocker bugs or important features
    on Jun 18, 2019
  2. ranj063 commented on Jun 20, 2019

    @ranj063
    CollaboratorAuthor

    @tlauda FYI. what I notice is that on GLK, the first dai_copy() after release ends up in a overrun because dd->dma_buffer->free is always 0. Could you please take a look?

  3. ranj063 commented on Jun 20, 2019

    @ranj063
    CollaboratorAuthor

    @michalgrodzicki could you please assign someone to take a into this?

  4. mrajwa commented on Jun 20, 2019

    @mrajwa
    Contributor

    @ranj063 looks like we are facing the same issue on in KWD although conditions are a bit different. Have you spotted commit which causes it?

  5. ranj063 commented on Jun 20, 2019

    @ranj063
    CollaboratorAuthor

    @mrajwa no I am not sure when this feature ever worked on GLK. I'll try to find out today.

  6. keyonjie commented on Jun 21, 2019

    @keyonjie
    Contributor

    @mrajwa @ranj063 I think you hit 2 kinds of xrun here, they are both because of copy_bytes == 0:
    copy_bytes = MIN(avail_bytes, dd->dma_buffer->free),
    but @ranj063's case is dd->dma_buffer->free == 0 after pause/release, and @mrajwa's case is avail_bytes from dw-dma driver is 0.

    For the former case, we can check how it handled the pausing(e.g. does the last pipeline_copy() is finished before paused? if the dai_copy() is done but the downstream copying(e.g. volume_copy()) is not run, then the dd->dma_buffer may be full).

    For the latter case, looks like the logic for chan->ptr_data.current_ptr for capture(without preload) stream is problematic, but let's wait for the author @tlauda's confirm.

  7. ranj063 commented on Jun 21, 2019

    @ranj063
    CollaboratorAuthor

    @mrajwa no I am not sure when this feature ever worked on GLK. I'll try to find out today.

    @mrajwa I've gone back as far as a month and I still can reproduce this issue.

  8. YvonneYang2 commented on Jun 24, 2019

    @YvonneYang2

    Issue reproduced when stop via "ctrl + z" , then resume via command "fg".

    Test recipe:
    Firmware: 767a81b-2 https://github.com/thesofproject/sof/tree/master
    Kernel: 0087d4a-2 https://github.com/thesofproject/linux/commits/topic/sof-dev
    Topology: file: sof-glk-da7219.tplg same as firmware
    platform :GLK

    console

    Max peak (4080 samples): 0x01da6ba9 #                    1%
    Max peak (4080 samples): 0x011ca6ff #                    0%
    Max peak (4080 samples): 0x017b8954 #                    1%
    ^Z
    [1]+  Stopped                 arecord -Dhw:0,1 -f S32_LE -r 48000 -c 2 -i test.wav -vvv -i
    test@test-Bobba:~$ fg
    arecord -Dhw:0,1 -f S32_LE -r 48000 -c 2 -i test.wav -vvv -i
    Max peak (816 samples): 0x011ca6ff #                    0%
    overrun!!! (at least 986.694 ms long)
    Status:
      state       : XRUN
      trigger_time: 4317.159813239
      tstamp      : 0.000000
      delay       : 0
      avail       : 10224
      avail_max   : 10224
    arecord: pcm_read:2103: read error: Input/output error
    

    xrun_error_dmesg.log
    xrun_error_logger.log

  9. tlauda commented on Jun 24, 2019

    @tlauda
    Contributor

    @ranj063 Could you share FW logs? What is the sequence from kernel perspective on pause/release? What stream bits are you setting?

    @YvonneYang2 In your logs I see that you are doing stop/start instead of pause/release. It looks like there is some kind of host pointer mismatch after such sequence.
    Edit: However in dmesg I see pause/release. Are you sure that dmesg and logger logs are from the same scenario?

  10. ranj063 commented on Jun 24, 2019

    @ranj063
    CollaboratorAuthor
  11. tlauda commented on Jun 24, 2019

    @tlauda
    Contributor

    @ranj063 Logs in thesofproject/linux#1022 are from the older version of FW without couple of crucial fixes. I need logs from the current master as I cannot reproduce the issue with slim driver.

  12. 46 remaining items

  13. tlauda commented on Aug 8, 2019

    @tlauda
    Contributor

    @mengdonglin @YvonneYang2 Fixed on BYT with #1715. GLK debug still in progress.

  14. Jiangxinx commented on Aug 9, 2019

    @Jiangxinx
    Contributor

    Can not be reproduced with #1715 on BYT platform.

  15. mengdonglin commented on Aug 10, 2019

    @mengdonglin
    Collaborator

    @tlauda thank you! Please notify us when your new #1722 is merged.

  16. Jiangxinx commented on Aug 21, 2019

    @Jiangxinx
    Contributor

    Can not be reproduced with #1722 on BYT rt5682 platform.

  17. added this to the v1.4 milestone on Aug 21, 2019
  18. YvonneYang2 commented on Aug 26, 2019

    @YvonneYang2

    Can still reproduce the bug on glk platform with #1722

  19. dengyangchao commented on Aug 26, 2019

    @dengyangchao

    issue can reproduce on CFL

    Reproduce rate
    1/113

    Test recipe
    Firmware: 66da4e8 https://github.com/thesofproject/sof/commits/master
    Kernel: 2a22b94 https://github.com/thesofproject/linux/commits/topic/sof-dev
    Topology: file: tools/topology/sof-hda-generic-4ch.tplg same as firmware
    platform:CFL

  20. removed
    BYTApplies to Baytrail platform
    WHLApplies to WhiskeyLake platform
    on Aug 26, 2019
  21. changed the title [-][BUG] Overrun during pause-release[/-] [+][BUG][GLK] Overrun during pause-release[/+] on Aug 26, 2019
  22. tlauda commented on Aug 26, 2019

    @tlauda
    Contributor

    Issue for cAVS 1.8 created here: #1760.

  23. YvonneYang2 commented on Aug 27, 2019

    @YvonneYang2

    Issue can be reproduced with steps as below on GLK platform as #1677 (comment) said, but tried to apply thesofproject/linux#1070 , issue is gone.

    To reproduce

    1. arecord -Dhw:0,1 -r48000 -c2 -fs16_le 1.wav -vv -i
    2. aplay -Dhw:0,1 -r48000 -c2 -fs16_le /dev/zero -vv -i
    3. pause-release arecord
    4. use "ctrl+c" to stop aplay
    5. arecord shows i/o error
  24. Jiangxinx commented on Aug 29, 2019

    @Jiangxinx
    Contributor

    This issue still can be reproduced on byt nocodec platform today, but the reproduction rate is very low (about 1/20), also have not observed obvious error trace from dmesg and sof-logger .
    output

    ubuntu@cd-byt-mb-nocodec-04:~$ arecord -Dhw:0,0 -fs16_LE -c2 -r 48000 1.wav -vv -i
    Recording WAVE '1.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
    Hardware PCM card 0 'sof-nocodec' device 0 subdevice 0
    Its setup is:
      stream       : CAPTURE
      access       : RW_INTERLEAVED
      format       : S16_LE
      subformat    : STD
      channels     : 2
      rate         : 48000
      exact rate   : 48000 (48000/1)
      msbits       : 16
      buffer_size  : 16320
      period_size  : 4080
      period_time  : 85000
      tstamp_mode  : NONE
      tstamp_type  : MONOTONIC
      period_step  : 1
      avail_min    : 4080
      period_event : 0
      start_threshold  : 1
      stop_threshold   : 16320
      silence_threshold: 0
      silence_size : 0
      boundary     : 9187343239835811840
      appl_ptr     : 0
      hw_ptr       : 0
                    arecord: pcm_read:2103: read error: Input/output error
    

    dmesg

    [ 1915.942429] sof-audio-acpi 80860F28:01: pcm: open stream 0 dir 1
    [ 1915.942436] sof-audio-acpi 80860F28:01: period min 192 max 16384 bytes
    [ 1915.942440] sof-audio-acpi 80860F28:01: period count 2 max 4
    [ 1915.942443] sof-audio-acpi 80860F28:01: buffer max 65536 bytes
    [ 1915.946577] sof-audio-acpi 80860F28:01: rate_min: 48000 rate_max: 48000
    [ 1915.946592] sof-audio-acpi 80860F28:01: channels_min: 2 channels_max: 2
    [ 1915.946618] sof-audio-acpi 80860F28:01: rate_min: 48000 rate_max: 48000
    [ 1915.946682] sof-audio-acpi 80860F28:01: channels_min: 2 channels_max: 2
    [ 1915.947283] sof-audio-acpi 80860F28:01: rate_min: 48000 rate_max: 48000
    [ 1915.947295] sof-audio-acpi 80860F28:01: channels_min: 2 channels_max: 2
    [ 1915.947317] sof-audio-acpi 80860F28:01: pcm: hw params stream 0 dir 1
    [ 1915.947333] sof-audio-acpi 80860F28:01: generating page table for 00000000f8be8924 size 0xff00 pages 16
    [ 1915.947345] sof-audio-acpi 80860F28:01: stream_tag 0
    [ 1915.947365] sof-audio-acpi 80860F28:01: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
    [ 1915.948215] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
    [ 1915.948232] sof-audio-acpi 80860F28:01: pcm: stream dir 1, posn mailbox offset is 1329664
    [ 1915.957589] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 1
    [ 1915.957600] sof-audio-acpi 80860F28:01: ipc tx: 0x60040000: GLB_STREAM_MSG: TRIG_START
    [ 1915.957891] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60040000: GLB_STREAM_MSG: TRIG_START
    [ 1916.043272] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.043310] sof-audio-acpi 80860F28:01: posn : host 0x3fc0 dai 0x7f80 wall 0x18eb0b
    [ 1916.043339] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.043387] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 4080 DAI position 8160
    [ 1916.045961] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 4080 DAI position 8160
    [ 1916.128214] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.128248] sof-audio-acpi 80860F28:01: posn : host 0x7f80 dai 0xff00 wall 0x31d20c
    [ 1916.128278] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.128327] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 8160 DAI position 16320
    [ 1916.130911] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 8160 DAI position 16320
    [ 1916.213237] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.213273] sof-audio-acpi 80860F28:01: posn : host 0xbf40 dai 0x17e80 wall 0x4ab90b
    [ 1916.213301] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.213350] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 12240 DAI position 24480
    [ 1916.215828] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 12240 DAI position 24480
    [ 1916.298313] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.298353] sof-audio-acpi 80860F28:01: posn : host 0x0 dai 0x1fe00 wall 0x63a00c
    [ 1916.298383] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.298431] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 0 DAI position 32640
    [ 1916.300893] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 0 DAI position 32640
    [ 1916.357596] sof-audio-acpi 80860F28:01: ipc rx: 0x90020000: GLB_TRACE_MSG
    [ 1916.357618] sof-audio-acpi 80860F28:01: ipc rx done: 0x90020000: GLB_TRACE_MSG
    [ 1916.383270] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.383305] sof-audio-acpi 80860F28:01: posn : host 0x3fc0 dai 0x27d80 wall 0x7c870b
    [ 1916.383333] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.383382] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 4080 DAI position 40800
    [ 1916.385882] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 4080 DAI position 40800
    [ 1916.468297] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.468330] sof-audio-acpi 80860F28:01: posn : host 0x7f80 dai 0x2fd00 wall 0x956e0c
    [ 1916.468351] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.468387] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 8160 DAI position 48960
    [ 1916.470898] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 8160 DAI position 48960
    [ 1916.553362] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.553396] sof-audio-acpi 80860F28:01: posn : host 0xbf40 dai 0x37c80 wall 0xae550b
    [ 1916.553426] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.553474] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 12240 DAI position 57120
    [ 1916.556036] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 12240 DAI position 57120
    [ 1916.638342] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.638376] sof-audio-acpi 80860F28:01: posn : host 0x0 dai 0x3fc00 wall 0xc73c0c
    [ 1916.638405] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.638453] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 0 DAI position 65280
    [ 1916.640995] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 0 DAI position 65280
    [ 1916.723388] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.723420] sof-audio-acpi 80860F28:01: posn : host 0x3fc0 dai 0x47b80 wall 0xe0230b
    [ 1916.723446] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1916.723483] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 4080 DAI position 73440
    [ 1916.726407] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 4080 DAI position 73440
    [ 1916.726428] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 3
    [ 1916.726446] sof-audio-acpi 80860F28:01: ipc tx: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
    [ 1916.726572] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
    [ 1916.857732] sof-audio-acpi 80860F28:01: ipc rx: 0x90020000: GLB_TRACE_MSG
    [ 1916.857754] sof-audio-acpi 80860F28:01: ipc rx done: 0x90020000: GLB_TRACE_MSG
    [ 1917.153536] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 4
    [ 1917.153546] sof-audio-acpi 80860F28:01: ipc tx: 0x60070000: GLB_STREAM_MSG: TRIG_RELEASE
    [ 1917.154249] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60070000: GLB_STREAM_MSG: TRIG_RELEASE
    [ 1917.154481] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 4080 DAI position 73440
    [ 1917.235389] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1917.235423] sof-audio-acpi 80860F28:01: posn : host 0x7f80 dai 0x4fb00 wall 0x17d1cf
    [ 1917.235453] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1917.235502] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 8160 DAI position 81600
    [ 1917.238181] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 8160 DAI position 81600
    [ 1917.238203] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 3
    [ 1917.238221] sof-audio-acpi 80860F28:01: ipc tx: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
    [ 1917.238362] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
    [ 1917.245307] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 4
    [ 1917.245326] sof-audio-acpi 80860F28:01: ipc tx: 0x60070000: GLB_STREAM_MSG: TRIG_RELEASE
    [ 1917.245469] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60070000: GLB_STREAM_MSG: TRIG_RELEASE
    [ 1917.245929] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 8160 DAI position 81600
    [ 1917.327489] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1917.327522] sof-audio-acpi 80860F28:01: posn : host 0xbf40 dai 0x57a80 wall 0x17e48d
    [ 1917.327546] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1917.327587] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 12240 DAI position 89760
    [ 1917.330609] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 12240 DAI position 89760
    [ 1917.330678] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 3
    [ 1917.331243] sof-audio-acpi 80860F28:01: ipc tx: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
    [ 1917.331357] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
    [ 1917.337422] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 4
    [ 1917.337443] sof-audio-acpi 80860F28:01: ipc tx: 0x60070000: GLB_STREAM_MSG: TRIG_RELEASE
    [ 1917.338229] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60070000: GLB_STREAM_MSG: TRIG_RELEASE
    [ 1917.339204] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 12240 DAI position 89760
    [ 1917.357850] sof-audio-acpi 80860F28:01: ipc rx: 0x90020000: GLB_TRACE_MSG
    [ 1917.357864] sof-audio-acpi 80860F28:01: ipc rx done: 0x90020000: GLB_TRACE_MSG
    [ 1917.418556] sof-audio-acpi 80860F28:01: ipc rx: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1917.418589] sof-audio-acpi 80860F28:01: posn : host 0x0 dai 0x5fa00 wall 0x17998e
    [ 1917.418619] sof-audio-acpi 80860F28:01: ipc rx done: 0x600a000c: GLB_STREAM_MSG: POSITION
    [ 1917.418728] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 0 DAI position 97920
    [ 1917.421458] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 0 DAI position 97920
    [ 1917.421480] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 3
    [ 1917.421498] sof-audio-acpi 80860F28:01: ipc tx: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
    [ 1917.422266] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
    [ 1917.428519] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 4
    [ 1917.428541] sof-audio-acpi 80860F28:01: ipc tx: 0x60070000: GLB_STREAM_MSG: TRIG_RELEASE
    [ 1917.429197] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60070000: GLB_STREAM_MSG: TRIG_RELEASE
    [ 1917.429501] sof-audio-acpi 80860F28:01: PCM: stream 0 dir 1 DMA position 0 DAI position 97920
    [ 1917.857958] sof-audio-acpi 80860F28:01: ipc rx: 0x90020000: GLB_TRACE_MSG
    [ 1917.857977] sof-audio-acpi 80860F28:01: ipc rx done: 0x90020000: GLB_TRACE_MSG
    [ 1917.933816] sof-audio-acpi 80860F28:01: pcm: trigger stream 0 dir 1 cmd 0
    [ 1917.933832] sof-audio-acpi 80860F28:01: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
    [ 1917.934354] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
    [ 1917.934365] sof-audio-acpi 80860F28:01: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
    [ 1917.934500] sof-audio-acpi 80860F28:01: ipc tx succeeded: 0x60030000: GLB_STREAM_MSG: PCM_FREE
    [ 1917.934732] sof-audio-acpi 80860F28:01: pcm: close stream 0 dir 1
    [ 1918.358096] sof-audio-acpi 80860F28:01: ipc rx: 0x90020000: GLB_TRACE_MSG
    [ 1918.358118] sof-audio-acpi 80860F28:01: ipc rx done: 0x90020000: GLB_TRACE_MSG
    

    sof-logger

        0      2       VOLUME         1898631943.541667         2.760417 udio/volume/volume.c:531 	volume_trigger()
        0      2          DAI 2.16    1898631946.302083         2.760417      src/audio/dai.c:483 	dai_comp_trigger(), command = 2
        0      2          DAI 2.16    1898631948.593750         2.291667      src/audio/dai.c:547 	dai_comp_trigger(), PAUSE/STOP
        0      2          DMA         1898631950.677083         2.083333 src/drivers/dw/dma.c:465 	dw_dma_stop(): dma 1 channel 2 stop
        0      2          SSP         1898631953.645833         2.968750 intel/baytrail/ssp.c:572 	ssp_trigger()
        0      2          SSP         1898631957.864583         4.218750 intel/baytrail/ssp.c:545 	ssp_stop(), RX stop
        0      2          SSP         1898631960.416667         2.552083 intel/baytrail/ssp.c:562 	ssp_stop(), SSP port disabled
        0      2          IPC         1898638143.437500      6183.020996    src/ipc/handler.c:452 	ipc: comp 12 -> trigger cmd 0x70000
        0      2         PIPE 2.17    1898638146.406250         2.968750 src/audio/pipeline.c:622 	pipeline_trigger()
        0      2         HOST 2.12    1898638148.697917         2.291667     src/audio/host.c:323 	host_trigger()
        0      2       VOLUME         1898638151.458333         2.760417 udio/volume/volume.c:531 	volume_trigger()
        0      2          DAI 2.16    1898638154.218750         2.760417      src/audio/dai.c:483 	dai_comp_trigger(), command = 3
        0      2          DMA         1898638160.677083         6.458333 src/drivers/dw/dma.c:383 	dw_dma_release(): dma 1 channel 2 release
        0      2          SSP         1898638163.541667         2.864583 intel/baytrail/ssp.c:572 	ssp_trigger()
        0      2          SSP         1898638166.302083         2.760417 intel/baytrail/ssp.c:521 	ssp_start()
        0      2          IPC         1898722176.718750     84010.414062    src/ipc/handler.c:452 	ipc: comp 12 -> trigger cmd 0x60000
        0      2         PIPE 2.17    1898722179.635417         2.916667 src/audio/pipeline.c:622 	pipeline_trigger()
        0      2         HOST 2.12    1898722181.979167         2.343750     src/audio/host.c:323 	host_trigger()
        0      2       VOLUME         1898722184.739583         2.760417 udio/volume/volume.c:531 	volume_trigger()
        0      2          DAI 2.16    1898722187.447917         2.708333      src/audio/dai.c:483 	dai_comp_trigger(), command = 2
        0      2          DAI 2.16    1898722189.739583         2.291667      src/audio/dai.c:547 	dai_comp_trigger(), PAUSE/STOP
        0      2          DMA         1898722191.822917         2.083333 src/drivers/dw/dma.c:465 	dw_dma_stop(): dma 1 channel 2 stop
        0      2          SSP         1898722194.843750         3.020833 intel/baytrail/ssp.c:572 	ssp_trigger()
        0      2          SSP         1898722199.322917         4.479167 intel/baytrail/ssp.c:545 	ssp_stop(), RX stop
        0      2          SSP         1898722201.875000         2.552083 intel/baytrail/ssp.c:562 	ssp_stop(), SSP port disabled
        0      2          IPC         1898729218.020833      7016.145996    src/ipc/handler.c:452 	ipc: comp 12 -> trigger cmd 0x70000
        0      2         PIPE 2.17    1898729220.937500         2.916667 src/audio/pipeline.c:622 	pipeline_trigger()
        0      2         HOST 2.12    1898729223.281250         2.343750     src/audio/host.c:323 	host_trigger()
        0      2       VOLUME         1898729226.041667         2.760417 udio/volume/volume.c:531 	volume_trigger()
        0      2          DAI 2.16    1898729228.802083         2.760417      src/audio/dai.c:483 	dai_comp_trigger(), command = 3
        0      2          DMA         1898729235.260417         6.458333 src/drivers/dw/dma.c:383 	dw_dma_release(): dma 1 channel 2 release
        0      2          SSP         1898729238.177083         2.916667 intel/baytrail/ssp.c:572 	ssp_trigger()
        0      2          SSP         1898729240.833333         2.656250 intel/baytrail/ssp.c:521 	ssp_start()
        0      2          IPC         1899234385.677083    505144.843750    src/ipc/handler.c:452 	ipc: comp 12 -> trigger cmd 0x50000
        0      2         PIPE 2.17    1899234388.645833         2.968750 src/audio/pipeline.c:622 	pipeline_trigger()
        0      2         HOST 2.12    1899234390.989583         2.343750     src/audio/host.c:323 	host_trigger()
        0      2       VOLUME         1899234393.750000         2.760417 udio/volume/volume.c:531 	volume_trigger()
        0      2          DAI 2.16    1899234396.458333         2.708333      src/audio/dai.c:483 	dai_comp_trigger(), command = 0
        0      2          DAI 2.16    1899234398.802083         2.343750      src/audio/dai.c:547 	dai_comp_trigger(), PAUSE/STOP
        0      2          DMA         1899234400.833333         2.031250 src/drivers/dw/dma.c:465 	dw_dma_stop(): dma 1 channel 2 stop
        0      2          SSP         1899234403.854167         3.020833 intel/baytrail/ssp.c:572 	ssp_trigger()
        0      2          SSP         1899234406.979167         3.125000 intel/baytrail/ssp.c:545 	ssp_stop(), RX stop
        0      2          SSP         1899234409.583333         2.604167 intel/baytrail/ssp.c:562 	ssp_stop(), SSP port disabled
        0      2          IPC         1899234921.666667       512.083313    src/ipc/handler.c:341 	ipc: comp 12 -> free
        0      2         PIPE 2.17    1899234924.583333         2.916667 src/audio/pipeline.c:701 	pipeline_reset()
        0      2         HOST 2.12    1899234926.822917         2.239583     src/audio/host.c:750 	host_reset()
        0      2          DMA         1899234928.958333         2.135417 src/drivers/dw/dma.c:269 	dw_dma_channel_put(): dma 0 channel 0 put
        0      2       VOLUME         1899234938.229167         9.270833 udio/volume/volume.c:675 	volume_reset()
        0      2          DAI 2.16    1899234940.885417         2.656250      src/audio/dai.c:461 	dai_reset()
    

    Test recipe
    Firmware: 7791303 https://github.com/thesofproject/sof/commits/master
    Kernel: f95e4eb https://github.com/thesofproject/linux/commits/topic/sof-dev
    Topology: sof-byt-nocodec.tplg
    platform:BYT

  25. changed the title [-][BUG][GLK] Overrun during pause-release[/-] [+][BUG][GLK][Capture] Overrun during pause-release[/+] on Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GLKApplies to Gemini Lake platformP1Blocker bugs or important featuresbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions