Bug 1216071

Summary: Installation didn't have sof-firmware package so audio didn't work
Product: [openSUSE] openSUSE Tumbleweed Reporter: Federico Mena Quintero <federico>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: federico
Version: CurrentFlags: tiwai: needinfo? (federico)
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hwinfo --sound
rpm -qa "kernel-firmware*"

Description Federico Mena Quintero 2023-10-09 22:59:53 UTC
With the 20231006 snapshot of Tumbleweed, I got no sound.  It seems that the installation procedure forgot to install the sof-firmware package.  From the log:

Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040380
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
Oct 09 16:39:10 localhost kernel: usbcore: registered new interface driver uvcvideo
Oct 09 16:39:10 localhost kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input22
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
Oct 09 16:39:10 localhost systemd[1]: Finished Load/Save Screen Backlight Brightness of backlight:intel_backlight.
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Direct firmware load for intel/sof/sof-adl-s.ri failed with error -2
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: sof firmware file is missing, you might need to
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3:        download it from https://github.com/thesofproject/sof-bin/
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to load DSP firmware -2
Oct 09 16:39:10 localhost kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: sof_probe_work failed err: -2

Do you need a full journal, or some other data?
Comment 1 Stefan Hundhammer 2023-10-10 07:14:08 UTC
The installer is not responsible for package dependencies. Do not blame the installer for everything.



Also, there is a bug reporting FAQ (which I wrote 20+ years ago).
Please read it.

  https://en.opensuse.org/openSUSE:Report_a_YaST_bug

Also

  https://en.opensuse.org/openSUSE:How_to_Write_a_Good_Bugreport
Comment 2 Stefan Hundhammer 2023-10-10 07:15:55 UTC
[sh @ balrog] ~ 7 % find /lib/firmware -name "*sof*"

/lib/firmware/mediatek/sof
/lib/firmware/mediatek/sof/sof-mt8186.ldc.xz
/lib/firmware/mediatek/sof/sof-mt8195.ri.xz
/lib/firmware/mediatek/sof/sof-mt8186.ri.xz
/lib/firmware/mediatek/sof/sof-mt8195.ldc.xz
/lib/firmware/mediatek/sof-tplg
/lib/firmware/mediatek/sof-tplg/sof-mt8195-mt6359-rt1019-rt5682-dts.tplg.xz
/lib/firmware/mediatek/sof-tplg/sof-mt8195-mt6359-rt1019-rt5682.tplg.xz
/lib/firmware/mediatek/sof-tplg/sof-mt8186.tplg.xz

[sh @ balrog] ~ 8 % rpm -qf /lib/firmware/mediatek/sof/sof-mt8195.ri.xz

kernel-firmware-sound-20230724-150500.3.6.1.noarch


(from my Leap 15.5 which no doubt is not that different from TW)
Comment 3 Stefan Hundhammer 2023-10-10 07:17:54 UTC
Please attach (not paste! Bugzilla destroys all formatting!) the output of

  sudo hwinfo --sound

  rpm -qa "kernel-firmware*"
Comment 4 Federico Mena Quintero 2023-10-10 16:15:11 UTC
Created attachment 870054 [details]
hwinfo --sound
Comment 5 Federico Mena Quintero 2023-10-10 16:15:45 UTC
Created attachment 870055 [details]
rpm -qa "kernel-firmware*"
Comment 6 Federico Mena Quintero 2023-10-10 16:27:50 UTC
Sorry, I wasn't implying that the bug is in the installer.  I filed the bug under the "Installation" component because I noticed the bug right after installation:  my previous snapshot was 20230823 and sound worked fine out of the box.  When I reinstalled with 20231005, sound no longer worked.

a) I just noticed that there is a "Sound" component available in Bugzilla - should I have used that instead?

b) ... maybe there's a problem when people try to file a bug, but don't know the appropriate component to use, and they pick the first one that seems plausible.  The reporter is not the best person to do bug triage :)
Comment 7 Stefan Hundhammer 2023-10-11 14:35:31 UTC
Yes, component "Sound" fits much better. But it depends on each specific product what bug components are available; they tend to be somewhat different.

When you don't know which one to choose, there is "Other" where our distro-wide bug screening team tries to find out what component it really is.

Whenever you know one of the involved files with some (even limited) degree of certainty, you can use

    rpm -qf /path/to/that/file

which gives you a package name, and then ask OBS who maintains it:

    osc maintainer -e mypackagename

the '-e' gives you the e-mail address that is used in both OBS and Bugzilla.
Comment 8 Takashi Iwai 2023-10-12 07:50:53 UTC
sof-firmware package has Supplements tag, and it should cover.

Try to uninstall sof-firmware once, and run "zypper install-recommends --no-recommends"
Does it install sof-firmware?
Comment 9 Federico Mena Quintero 2023-10-16 20:13:22 UTC
You mean "zypper install-new-recommends --no-recommends", correct?

That indeed installed sof-firmware, along with other packages:

The following 11 NEW packages are going to be installed:
  intel-media-driver libigdgmm12 libmfx-gen1_2 libvdpau_nouveau libvulkan_intel Mesa-vulkan-device-select openSUSE-repos-MicroOS-NVIDIA openSUSE-repos-Tumbleweed openSUSE-repos-Tumbleweed-NVIDIA sof-firmware ucode-intel
Comment 10 Takashi Iwai 2023-10-19 15:39:56 UTC
If the installation of sof-firmware is picked up by zypper inr, it implies that the package Supplements is OK.  The rest is about the behavior on the installer.

Is it a normal TW install, or is it about openSUSE Micro or such?  IIRC, the installation of *-Micro doesn't pick up the Recommends intentionally, hence this kind of problem can happen unless you explicitly choose the package there.
OTOH, if the package isn't chosen even on the normal TW desktop installation, it can be a bug in the installer.
Comment 11 Takashi Iwai 2024-03-05 13:59:51 UTC
An old bug, it's supposed to be a usage problem (need the installation with --recommends).