Skip to content

[CFL][HDA] "load fw failed ret: -110" after arecord several times. #969

Closed

Description

@stevyan

Summary
'IPC timed out for 0x60010000: GLB_STREAM_MSG: PCM_PARAMS' after attempt to arecord around 10 times.

To reproduce

  1. arecord -Dhw:0,0 -f dat /dev/null
  2. interrupt capture via 'ctrl + c'
  3. repeat 1-2 near than 10 times

Actual Result
aplay: set_params:1363: Unable to install hw params:
Playback/Capture cannot be recovered when error occurred until reboot device.

Test Recipe
date: 2019-05-22
sof (master): 3e423f4
linux (topic/sof-dev): e3ec7cf
topology: sof-hda-generic.tplg

dmesg log

[  101.505674] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
[  101.506529] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
[  101.506541] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf010e0e successful
[  101.506551] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 successful
[  101.506649] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
[  104.507030] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x5000001 timedout
[  104.507043] sof-audio-pci 0000:00:1f.3: error: load fw failed ret: -110
[  104.507073] sof-audio-pci 0000:00:1f.3: unknown ROM status value 05000001
[  104.507081] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
[  104.507088] sof-audio-pci 0000:00:1f.3: unknown ROM status value 05000001
[  104.507093] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
[  104.507097] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware after resume -110
[  104.507117] sof-audio-pci 0000:00:1f.3: pcm: open stream 0 dir 1
[  104.507121] sof-audio-pci 0000:00:1f.3: period min 192 max 16384 bytes
[  104.507124] sof-audio-pci 0000:00:1f.3: period count 2 max 16
[  104.507126] sof-audio-pci 0000:00:1f.3: buffer max 65536 bytes
[  104.507517] sof-audio-pci 0000:00:1f.3: format_val=49, rate=48000, ch=2, format=10
[  104.507530] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 0 dir 1
[  104.507535] sof-audio-pci 0000:00:1f.3: generating page table for 000000000ab2be2b size 0xffc0 pages 16
[  104.507571] sof-audio-pci 0000:00:1f.3: period_bytes:0x3fc0
[  104.507573] sof-audio-pci 0000:00:1f.3: periods:4
[  104.507598] sof-audio-pci 0000:00:1f.3: stream_tag 1
[  104.507610] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[  104.809219] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x60010000 size 108
[  104.809229] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
[  104.809234] sof-audio-pci 0000:00:1f.3: error: status = 0x001c003c panic = 0x00000001
[  104.809237] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
[  104.809244] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00040000 mask 0x00000000
[  104.809245] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 1
[  104.809247] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -110
[  104.809250]  HDA Analog: ASoC: hw_params FE failed -110
[  104.809265] sof-audio-pci 0000:00:1f.3: pcm: free stream 0 dir 1
[  104.809267] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[  105.113061] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x60030000 size 12
[  105.113078] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
[  105.113088] sof-audio-pci 0000:00:1f.3: error: status = 0x001c003c panic = 0x00000001
[  105.113096] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
[  105.113106] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00040000 mask 0x00000000
[  105.113438] sof-audio-pci 0000:00:1f.3: pcm: close stream 0 dir 1

arecord_failed-dmesg.txt
arecord_failed-slogger.txt

Activity

  1. added
    bugSomething isn't working
    HDAApplies to HD-Audio bus for codec connection
    CFLApplies to Coffee Lake platform
    on May 22, 2019
  2. ClarexZhou commented on May 22, 2019

    @ClarexZhou

    Error occurred on CML during aplay -d 1 stress tests, error occurred after 148 times.
    Environment
    Firmware: 5fa2426 https://github.com/thesofproject/sof/tree/master
    Kernel: b58f448 https://github.com/thesofproject/linux/tree/release/sof-v5.0
    Topology: file: tools/topology/sof-hda-generic.tplg, sof-hda-generic-2ch.tplg same as firmware
    Kconfig: https://sof-ci-storage.sh.intel.com/daily/20190521/release/linux/topic/sof-dev/901cd2a5-2/config-daily-hda-20190521.txt

    [ 3063.802152] sof-audio-pci 0000:00:1f.3: pcm: open stream 0 dir 0
    [ 3063.802159] sof-audio-pci 0000:00:1f.3: period min 192 max 16384 bytes
    [ 3063.802163] sof-audio-pci 0000:00:1f.3: period count 2 max 16
    [ 3063.802166] sof-audio-pci 0000:00:1f.3: buffer max 65536 bytes
    [ 3063.802771] sof-audio-pci 0000:00:1f.3: format_val=49, rate=48000, ch=2, format=10
    [ 3063.802785] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 0 dir 0
    [ 3063.802792] sof-audio-pci 0000:00:1f.3: generating page table for 0000000079596cf6 size 0xffc0 pages 16
    [ 3063.802825] sof-audio-pci 0000:00:1f.3: period_bytes:0x3fc0
    [ 3063.802828] sof-audio-pci 0000:00:1f.3: periods:4
    [ 3063.802861] sof-audio-pci 0000:00:1f.3: stream_tag 1
    [ 3063.802878] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
    [ 3064.104665] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x60010000 size 108
    [ 3064.104695] sof-audio-pci 0000:00:1f.3: status: fw entered - code 00000005
    [ 3064.105039] sof-audio-pci 0000:00:1f.3: error: unexpected fault 0x00000000 trace 0x00004000
    [ 3064.105066] sof-audio-pci 0000:00:1f.3: error: host status 0x80000000 dsp status 0x90020000 mask 0x00000003
    [ 3064.105073] sof-audio-pci 0000:00:1f.3: error: waking up any trace sleepers
    [ 3064.105081] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 1
    [ 3064.105091] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -110
    [ 3064.105102]  HDA Analog: ASoC: hw_params FE failed -110
    [ 3064.105147] sof-audio-pci 0000:00:1f.3: pcm: free stream 0 dir 0
    [ 3064.105157] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
    [ 3064.408683] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x60030000 size 12
    [ 3064.408710] sof-audio-pci 0000:00:1f.3: status: fw entered - code 00000005
    [ 3064.408956] sof-audio-pci 0000:00:1f.3: error: unexpected fault 0x00000000 trace 0x00004000
    [ 3064.408967] sof-audio-pci 0000:00:1f.3: error: host status 0x80000000 dsp status 0x90020000 mask 0x00000003
    [ 3064.408971] sof-audio-pci 0000:00:1f.3: error: waking up any trace sleepers
    [ 3064.409317] sof-audio-pci 0000:00:1f.3: pcm: close stream 0 dir 0
    [ 3066.656843] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
    [ 3066.656898] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
    [ 3066.656956] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
    [ 3066.657008] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
    [ 3066.691772] sof-audio-p
    

    aplay_timedout_dmesg.log
    aplay_timedout_logger.log

  3. keyonjie commented on May 27, 2019

    @keyonjie

    @ClarexZhou @stevyan can you try if @ranj063's PR #977 help to fix this issue? I ran aplay -d 1 stress test with that applied on my cml, i passed 1000 iterations.

  4. stevyan commented on May 28, 2019

    @stevyan
    Author

    This error still can be reproduced after 12 times tries based on CFL RVP HDA.

    Test Recipe
    date: 2019-05-28
    sof (master): 63cb86f1
    linux (topic/sof-dev): PR#977
    topology: sof-hda-generic.tplg

    dmesg log

    [  126.675831] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [  126.675836] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf010e0e successful
    [  126.675852] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 successful
    [  126.675867] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
    [  129.675926] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x5000001 timedout
    [  129.675937] sof-audio-pci 0000:00:1f.3: error: load fw failed ret: -110
    [  129.675958] sof-audio-pci 0000:00:1f.3: unknown ROM status value 05000001
    [  129.675963] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
    [  129.675968] sof-audio-pci 0000:00:1f.3: unknown ROM status value 05000001
    [  129.675971] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
    [  129.675974] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware after resume -110
    [  129.675987] sof-audio-pci 0000:00:1f.3: pcm: open stream 0 dir 1
    [  129.675989] sof-audio-pci 0000:00:1f.3: period min 192 max 16384 bytes
    [  129.675991] sof-audio-pci 0000:00:1f.3: period count 2 max 16
    [  129.675992] sof-audio-pci 0000:00:1f.3: buffer max 65536 bytes
    [  129.676247] sof-audio-pci 0000:00:1f.3: format_val=49, rate=48000, ch=2, format=10
    [  129.676251] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 0 dir 1
    [  129.676254] sof-audio-pci 0000:00:1f.3: generating page table for 00000000fe85ec3c size 0xffc0 pages 16
    [  129.676277] sof-audio-pci 0000:00:1f.3: period_bytes:0x3fc0
    [  129.676278] sof-audio-pci 0000:00:1f.3: periods:4
    [  129.676290] sof-audio-pci 0000:00:1f.3: stream_tag 1
    [  129.676297] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
    [  129.982492] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x60010000 size 108
    [  129.982502] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [  129.982506] sof-audio-pci 0000:00:1f.3: error: status = 0x001c003c panic = 0x00000001
    [  129.982510] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [  129.982519] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00040000 mask 0x00000000
    [  129.982523] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 1
    [  129.982526] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -110
    [  129.982532]  HDA Analog: ASoC: hw_params FE failed -110
    [  129.982555] sof-audio-pci 0000:00:1f.3: pcm: free stream 0 dir 1
    [  129.982560] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
    [  130.285406] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x60030000 size 12
    [  130.285414] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [  130.285418] sof-audio-pci 0000:00:1f.3: error: status = 0x001c003c panic = 0x00000001
    [  130.285421] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [  130.285427] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00040000 mask 0x00000000
    [  130.285549] sof-audio-pci 0000:00:1f.3: pcm: close stream 0 dir 1
    
  5. stevyan commented on May 28, 2019

    @stevyan
    Author

    @ClarexZhou @stevyan can you try if @ranj063's PR #977 help to fix this issue? I ran aplay -d 1 stress test with that applied on my cml, i passed 1000 iterations.

    @keyonjie aplay can work without this issue based on daily build or PR#977, but arecord will be failed.

  6. ranj063 commented on May 28, 2019

    @ranj063
    Collaborator

    Folks, please do not classify all issues as IPC timeouts by looking at the last error message. The problem here is due to a FW load failure that occurred much earlier than the IPC timeout

  7. changed the title [-][CFL][HDA] 'IPC timed out for 0x60010000: GLB_STREAM_MSG: PCM_PARAMS' after arecord several times.[/-] [+][CFL][HDA] "load fw failed ret: -110" after arecord several times.[/+] on May 28, 2019
  8. ClarexZhou commented on Jun 3, 2019

    @ClarexZhou

    Error occurred during S3 without playback stress test.
    Error always occurred when do stress test with USB hub Ethernet network.
    Error not occurred when do stress test without network.
    FW load failed then CTX_save ipc timed out at 95th time. Can't enter S3 anymore and headset type selection query pops up.

    Test Recipe
    Kernel :98972d https://github.com/lyakh/linux/commits/cnl-rc1
    FW: 47dc14d https://github.com/lyakh/sof/tree/ipc-timeout
    Topology: Same with FW.

    [ 1008.318983] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
    [ 1008.318988] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
    [ 1008.318989] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
    [ 1008.318991] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
    [ 1008.319516] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [ 1008.319523] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010e0e successful
    [ 1008.319533] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 successful
    [ 1008.319680] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
    [ 1011.319881] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000010 timedout
    [ 1011.319893] sof-audio-pci 0000:00:1f.3: error: load fw failed ret: -110
    [ 1011.319929] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000010
    [ 1011.319935] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
    [ 1011.319939] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000010
    [ 1011.319944] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
    [ 1011.319948] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware after resume -110
    [ 1011.319974] sof-audio-pci 0000:00:1f.3: ipc tx: 0x40010000: GLB_PM_MSG: CTX_SAVE
    [ 1011.624128] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x40010000 size 76
    [ 1011.624140] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [ 1011.624149] sof-audio-pci 0000:00:1f.3: error: status = 0x001d003c panic = 0x00000000
    [ 1011.624155] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [ 1011.624165] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00040001 mask 0x00000000
    [ 1011.624169] sof-audio-pci 0000:00:1f.3: error: ctx_save ipc error during suspend -110
    [ 1011.624186] PM: pci_pm_suspend(): snd_sof_suspend+0x0/0x10 [snd_sof] returns -110
    [ 1011.624197] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x120 returns -110
    [ 1011.624203] PM: Device 0000:00:1f.3 failed to suspend: error -110
    [ 1011.624208] PM: Some devices failed to suspend, or early wake event detected
    [ 1011.624368] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0
    [ 1011.624389] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 7:0
    [ 1011.803119] iwlwifi 0000:00:14.3: Conflict between TLV & NVM regarding enabling LAR (TLV = enabled NVM =disabled)
    [ 1014.758481] ax88179_178a 2-1:1.0 enx000ec6a1e569: ax88179 - Link status is: 1
    [ 1052.812334] OOM killer enabled.
    [ 1052.812336] Restarting tasks ... done.
    [ 1052.853482] PM: suspend exit
    
    
    

    test_95.log

  9. ClarexZhou commented on Jun 13, 2019

    @ClarexZhou

    Error occurred during S3 without playback stress test.
    FW load failed then CTX_save ipc timed out at 109th time. Can't enter S3 anymore and headset type selection query pops up.

    Test Recipe
    Kernel sof-dev : 96033e6 +PR1003
    FW: 47dc14d https://github.com/lyakh/sof/tree/ipc-timeout
    Topology: Same with FW.

    dmesg:

    [ 1673.591070] PM: suspend entry (s2idle)
    [ 1673.591564] Filesystems sync: 0.000 seconds
    [ 1673.591737] Freezing user space processes ... (elapsed 0.001 seconds) done.
    [ 1673.593434] OOM killer disabled.
    [ 1673.593434] Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
    [ 1673.594408] printk: Suspending console(s) (use no_console_suspend to debug)
    [ 1673.709537] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at  00000044
    [ 1673.709541] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000040 at  00000048
    [ 1673.709544] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000000 at  00000048
    [ 1673.712449] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at  00000048
    [ 1673.712451] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000040 at  00000048
    [ 1673.712453] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000040 at  00000048
    [ 1673.712454] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000000 at  00000048
    [ 1673.712456] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at  00000048
    [ 1673.712457] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000040 at  00000048
    [ 1673.712509] sof-audio-pci 0000:00:1f.3: loading firmware
    [ 1673.712511] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000002 at  00000048
    [ 1673.712519] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000000 at  00000048
    [ 1673.712522] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at  00000044
    [ 1673.712523] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000004 at  00000044
    [ 1673.712524] sof-audio-pci 0000:00:1f.3: booting DSP firmware
    [ 1673.712595] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    [ 1673.712607] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    [ 1673.712609] sof-audio-pci 0000:00:1f.3: period_bytes:0x0
    [ 1673.712609] sof-audio-pci 0000:00:1f.3: periods:1
    [ 1673.713165] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
    [ 1673.713180] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
    [ 1673.713186] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
    [ 1673.713194] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
    [ 1673.713715] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [ 1673.713723] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010e0e successful
    [ 1673.713732] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 successful
    [ 1673.713864] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
    [ 1676.713999] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000010 timedout
    [ 1676.714012] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x140000 successful
    [ 1676.714018] sof-audio-pci 0000:00:1f.3: error: load fw failed ret: -110
    [ 1676.714050] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000010
    [ 1676.714057] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
    [ 1676.714061] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000010
    [ 1676.714066] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
    [ 1676.714070] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware after resume -110
    [ 1676.714097] sof-audio-pci 0000:00:1f.3: ipc tx: 0x40010000: GLB_PM_MSG: CTX_SAVE
    [ 1677.017677] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x40010000 size 76
    [ 1677.017689] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [ 1677.017698] sof-audio-pci 0000:00:1f.3: error: status = 0x001d003c panic = 0x00000000
    [ 1677.017703] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [ 1677.017723] sof-audio-pci 0000:00:1f.3: error: hda irq intsts 0x00000000 intlctl 0x00000000 rirb 00
    [ 1677.017726] sof-audio-pci 0000:00:1f.3: error: dsp irq ppsts 0x00000000 adspis 0x00000000
    [ 1677.017738] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00040001 mask 0x00000000
    [ 1677.017742] sof-audio-pci 0000:00:1f.3: ctx_save ipc error -110, proceeding with suspend
    [ 1677.067910] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1d003c timedout
    [ 1677.067921] sof-audio-pci 0000:00:1f.3: error: reset enter failed: core_mask f adspcs 0x1d003c
    [ 1677.067926] sof-audio-pci 0000:00:1f.3: error: dsp core reset failed: core_mask f
    [ 1677.067928] sof-audio-pci 0000:00:1f.3: error: failed to power down core during suspend
    [ 1677.067932] sof-audio-pci 0000:00:1f.3: error: suspending dsp
    [ 1677.067936] sof-audio-pci 0000:00:1f.3: error: failed to power down DSP during suspend -5
    [ 1677.067953] PM: pci_pm_suspend(): snd_sof_suspend+0x0/0x10 [snd_sof] returns -5
    [ 1677.067965] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x120 returns -5
    [ 1677.067972] PM: Device 0000:00:1f.3 failed to suspend: error -5
    [ 1677.067978] PM: Some devices failed to suspend, or early wake event detected
    [ 1677.068086] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068092] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068096] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068100] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068104] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068108] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068111] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068114] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068118] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068121] sof-audio-pci 0000:00:1f.3: spurious response 0x0:0x0, last cmd=0x170500
    [ 1677.068204] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0
    [ 1677.068229] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 7:0
    [ 1677.250996] iwlwifi 0000:00:14.3: Conflict between TLV & NVM regarding enabling LAR (TLV = enabled NVM =disabled)
    [ 1705.214024] OOM killer enabled.
    [ 1705.214027] Restarting tasks ... done.
    [ 1705.261756] PM: suspend exit
    
  10. ClarexZhou commented on Jun 13, 2019

    @ClarexZhou

    @lyakh kernel is using latest https://github.com/thesofproject/linux/commits/topic/sof-dev [Top commit: 96033e6 ] + PR1003

  11. kv2019i commented on Jun 13, 2019

    @kv2019i
    Collaborator

    This looks different from any IPC timeout cases. Here the failure comes from polling the FW, so we are not relying on IRQs at all here. It also looks strange that the FW does send some replies, so it's not completely head:

    [ 1673.713732] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 successful
    [ 1673.713864] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0

    ... so here FW is still alive.

    [ 1676.713999] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000010 timedout

    But then we time out, 130usec 3sec and 130usec later (UPDATE). So the ROM is stuck or the DMA programming for FW load has failed (or both).

  12. 19 remaining items

  13. keyonjie commented on Jul 15, 2019

    @keyonjie

    This is not easy to be reproduced on my side, I run 300 iterations with FW(master) and driver(topic/sof-dev) today's commits on wasp, but failed to reproduce it.

  14. keyonjie commented on Jul 15, 2019

    @keyonjie

    But it hints to me that maybe it worth to considering bring Xun's PR back for discussion, #916

  15. keyonjie commented on Jul 16, 2019

    @keyonjie

    I tried 1000 iterations last overnight but failed to reproduce the issue.

  16. ClarexZhou commented on Jul 17, 2019

    @ClarexZhou

    Error occurred at 1006th in S3 without playback test on a CML HD-A notebook.

    Dmesg

    [19184.336735] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000004 at  00000044
    [19184.336737] sof-audio-pci 0000:00:1f.3: booting DSP firmware
    [19184.336803] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    [19184.336818] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    [19184.336821] sof-audio-pci 0000:00:1f.3: period_bytes:0x0
    [19184.336822] sof-audio-pci 0000:00:1f.3: periods:1
    [19184.336881] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
    [19184.336889] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
    [19184.336891] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
    [19184.336895] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
    [19184.337491] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [19184.337497] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010e0e successful
    [19184.337502] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 successful
    [19184.337537] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
    [19184.500859] nvme nvme0: 8/0/0 default/read/poll queues
    [19184.522981] usb 1-6: reset high-speed USB device number 3 using xhci_hcd
    [19187.337562] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000010 timedout
    [19187.337572] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x140000 successful
    [19187.337578] sof-audio-pci 0000:00:1f.3: error: load fw failed ret: -110
    [19187.337608] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000010
    [19187.337614] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
    [19187.337617] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000010
    [19187.337621] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
    [19187.337625] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware after resume -110
    [19187.337637] PM: dpm_run_callback(): pci_pm_resume+0x0/0xa0 returns -110
    [19187.337652] PM: Device 0000:00:1f.3 failed to resume: error -110
    [19187.337761] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0
    [19187.337782] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 7:0
    [19187.373040] acpi LNXPOWER:06: Turning OFF
    [19187.373208] OOM killer enabled.
    [19187.373209] Restarting tasks ... 
    [19187.388018] sof-audio-pci 0000:00:1f.3: ipc tx: 0x40010000: GLB_PM_MSG: CTX_SAVE
    [19187.397672] done.
    [19187.425569] PM: suspend exit
    [19187.895904] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x40010000 size 76
    [19187.895919] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [19187.895929] sof-audio-pci 0000:00:1f.3: error: status = 0x001d003c panic = 0x00000000
    [19187.895935] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [19187.895956] sof-audio-pci 0000:00:1f.3: error: hda irq intsts 0x00000000 intlctl 0x00000000 rirb 00
    [19187.895960] sof-audio-pci 0000:00:1f.3: error: dsp irq ppsts 0x00000000 adspis 0x00000000
    [19187.895976] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00040001 mask 0x00000000
    [19187.895980] sof-audio-pci 0000:00:1f.3: ctx_save ipc error -110, proceeding with suspend
    [19187.946186] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1d003c timedout
    [19187.946195] sof-audio-pci 0000:00:1f.3: error: reset enter failed: core_mask f adspcs 0x1d003c
    [19187.946199] sof-audio-pci 0000:00:1f.3: error: dsp core reset failed: core_mask f
    [19187.946201] sof-audio-pci 0000:00:1f.3: error: failed to power down core during suspend
    [19187.946205] sof-audio-pci 0000:00:1f.3: error: failed to power down DSP during suspend -5
    [19187.946217] sof-audio-pci 0000:00:1f.3: can't suspend (snd_sof_runtime_suspend [snd_sof] returned -5)
    
    

    test_1006.txt

    kernel: topic/sof-dev 04b9bfe
    sof: cml-hda-dmic-001-drop-stable 6cc8da10
    tplg: sof-hda-generic.tplg

  17. ClarexZhou commented on Jul 17, 2019

    @ClarexZhou

    @keyonjie error is easier to be reproduced when changing suspend and timed wake time to 1s.

  18. keyonjie commented on Jul 17, 2019

    @keyonjie

    @ClarexZhou can you please help check if #1089 can help on this?

  19. ClarexZhou commented on Jul 18, 2019

    @ClarexZhou

    @keyonjie Error not occurred with #1089 after run 2k interactions s3 without playback stress test on both ICL HD-A RVP and CFL HD-A notebook.
    Kernel: topic/sof-dev: 04b9bfe + PR#1089

  20. keyonjie commented on Jul 18, 2019

    @keyonjie

    @ClarexZhou Thanks for the validation.

  21. ClarexZhou commented on Jul 23, 2019

    @ClarexZhou

    Similar issue occurred on ICL-RVP on sof-dev with merged PR#1089. Failed at 198th during S3 without playback test.

    Suspend and wakeup time is to 1s-16s as below in test scripts.

    readonly RANDOM_INIT_VALUE=1
    readonly RANDOM_RANGE=15
    

    Dmesg

    25386.592011] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [25386.592042] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf010e0e successful
    [25386.592094] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
    [25386.709533] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x5000001 successful
    [25388.599939] sof-audio-pci 0000:00:1f.3: Copying cached debugfs data
    [25388.599943] sof-audio-pci 0000:00:1f.3: Copying cached debugfs data
    [25388.600201] sof-audio-pci 0000:00:1f.3: Copying cached debugfs data
    [25388.600203] sof-audio-pci 0000:00:1f.3: Copying cached debugfs data
    [25388.600204] sof-audio-pci 0000:00:1f.3: Copying cached debugfs data
    [25389.710098] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x2000012 timedout
    [25389.710566] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x140000 successful
    [25389.710588] sof-audio-pci 0000:00:1f.3: error: load fw failed ret: -110
    [25389.710631] sof-audio-pci 0000:00:1f.3: unknown ROM status value 02000012
    [25389.710648] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
    [25389.710670] sof-audio-pci 0000:00:1f.3: unknown ROM status value 02000012
    [25389.710688] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
    [25389.710693] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware after resume -110
    [25389.710725] sof-audio-pci 0000:00:1f.3: pcm: open stream 0 dir 1
    [25389.710733] sof-audio-pci 0000:00:1f.3: period min 192 max 16384 bytes
    [25389.710736] sof-audio-pci 0000:00:1f.3: period count 2 max 16
    [25389.710738] sof-audio-pci 0000:00:1f.3: buffer max 65536 bytes
    [25389.711003] sof-audio-pci 0000:00:1f.3: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
    [25390.218903] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x80010000 size 120
    [25390.218925] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [25390.218940] sof-audio-pci 0000:00:1f.3: error: status = 0x001d003c panic = 0x00000001
    [25390.218960] sof-audio-pci 0000:00:1f.3: unknown ROM status value 01009701
    [25390.218971] sof-audio-pci 0000:00:1f.3: error: hda irq intsts 0x00000000 intlctl 0x00000000 rirb 00
    [25390.218974] sof-audio-pci 0000:00:1f.3: error: dsp irq ppsts 0x00000000 adspis 0x00000001
    [25390.218990] sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00040000 mask 0x00000000
    [25390.218994] sof-audio-pci 0000:00:1f.3: error: failed to set dai config for Analog Playback and Capture
    [25390.218999] sof-audio-pci 0000:00:1f.3: ASoC: can't set Analog CPU DAI hw params: -110
    [25390.219009]  Analog Playback and Capture: ASoC: hw_params BE failed -110
    [25390.219012]  HDA Analog: ASoC: hw_params BE failed -110
    

    test_198.txt

    linux (topic/sof-dev) f745362
    sof (master): a513ac7
    topology: sof-hda-generic-2ch.tpl

  22. keyonjie commented on Jul 23, 2019

    @keyonjie

    This "reg=0x2000012 timedout" is a new error type, looks we are still waiting for csme validation. Maybe we can try longer timeout value and do more test with it.

  23. ClarexZhou commented on Jul 24, 2019

    @ClarexZhou

    Error not occurred again after run 2535 times same S3 without playback stress test on ICL-RVP on sof-dev with merged PR#1089

    linux (topic/sof-dev) f745362
    sof (master): a513ac7
    topology: sof-hda-generic-2ch.tplg

  24. ClarexZhou commented on Jul 24, 2019

    @ClarexZhou

    Close this issue and track new "reg=0x2000012 timedout" issue in #1094

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

Metadata

Metadata

Assignees

Labels

BIOSRelated to BIOSCFLApplies to Coffee Lake platformCMLApplies to Comet Lake platformHDAApplies to HD-Audio bus for codec connectionICLApplies to Icelake platformP1Blocker bugs or important featuresSecurityRelated to Security FirmwarebugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions