Skip to content

[CFL] error: cl_dsp_init: timeout HDA_DSP_SRAM_REG_ROM_STATUS read #2478

Closed

Description

@chmooreck

HP Zbook 17 G6, Realtek ALC285 + DMIC, i7-9850H

When trying to use sof audio I get:
$ dmesg | grep sof
[ 3.434290] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 3.434291] software IO TLB: mapped [mem 0x912b1000-0x952b1000] (64MB)
[ 5.379159] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 5.379161] sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[ 5.379168] sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002)
[ 5.379285] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 5.379314] sof-audio-pci 0000:00:1f.3: init of i915 and HDMI codec failed
[ 5.381439] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
[ 5.390891] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 1
[ 5.390892] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[ 5.390895] sof-audio-pci 0000:00:1f.3: DMICs detected in NHLT tables: 4
[ 6.295941] sof-audio-pci 0000:00:1f.3: error: cl_dsp_init: timeout HDA_DSP_SRAM_REG_ROM_STATUS read
[ 6.295968] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
[ 6.296018] sof-audio-pci 0000:00:1f.3: error: extended rom status: 0x6000021 0x0 0x0 0x0 0x0 0x0 0x183011b 0x0
[ 6.296195] sof-audio-pci 0000:00:1f.3: error: dsp init failed after 3 attempts with err: -110
[ 6.296236] sof-audio-pci 0000:00:1f.3: ROM error=0xffffffff: FW status=0xffffffff
[ 6.296343] sof-audio-pci 0000:00:1f.3: error: status = 0xffffffff panic = 0xffffffff
[ 6.296476] sof-audio-pci 0000:00:1f.3: error: extended rom status: 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff
[ 6.296484] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
[ 6.296485] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware -110
[ 6.346978] sof-audio-pci 0000:00:1f.3: error: hda_dsp_core_reset_enter: timeout on HDA_DSP_REG_ADSPCS read
[ 6.346979] sof-audio-pci 0000:00:1f.3: error: dsp core reset failed: core_mask f
[ 6.347191] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -110

I tried it with 1.5.1 (from gentoo repository) and 1.6 (from sof git) firmware with the same result.

Current firmware:
$ ls -ld /lib/firmware/intel/sof*
drwxr-xr-x 4 root root 4096 09-29 17:35 /lib/firmware/intel/sof
lrwxrwxrwx 1 root root 13 09-29 17:33 /lib/firmware/intel/sof-tplg -> sof-tplg-v1.6
drwxr-xr-x 2 root root 4096 09-25 13:28 /lib/firmware/intel/sof-tplg-v1.5.1
drwxr-xr-x 2 root root 12288 09-29 13:17 /lib/firmware/intel/sof-tplg-v1.6

