Skip to content

[BUG] IPC timed out when multiple-pause-resume on APL_UP2_NOCODEC_ZEPHYR  #4492

Closed

Description

@XiaoyunWu6666

Describe the bug
in inner daily 5308 testcase=multiple-pause-resume-25
ipc timed out when multiple-pause-resume on APL_UP2_NOCODEC_ZEPHYR

To Reproduce
TPLG=/lib/firmware/intel/sof-tplg/sof-apl-nocodec.tplg ~/sof-test/test-case/multiple-pause-resume.sh -r 25

Environment
Start Time: 2021-07-15 02:10:50 UTC
End Time: 2021-07-15 04:47:20 UTC
Kernel Branch: topic/sof-dev
Kernel Commit: 9b277b80
SOF Branch: main
SOF Commit: 0fa9f7d

Screenshots or console output
[console]

=== PAUSE ===                                                            
(10/25) pcm'DMIC16kHz' cmd'arecord' id'1': Wait for 179 ms before pause
                                                                           
 
(10/25) pcm'DMIC16kHz' cmd'arecord' id'1': Wait for 182 ms before resume
arecord: pcm_read:2153: read error: Input/output error
                                                                           

########  +                                        | 19% 
#         +                                        | 19%
=== PAUSE ===                                                 

[dmesg]

[ 3748.920998] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[ 3748.924677] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: error: ipc error for 0x60010000 size 20
[ 3748.924697] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: error: hw params ipc failed for stream 3
[ 3748.924703] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:0e.0: -22
[ 3748.924742] kernel:  DMIC16kHz: ASoC: soc_pcm_hw_params() failed (-22)
[ 3748.924760] kernel:  DMIC16kHz: ASoC: dpcm_fe_dai_hw_params failed (-22)

Activity

  1. added
    bugSomething isn't working as expected
    APLApplies to Apollolake platform
    ZephyrIssues only observed with Zephyr integrated
    on Jul 15, 2021
  2. lgirdwood commented on Jul 16, 2021

    @lgirdwood
    Member

    @XiaoyunWu6666 @mengdonglin it looks like these Zephyr related issues from yesterday are all probably related.

  3. kv2019i commented on Aug 24, 2021

    @kv2019i
    Collaborator

    Potential bugfix: #4673

  4. lgirdwood commented on Aug 26, 2021

    @lgirdwood
    Member

    @XiaoyunWu6666 can you test with #4673 when time permits. Thanks !

  5. XiaoyunWu6666 commented on Aug 27, 2021

    @XiaoyunWu6666
    ContributorAuthor

    this did not happen since Aug 25 @lgirdwood @keqiaozhang
    No ipc timed out when multiple-pause-resume on APL_UP2_NOCODEC , no explicit errors in dmesg , only IO error in console .
    (suspecting xrun ,but needs more investigation)

  6. lgirdwood commented on Aug 27, 2021

    @lgirdwood
    Member

    @XiaoyunWu6666 thanks, lets give it a few more days then close. xruns expected atm due to use of uncache memory.

  7. XiaoyunWu6666 commented on Aug 30, 2021

    @XiaoyunWu6666
    ContributorAuthor

    @XiaoyunWu6666 thanks, lets give it a few more days then close. xruns expected atm due to use of uncache memory.

    hi @lgirdwood , in inner daily 6175, ipc timed out happened when multiple-pause-resume again.

    [ 3602.715232] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: ipc tx: 0x60060000: GLB_STREAM_MSG: TRIG_PAUSE
    [ 3602.815078] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: pcm: trigger stream 1 dir 0 cmd 3
    [ 3603.217943] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: ipc tx timed out for 0x60060000 (msg/reply size: 12/12)
    [ 3603.218132] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: preventing DSP entering D3 state to preserve context
    [ 3603.218140] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: ------------[ IPC dump start ]------------
    [ 3603.218155] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: error: hda irq intsts 0x00000000 intlctl 0xc0000083 rirb 00
    [ 3603.218168] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: error: dsp irq ppsts 0x00000000 adspis 0x00000000
    [ 3603.218181] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003
    [ 3603.218193] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: ------------[ IPC dump end ]------------
    [ 3603.218202] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: ------------[ DSP dump start ]------------
    [ 3603.218214] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: status: fw entered - code 00000005
    [ 3603.218268] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: error: unexpected fault 0x00000000 trace 0x00004000
    [ 3603.218279] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: ------------[ DSP dump end ]------------
    [ 3603.218321] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: FW Poll Status: reg[0xa0]=0x20240000 successful
    [ 3603.218334] kernel: sof-audio-pci-intel-apl 0000:00:0e.0: ASoC: error at soc_component_trigger on 0000:00:0e.0: -110
    [ 3603.218350] kernel:  DMIC: ASoC: trigger FE cmd: 3 failed: -110
    
  8. XiaoyunWu6666 commented on Sep 7, 2021

    @XiaoyunWu6666
    ContributorAuthor

    in inner daily 6362 6401
    IPC timed out when multiple-pause-resume on APL_UP2_NOCODEC_ZEPHYR still happened , when TRIG_RELEASE

    errors on TGLH_RVP_NOCODEC_ZEPHYR when multiple-pause-resume looks almost the same as on APL
    both ipc timed out when issueing TRIG_RELEASE
    I managed to reproduce the multiple-pause-release failure on TGLH_RVP_NOCODEC_ZEPHYR and got exception dump below (I use sof-tgl-h elf file generated via xcc build , not sure whether it work for zephyr or not , but I got something)

    INFO: Cannot color the output: module 'sty' not found
    # Core header:
    
    # arch        00000000 # totalsize   00000000 # stackptr    00000000 # stackoffset 00000000
    # configidhi  00000000 # configidlo  00000000 # numaregs    00000000
    
    # CPU registers:
    
    # exccause    00000000 # excvaddr    00000000 # ps          00000000
    # epc1        00000000 # epc2        00000000 # epc3        00000000 # epc4        00000000
    # epc5        00000000 # epc6        00000000 # epc7        00000000
    # eps2        00000000 # eps3        00000000 # eps4        00000000 # eps5        00000000
    # eps6        00000000 # eps7        00000000
    # depc        00000000 # intenable   00000000 # interrupt   00000000 # sar         00000000
    # debugcause  00000000
    # windowbase  00000000 # windowstart 00000000
    # excsave1    00000000
    # ar0         00000000 # ar1         00000000 # ar2         00000000 # ar3         00000000
    # ar4         00000000 # ar5         00000000 # ar6         00000000 # ar7         00000000
    # ar8         00000000 # ar9         00000000 # ar10        00000000 # ar11        00000000
    # ar12        00000000 # ar13        00000000 # ar14        00000000 # ar15        00000000
    # ar16        00000000 # ar17        00000000 # ar18        00000000 # ar19        00000000
    # ar20        00000000 # ar21        00000000 # ar22        00000000 # ar23        00000000
    # ar24        00000000 # ar25        00000000 # ar26        00000000 # ar27        00000000
    # ar28        00000000 # ar29        00000000 # ar30        00000000 # ar31        00000000
    # ar32        00000000 # ar33        00000000 # ar34        00000000 # ar35        00000000
    # ar36        00000000 # ar37        00000000 # ar38        00000000 # ar39        00000000
    # ar40        00000000 # ar41        00000000 # ar42        00000000 # ar43        00000000
    # ar44        00000000 # ar45        00000000 # ar46        00000000 # ar47        00000000
    # ar48        00000000 # ar49        00000000 # ar50        00000000 # ar51        00000000
    # ar52        00000000 # ar53        00000000 # ar54        00000000 # ar55        00000000
    # ar56        00000000 # ar57        00000000 # ar58        00000000 # ar59        00000000
    # ar60        00000000 # ar61        00000000 # ar62        00000000 # ar63        00000000
    
    
    # windowbase: 0
    #
    # windowstart: b0
    
    #      reg         a0         a1
    #                  (return)   (sptr)
    #      ---         --------   -------
    
    # Stack dumped from 00000000 dwords num 406
    
    # *EXCEPTION*
    
    # exccause: IllegalInstructionCause: Illegal instruction
    
    
  9. XiaoyunWu6666 commented on Nov 1, 2021

    @XiaoyunWu6666
    ContributorAuthor

    close #4742 and #4492 , haven't been seen in daily tests for quite long

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 platformZephyrIssues only observed with Zephyr integratedbugSomething 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