$ ls -ld /lib/firmware/intel/sof/*
lrwxrwxrwx 1 root root 33 09-29 17:33 /lib/firmware/intel/sof/sof-apl.ri -> v1.6/intel-signed/sof-apl-v1.6.ri
lrwxrwxrwx 1 root root 20 09-29 17:33 /lib/firmware/intel/sof/sof-bdw.ri -> v1.6/sof-bdw-v1.6.ri
lrwxrwxrwx 1 root root 20 09-29 17:34 /lib/firmware/intel/sof/sof-byt.ri -> v1.6/sof-byt-v1.6.ri
lrwxrwxrwx 1 root root 33 09-29 17:34 /lib/firmware/intel/sof/sof-cfl.ri -> v1.6/intel-signed/sof-cnl-v1.6.ri
lrwxrwxrwx 1 root root 20 09-29 17:34 /lib/firmware/intel/sof/sof-cht.ri -> v1.6/sof-cht-v1.6.ri
lrwxrwxrwx 1 root root 33 09-29 17:34 /lib/firmware/intel/sof/sof-cml.ri -> v1.6/intel-signed/sof-cnl-v1.6.ri
lrwxrwxrwx 1 root root 33 09-29 17:34 /lib/firmware/intel/sof/sof-cnl.ri -> v1.6/intel-signed/sof-cnl-v1.6.ri
lrwxrwxrwx 1 root root 33 09-29 17:34 /lib/firmware/intel/sof/sof-glk.ri -> v1.6/intel-signed/sof-apl-v1.6.ri
lrwxrwxrwx 1 root root 33 09-29 17:35 /lib/firmware/intel/sof/sof-icl.ri -> v1.6/intel-signed/sof-icl-v1.6.ri
drwxr-xr-x 4 root root 4096 09-25 13:28 /lib/firmware/intel/sof/v1.5.1
drwxr-xr-x 4 root root 4096 09-29 13:17 /lib/firmware/intel/sof/v1.6

I was redirected here by Pierre Bossart from https://bugzilla.kernel.org/show_bug.cgi?id=201251#c208

Activity

  1. plbossart commented on Sep 29, 2020

    @plbossart
    Member

    @lgirdwood @jajanusz FYI, looks like there's a firmware authentication issue here?

  2. added
    BootFirmware boot or code signing related.
    bugSomething isn't working
    CFLApplies to Coffee Lake platform
    on Sep 30, 2020
  3. chmooreck commented on Oct 3, 2020

    @chmooreck
    Author

    Looks similar to:
    thesofproject/sof#2842

  4. plbossart commented on Oct 5, 2020

    @plbossart
    Member

    @chmooreck do you mind providing a link to the results of 'alsa-info'? I wonder if this happens on an IceLake device, for which we've had several issues including in our own testing.

  5. chmooreck commented on Oct 5, 2020

    @chmooreck
    Author

    $ lspci -vs 00:1f.3
    00:1f.3 Multimedia audio controller: Intel Corporation Cannon Lake PCH cAVS (rev 10)
    Subsystem: Hewlett-Packard Company Cannon Lake PCH cAVS
    Flags: bus master, fast devsel, latency 64, IRQ 16
    Memory at 404a108000 (64-bit, non-prefetchable) [size=16K]
    Memory at 404a000000 (64-bit, non-prefetchable) [size=1M]
    Capabilities:
    Kernel driver in use: sof-audio-pci
    Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci

    alsa-info.log

    with snd_hda_intel (5.8.11-gentoo):
    alsa-info-hda-intel.log

  6. plbossart commented on Oct 5, 2020

    @plbossart
    Member

    @chmooreck ok so that's CannonLake. I don't recall seeing issues with this.

    Maybe we should try to see if the authentication also fails with the Skylake/SST driver. Can you try with this in /etc/modprobe.d/alsa-base.conf

    options snd_intel_dspcfg dsp_driver=2

    This may fail at a later point but this is just to see how far the driver would go and if you manage to get past the firmware signature authentication point.

  7. chmooreck commented on Oct 5, 2020

    @chmooreck
    Author
    $ cat /etc/modprobe.d/alsa.conf 
    # Alsa kernel modules' configuration file.
    
    # ALSA portion
    alias char-major-116 snd
    # OSS/Free portion
    alias char-major-14 soundcore
    
    ##
    ## IMPORTANT:
    ## You need to customise this section for your specific sound card(s)
    ## and then run `update-modules' command.
    ## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
    ##
    ##  ALSA portion
    ## alias snd-card-0 snd-interwave
    ## alias snd-card-1 snd-ens1371
    ##  OSS/Free portion
    ## alias sound-slot-0 snd-card-0
    ## alias sound-slot-1 snd-card-1
    ##
    
    # OSS/Free portion - card #1
    alias sound-service-0-0 snd-mixer-oss
    alias sound-service-0-1 snd-seq-oss
    alias sound-service-0-3 snd-pcm-oss
    alias sound-service-0-8 snd-seq-oss
    alias sound-service-0-12 snd-pcm-oss
    ##  OSS/Free portion - card #2
    ## alias sound-service-1-0 snd-mixer-oss
    ## alias sound-service-1-3 snd-pcm-oss
    ## alias sound-service-1-12 snd-pcm-oss
    
    alias /dev/mixer snd-mixer-oss
    alias /dev/dsp snd-pcm-oss
    alias /dev/midi snd-seq-oss
    
    # Set this to the correct number of cards.
    options snd cards_limit=10
    
    blacklist snd-hda-intel
    #blacklist snd-soc-skl
    #blacklist snd-sof
    #blacklist snd-sof-pci
    #blacklist snd-sof-intel-hda
    #blacklist snd-sof-intel-hda-common
    #blacklist snd-sof-intel-byt
    #blacklist snd-sof-intel-ipc
    #blacklist snd-sof-xtensa-dsp
    
    options snd-intel-dspcfg dsp_driver=2
    

    alsa-info-sst.log

  8. plbossart commented on Oct 5, 2020

    @plbossart
    Member

    @chmooreck sorry, I was interested in the entire dmesg log only, can you please share it?

  9. chmooreck commented on Oct 5, 2020

    @chmooreck
    Author

    There isn't anything special, maybe i should enable some debug options ?

    dmesg-sst.log

    P.S. it's 22:50 here so next info will be available in ~8h

  10. plbossart commented on Oct 5, 2020

    @plbossart
    Member

    please try with

    options snd_soc_skl dyndbg=+p

  11. chmooreck commented on Oct 5, 2020

    @chmooreck
    Author
    $ dmesg  |grep snd
    [    5.495099] snd_soc_skl 0000:00:1f.3: enabling device (0000 -> 0002)
    [    5.495360] snd_soc_skl 0000:00:1f.3: chipset global capabilities = 0x9701
    [    5.495377] snd_soc_skl 0000:00:1f.3: oem_id INTEL , oem_table_id CFL oem_revision 538378241
    [    5.495491] snd_soc_skl 0000:00:1f.3: No matching I2S machine driver found
    [    5.495533] snd_soc_skl 0000:00:1f.3: dsp registration status=0
    [    5.495572] snd_soc_skl 0000:00:1f.3: Clearing TCSEL
    [    5.500266] snd_soc_skl 0000:00:1f.3: codec #0 probed OK: 10ec0285
    

    dmesg-sst-dyndbg.log

    sof with dyndbg
    dmesg-sof-dyndbg.log

  12. plbossart commented on Oct 6, 2020

    @plbossart
    Member

    Extracting the useful information from the SOF boot

    [    5.709545] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    5.709549] sof-audio-pci 0000:00:1f.3: status = 0x00000000 panic = 0x00000000
    [    5.709566] sof-audio-pci 0000:00:1f.3: extended rom status:  0x6000021 0x0 0x0 0x0 0x0 0x0 0x183011b 0x0
    [    5.709568] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    5.709601] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
    [    5.709631] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1000f0f successful
    [    5.709637] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask f
    [    5.709641] sof-audio-pci 0000:00:1f.3: Attempting iteration 1 of Core En/ROM load...
    [    5.709649] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
    [    5.709683] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
    [    5.709689] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
    [    5.709698] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
    [    5.710243] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [    5.710248] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf010e0e successful
    [    6.010564] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 timedout
    [    6.010566] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    6.010569] sof-audio-pci 0000:00:1f.3: status = 0x00000000 panic = 0x00000000
    [    6.010582] sof-audio-pci 0000:00:1f.3: extended rom status:  0x6000021 0x0 0x0 0x0 0x0 0x0 0x183011b 0x0
    [    6.010584] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    6.010589] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
    [    6.010594] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1000f0f successful
    [    6.010596] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask f
    [    6.010597] sof-audio-pci 0000:00:1f.3: Attempting iteration 2 of Core En/ROM load...
    [    6.010599] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
    [    6.010613] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
    [    6.010617] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
    [    6.010625] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
    [    6.011242] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [    6.011248] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf010e0e successful
    [    6.311586] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 timedout
    [    6.311587] sof-audio-pci 0000:00:1f.3: error: cl_dsp_init: timeout HDA_DSP_SRAM_REG_ROM_STATUS read
    [    6.311611] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    6.311662] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
    [    6.311884] sof-audio-pci 0000:00:1f.3: error: extended rom status:  0x6000021 0x0 0x0 0x0 0x0 0x0 0x183011b 0x0
    [    6.311910] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    6.311984] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
    [    6.312062] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f successful
    [    6.312088] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask f
    [    6.312089] sof-audio-pci 0000:00:1f.3: error: dsp init failed after 3 attempts with err: -110
    [    6.312139] sof-audio-pci 0000:00:1f.3: ROM error=0xffffffff: FW status=0xffffffff
    [    6.312212] sof-audio-pci 0000:00:1f.3: unknown ROM status value ffffffff
    [    6.312257] sof-audio-pci 0000:00:1f.3: error: status = 0xffffffff panic = 0xffffffff
    [    6.312440] sof-audio-pci 0000:00:1f.3: error: extended rom status:  0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff
    [    6.312463] sof-audio-pci 0000:00:1f.3: unknown ROM status value ffffffff
    [    6.312486] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
    [    6.312486] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware -110
    [    6.362775] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1c003c timedout
    [    6.362776] sof-audio-pci 0000:00:1f.3: error: hda_dsp_core_reset_enter: timeout on HDA_DSP_REG_ADSPCS read
    [    6.362777] sof-audio-pci 0000:00:1f.3: error: dsp core reset failed: core_mask f
    [    6.363011] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -110
    

    @ranj063 @jajanusz do those initial boot codes mean anything to you? Also wondering why in the error case we get a -1?

  13. plbossart commented on Oct 6, 2020

    @plbossart
    Member

    @chmooreck the SST log does not seem to provide any useful info, did you enable SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC in your .config? Also when you use SST you likely need to disable SOF completely.

    Edit: you also need SND_SOC_INTEL_SKL_HDA_DSP_GENERIC_MACH

  14. 18 remaining items

  15. plbossart commented on Oct 14, 2020

    @plbossart
    Member

    @mengdonglin This device has a DMIC interface which can only controlled by the DSP, so firmware/CSME folks need to fix this.

  16. chmooreck commented on Oct 14, 2020

    @chmooreck
    Author

    With legacy HDAudio driver it works fine, but without internal microphone (DMIC).

  17. chmooreck commented on Oct 20, 2020

    @chmooreck
    Author

    From current broonie/sound.git with added some debug info:

    [ 5.504656] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5
    [ 5.504657] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
    [ 5.504660] sof-audio-pci 0000:00:1f.3: DMICs detected in NHLT tables: 4
    [ 5.504669] sof-audio-pci 0000:00:1f.3: loading firmware
    [ 5.506458] sof-audio-pci 0000:00:1f.3: request_firmware intel/sof/sof-cfl.ri successful
    [ 5.506459] sof-audio-pci 0000:00:1f.3: firmware doesn't contain extended manifest
    [ 5.506467] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000002 at 00000048
    [ 5.506471] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000000 at 00000048
    [ 5.506478] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at 00000044
    [ 5.506482] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000004 at 00000044
    [ 5.506483] sof-audio-pci 0000:00:1f.3: booting DSP firmware
    [ 5.506512] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    [ 5.506543] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    [ 5.506547] sof-audio-pci 0000:00:1f.3: period_bytes:0x0
    [ 5.506548] sof-audio-pci 0000:00:1f.3: periods:1
    [ 5.506592] sof-audio-pci 0000:00:1f.3: Attempting iteration 0 of Core En/ROM load...
    [ 5.507115] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
    [ 5.507138] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
    [ 5.507142] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
    [ 5.507149] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
    [ 5.507661] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [ 5.507672] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf010e0e successful
    [ 5.808025] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 timedout
    [ 5.808030] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [ 5.808036] sof-audio-pci 0000:00:1f.3: status = 0x00000000 panic = 0x00000000
    [ 5.808050] sof-audio-pci 0000:00:1f.3: extended rom status: 0x6000021 0x0 0x0 0x0 0x0 0x0 0x183011b 0x0
    [ 5.808053] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [ 5.808060] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
    [ 5.808066] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f successful
    [ 5.808070] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask f
    [

  18. plbossart commented on Oct 20, 2020

    @plbossart
    Member

    @chmooreck can you attach the entire dmesg? it's possible that one iteration fails, but eventually the boot succeeds. See the log "[ 5.506592] sof-audio-pci 0000:00:1f.3: Attempting iteration 0 of Core En/ROM load...", it really tells you it's a loop and we should only check if there's a failure when the loop ends.

  19. chmooreck commented on Oct 20, 2020

    @chmooreck
    Author

    Sure, but it fails all 3 times in same way - i should mention it or paste complete log

    [    5.369298] snd-soc-dummy snd-soc-dummy: ASoC: dynamically register DAI snd-soc-dummy
    [    5.369300] snd-soc-dummy snd-soc-dummy: ASoC: Registered DAI 'snd-soc-dummy-dai'
    [    5.378261] snd_soc_skl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
    [    5.378263] snd_soc_skl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
    [    5.387374] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
    [    5.387376] sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
    [    5.387376] sof-audio-pci 0000:00:1f.3: PCI DSP detected
    [    5.387387] sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002)
    [    5.387825] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
    [    5.394826] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
    [    5.396489] sof-audio-pci 0000:00:1f.3: display power enable
    [    5.396491] sof-audio-pci 0000:00:1f.3: enable codec wakeup
    [    5.399498] sof-audio-pci 0000:00:1f.3: disable codec wakeup
    [    5.402721] sof-audio-pci 0000:00:1f.3: checking for capabilities at offset 0xc00
    [    5.402725] sof-audio-pci 0000:00:1f.3: found ML capability at 0xc00
    [    5.402725] sof-audio-pci 0000:00:1f.3: checking for capabilities at offset 0x800
    [    5.402728] sof-audio-pci 0000:00:1f.3: found DSP capability at 0x800
    [    5.402729] sof-audio-pci 0000:00:1f.3: checking for capabilities at offset 0x500
    [    5.402733] sof-audio-pci 0000:00:1f.3: found GTS capability at 0x500
    [    5.402733] sof-audio-pci 0000:00:1f.3: checking for capabilities at offset 0x1f00
    [    5.402737] sof-audio-pci 0000:00:1f.3: found DRSM capability at 0x1f00
    [    5.402737] sof-audio-pci 0000:00:1f.3: checking for capabilities at offset 0x700
    [    5.402741] sof-audio-pci 0000:00:1f.3: found SPIB capability at 0x700
    [    5.402751] sof-audio-pci 0000:00:1f.3: DMA mask is 64 bit
    [    5.402763] sof-audio-pci 0000:00:1f.3: hda global caps = 0x1009701
    [    5.402764] sof-audio-pci 0000:00:1f.3: detected 9 playback and 7 capture streams
    [    5.402834] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
    [    5.402835] sof-audio-pci 0000:00:1f.3: using IPC IRQ 152
    [    5.402891] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at  00000044
    [    5.402892] sof-audio-pci 0000:00:1f.3: PP capability, will probe DSP later.
    [    5.402892] sof-audio-pci 0000:00:1f.3: enable codec wakeup
    [    5.405903] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000040 at  00000048
    [    5.405906] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000000 at  00000048
    [    5.410130] sof-audio-pci 0000:00:1f.3: codec_mask = 0x5
    [    5.410143] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at  00000048
    [    5.410144] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000040 at  00000048
    [    5.410145] sof-audio-pci 0000:00:1f.3: disable codec wakeup
    [    5.411651] sof-audio-pci 0000:00:1f.3: skipping SoundWire, no links enabled
    [    5.411653] sof-audio-pci 0000:00:1f.3: In snd_hdac_ext_bus_get_ml_capabilities Link count: 2
    [    5.411739] sof-audio-pci 0000:00:1f.3: HDA codec #0 probed OK: response: 10ec0285
    [    5.415416] snd_hda_codec_realtek ehdaudio0D0: ASoC: dynamically register DAI ehdaudio0D0
    [    5.415418] snd_hda_codec_realtek ehdaudio0D0: ASoC: Registered DAI 'Analog Codec DAI'
    [    5.415419] snd_hda_codec_realtek ehdaudio0D0: ASoC: dynamically register DAI ehdaudio0D0
    [    5.415420] snd_hda_codec_realtek ehdaudio0D0: ASoC: Registered DAI 'Digital Codec DAI'
    [    5.415420] snd_hda_codec_realtek ehdaudio0D0: ASoC: dynamically register DAI ehdaudio0D0
    [    5.415422] snd_hda_codec_realtek ehdaudio0D0: ASoC: Registered DAI 'Alt Analog Codec DAI'
    [    5.415422] snd_hda_codec_realtek ehdaudio0D0: ASoC: dynamically register DAI ehdaudio0D0
    [    5.415423] snd_hda_codec_realtek ehdaudio0D0: ASoC: Registered DAI 'intel-hdmi-hifi1'
    [    5.415424] snd_hda_codec_realtek ehdaudio0D0: ASoC: dynamically register DAI ehdaudio0D0
    [    5.415425] snd_hda_codec_realtek ehdaudio0D0: ASoC: Registered DAI 'intel-hdmi-hifi2'
    [    5.415426] snd_hda_codec_realtek ehdaudio0D0: ASoC: dynamically register DAI ehdaudio0D0
    [    5.415427] snd_hda_codec_realtek ehdaudio0D0: ASoC: Registered DAI 'intel-hdmi-hifi3'
    [    5.415427] snd_hda_codec_realtek ehdaudio0D0: ASoC: dynamically register DAI ehdaudio0D0
    [    5.415428] snd_hda_codec_realtek ehdaudio0D0: ASoC: Registered DAI 'intel-hdmi-hifi4'
    [    5.415721] sof-audio-pci 0000:00:1f.3: HDA codec #2 probed OK: response: 8086280b
    [    5.417412] snd_hda_codec_hdmi ehdaudio0D2: ASoC: dynamically register DAI ehdaudio0D2
    [    5.417413] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Registered DAI 'Analog Codec DAI'
    [    5.417414] snd_hda_codec_hdmi ehdaudio0D2: ASoC: dynamically register DAI ehdaudio0D2
    [    5.417415] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Registered DAI 'Digital Codec DAI'
    [    5.417416] snd_hda_codec_hdmi ehdaudio0D2: ASoC: dynamically register DAI ehdaudio0D2
    [    5.417417] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Registered DAI 'Alt Analog Codec DAI'
    [    5.417417] snd_hda_codec_hdmi ehdaudio0D2: ASoC: dynamically register DAI ehdaudio0D2
    [    5.417418] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Registered DAI 'intel-hdmi-hifi1'
    [    5.417419] snd_hda_codec_hdmi ehdaudio0D2: ASoC: dynamically register DAI ehdaudio0D2
    [    5.417420] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Registered DAI 'intel-hdmi-hifi2'
    [    5.417421] snd_hda_codec_hdmi ehdaudio0D2: ASoC: dynamically register DAI ehdaudio0D2
    [    5.417421] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Registered DAI 'intel-hdmi-hifi3'
    [    5.417422] snd_hda_codec_hdmi ehdaudio0D2: ASoC: dynamically register DAI ehdaudio0D2
    [    5.417423] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Registered DAI 'intel-hdmi-hifi4'
    [    5.417771] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5
    [    5.417772] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
    [    5.417774] sof-audio-pci 0000:00:1f.3: DMICs detected in NHLT tables: 4
    [    5.417779] sof-audio-pci 0000:00:1f.3: loading firmware
    [    5.419754] sof-audio-pci 0000:00:1f.3: request_firmware intel/sof/sof-cfl.ri successful
    [    5.419755] sof-audio-pci 0000:00:1f.3: firmware doesn't contain extended manifest
    [    5.419761] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000002 at  00000048
    [    5.419764] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000000 at  00000048
    [    5.419772] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at  00000044
    [    5.419776] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000004 at  00000044
    [    5.419776] sof-audio-pci 0000:00:1f.3: booting DSP firmware
    [    5.419804] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    [    5.419825] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
    [    5.419828] sof-audio-pci 0000:00:1f.3: period_bytes:0x0
    [    5.419828] sof-audio-pci 0000:00:1f.3: periods:1
    [    5.419864] sof-audio-pci 0000:00:1f.3: Attempting iteration 0 of Core En/ROM load...
    [    5.419867] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
    [    5.419878] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
    [    5.419881] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
    [    5.419885] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
    [    5.420392] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [    5.420402] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf010e0e successful
    [    5.720501] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 timedout
    [    5.720503] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    5.720506] sof-audio-pci 0000:00:1f.3: status = 0x00000000 panic = 0x00000000
    [    5.720519] sof-audio-pci 0000:00:1f.3: extended rom status:  0x6000021 0x0 0x0 0x0 0x0 0x0 0x183011b 0x0
    [    5.720521] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    5.720524] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
    [    5.720526] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f successful
    [    5.720528] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask f
    [    5.720528] sof-audio-pci 0000:00:1f.3: Attempting iteration 1 of Core En/ROM load...
    [    5.720530] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
    [    5.720535] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
    [    5.720536] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
    [    5.720538] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
    [    5.721081] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [    5.721087] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf010e0e successful
    [    6.021366] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 timedout
    [    6.021369] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    6.021371] sof-audio-pci 0000:00:1f.3: status = 0x00000000 panic = 0x00000000
    [    6.021383] sof-audio-pci 0000:00:1f.3: extended rom status:  0x6000021 0x0 0x0 0x0 0x0 0x0 0x183011b 0x0
    [    6.021385] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    6.021391] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
    [    6.021396] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1000f0f successful
    [    6.021398] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask f
    [    6.021399] sof-audio-pci 0000:00:1f.3: Attempting iteration 2 of Core En/ROM load...
    [    6.021667] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
    [    6.021678] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
    [    6.021680] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
    [    6.021683] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
    [    6.022190] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
    [    6.022196] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf010e0e successful
    [    6.322708] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x6000021 timedout
    [    6.322709] sof-audio-pci 0000:00:1f.3: error: cl_dsp_init: timeout HDA_DSP_SRAM_REG_ROM_STATUS read
    [    6.322712] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    6.322716] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
    [    6.322728] sof-audio-pci 0000:00:1f.3: error: extended rom status:  0x6000021 0x0 0x0 0x0 0x0 0x0 0x183011b 0x0
    [    6.322730] sof-audio-pci 0000:00:1f.3: unknown ROM status value 06000021
    [    6.322737] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
    [    6.322742] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1000f0f successful
    [    6.322744] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask f
    [    6.322745] sof-audio-pci 0000:00:1f.3: error: dsp init failed after 3 attempts with err: -110
    [    6.322749] sof-audio-pci 0000:00:1f.3: ROM error=0xffffffff: FW status=0xffffffff
    [    6.322759] sof-audio-pci 0000:00:1f.3: unknown ROM status value ffffffff
    [    6.322766] sof-audio-pci 0000:00:1f.3: error: status = 0xffffffff panic = 0xffffffff
    [    6.322796] sof-audio-pci 0000:00:1f.3: error: extended rom status:  0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff
    [    6.322799] sof-audio-pci 0000:00:1f.3: unknown ROM status value ffffffff
    [    6.322803] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
    [    6.322805] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware -110
    [    6.322908] snd_hda_codec_realtek ehdaudio0D0: ASoC: Unregistered DAI 'Analog Codec DAI'
    [    6.322909] snd_hda_codec_realtek ehdaudio0D0: ASoC: Unregistered DAI 'Digital Codec DAI'
    [    6.322910] snd_hda_codec_realtek ehdaudio0D0: ASoC: Unregistered DAI 'Alt Analog Codec DAI'
    [    6.322911] snd_hda_codec_realtek ehdaudio0D0: ASoC: Unregistered DAI 'intel-hdmi-hifi1'
    [    6.322911] snd_hda_codec_realtek ehdaudio0D0: ASoC: Unregistered DAI 'intel-hdmi-hifi2'
    [    6.322912] snd_hda_codec_realtek ehdaudio0D0: ASoC: Unregistered DAI 'intel-hdmi-hifi3'
    [    6.322913] snd_hda_codec_realtek ehdaudio0D0: ASoC: Unregistered DAI 'intel-hdmi-hifi4'
    [    6.322938] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Unregistered DAI 'Analog Codec DAI'
    [    6.322939] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Unregistered DAI 'Digital Codec DAI'
    [    6.322940] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Unregistered DAI 'Alt Analog Codec DAI'
    [    6.322940] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Unregistered DAI 'intel-hdmi-hifi1'
    [    6.322941] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Unregistered DAI 'intel-hdmi-hifi2'
    [    6.322942] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Unregistered DAI 'intel-hdmi-hifi3'
    [    6.322942] snd_hda_codec_hdmi ehdaudio0D2: ASoC: Unregistered DAI 'intel-hdmi-hifi4'
    [    6.373186] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1c003c timedout
    [    6.373187] sof-audio-pci 0000:00:1f.3: error: hda_dsp_core_reset_enter: timeout on HDA_DSP_REG_ADSPCS read
    [    6.373188] sof-audio-pci 0000:00:1f.3: error: dsp core reset failed: core_mask f
    [    6.373295] sof-audio-pci 0000:00:1f.3: display power disable
    [    6.373317] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -110
    
  20. mengdonglin commented on Oct 26, 2020

    @mengdonglin

    @chmooreck Thanks for your info! Can you please check if audio can work in Windows10? especially, can DMIC work in Windows? If yes, it means audio DSP driver and firmware can work well with CSE in Windows, and this will help us to figure out the gap in Linux.

  21. chmooreck commented on Oct 26, 2020

    @chmooreck
    Author

    @mengdonglin I don't have Windows on this machine. Tell me if all we need is confirmation if it works or not ? Or should I check something more ?

    Edit:
    I managed to install Windows on some spare disk and it turned out sound didn;t work on Windows too. After some research it turned out I had to enable Intel ME in BIOS - it fixed sound under Windows.

    Here is fresh dmesg - at least we passed previous firmware timeout error.
    dmesg.log

  22. chmooreck commented on Oct 27, 2020

    @chmooreck
    Author

    BTW. maybe "[CFL] error: cl_dsp_init: timeout HDA_DSP_SRAM_REG_ROM_STATUS read" should be closed with resolution: enable ME to let it load proper firmware.

    And we can go on in another issue ?

  23. plbossart commented on Oct 27, 2020

    @plbossart
    Member

    @chmooreck did the HP BIOS let you disable the ME? This is a pre-requisite for audio firmware authentication, so that's clearly a problem. I don't know if we can check if the ME is on, i'd have to check internally.

  24. chmooreck commented on Oct 27, 2020

    @chmooreck
    Author

    @plbossart Yes, there is option to disable/enable ME in HP BIOS.

    But I don't see this option in HP BIOS Manual nor in BIOS simulator (file:///tmp/mozilla_dom0/c06535377). I've got it at Advanced -> Remote Managment Options.

  25. plbossart commented on Oct 27, 2020

    @plbossart
    Member

    thanks @chmooreck. we were aware of another OEM where users can select a device with the ME disabled, but we didn't know about this capability on HP devices. I am now tracking this so that we improve the documentation thesofproject/sof-docs#304 and detection #2539

    Anyways, I am glad in your case you were able to solve the audio issue - even if it wasn't an audio issue after all :-)

  26. chmooreck commented on Oct 28, 2020

    @chmooreck
    Author

    @plbossart Oh no, I've got audio issue still. Just bit later:

    [   13.515470] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x50010000
    [   13.515473] sof-audio-pci 0000:00:1f.3: ipc tx: 0x50010000
    [   13.515560] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x50010000 size 108
    [   13.515562] sof-audio-pci 0000:00:1f.3: error: set/get ctrl ipc comp 58
    [   13.515563] sof-audio-pci 0000:00:1f.3: error: failed kcontrol value set for widget: 58
    [   13.515564] sof-audio-pci 0000:00:1f.3: error: restoring kcontrols after resume
    [   13.515565] sof-audio-pci 0000:00:1f.3: error: failed to restore pipeline after resume -22
    [   13.515569] sof-audio-pci 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
    

    Full dmesg log is in comment #2478 (comment)
    Should I go back to https://bugzilla.kernel.org/show_bug.cgi?id=201251 ?

  27. keyonjie commented on Nov 2, 2020

    @keyonjie

    @chmooreck this looks like FW error now, can you share the FW log also (via command 'sof-logger -l sof-cfl.ldc -t', for details, see https://thesofproject.github.io/latest/developer_guides/debugability/logger/index.html?highlight=logger)?

    And does this error impact the subsequent sound playback/capture for you?

    Can you share the kernel recipe you used?

  28. chmooreck commented on Nov 2, 2020

    @chmooreck
    Author

    @keyonjie I made separate report (#2545 (comment)), as it was not connected with original issue - fw not loading because of disabled ME.

    From my side it all works fine now - can be closed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BootFirmware boot or code signing related.CFLApplies to Coffee Lake platformCSEIssues related to the security engine CSEP2Critical bugs or normal featuresbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions