Bug 213291
Summary: | snd_hda_intel no codecs found! on AsRock B550 Taichi - Starship/Matisse HD Audio Controller [1022:1487] - non-USB - Ryzen 5950x | ||
---|---|---|---|
Product: | Drivers | Reporter: | marko-x (techau) |
Component: | Sound(ALSA) | Assignee: | Jaroslav Kysela (perex) |
Status: | NEW --- | ||
Severity: | normal | CC: | norritt, tiwai |
Priority: | P1 | ||
Hardware: | Intel | ||
OS: | Linux | ||
Kernel Version: | 5.12.6 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Commands Output
lspci -nnv |
Description
marko-x
2021-05-31 11:15:03 UTC
If you need more details, please let me know, I will collect relevant log files. ------------------------------------------------------------------------------ Attaching Output of "lspci -nn" showing Subsystem Info: ------------------------------------------------------------------------------ 0d:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487] Subsystem: ASRock Incorporation Starship/Matisse HD Audio Controller [1849:2225] Flags: bus master, fast devsel, latency 0, IRQ 126 Memory at fcc00000 (32-bit, non-prefetchable) [size=32K] Capabilities: <access denied> Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel Created attachment 297193 [details]
lspci -nnv
There have been a few reports showing the similar symptom (no codecs found) on the recent AMD boards, but unfortunately we have no clue why this can't work. It's pretty much hardware specific, and only the hardware vendor might know. Thanks for responding Takashi, highly appreciated. If you or anyone else needs something very specific such as hardware debug logs or specific values / data sent to or outputted by the hardware and then the data returned from it, I am happy to do what I can from my end. I have been studying "hda_intel.c" extensively trying to make sense the last few days and while at it, I saw line 1619: "#define AZX_FORCE_CODEC_MASK 0x100" So I gave it a go with "modprobe snd_hda_intel probe_mask=0x100" because further down, I can see the code refers to it in check_probe_mask(chip, dev): /* check forced option */ if (chip->codec_probe_mask != -1 && (chip->codec_probe_mask & AZX_FORCE_CODEC_MASK)) { azx_bus(chip)->codec_mask = chip->codec_probe_mask & 0xff; dev_info(chip->card->dev, "codec_mask forced to 0x%x\n", (int)azx_bus(chip)->codec_mask); } I was specifically interested in the "codec_mask forced to 0x%x\n"" statement to see what it will output so looking at that, I did: $ echo "0000:0b:00.1" > /sys/bus/pci/drivers/snd_hda_intel/unbind $ modprobe -r snd_hda_intel $ modprobe snd_hda_intel probe_mask=0x100 and then: $ dmesg | grep codec_mask [ 2809.952659] snd_hda_intel 0000:0b:00.1: codec_mask forced to 0x0 "codec_mask forced to 0x0" <-- It is null, I don't know if that indicates anything to you or anyone else. Here is the full output: [ 2809.952646] snd_hda_intel 0000:0b:00.1: Disabling MSI [ 2809.952657] snd_hda_intel 0000:0b:00.1: Handle vga_switcheroo audio client [ 2809.952659] snd_hda_intel 0000:0b:00.1: codec_mask forced to 0x0 [ 2809.957297] snd_hda_intel 0000:0b:00.1: no codecs initialized [ 2809.957447] snd_hda_intel 0000:0d:00.4: no codecs found! Upon further analyzing my original post, I can now see my comment about 0xFF "modprobe snd_hda_intel probe_mask=0xff" makes absolutely no sense, sorry for that! At the time I hadn't analyzed anything properly the same applies with 0x103 (and I got that off a random post I found). So, as per line 1619 and AZX_FORCE_CODEC_MASK being 0x100, the modprobe invoke does trigger "check_probe_mask(chip, dev)" and codec_mask is forced to null. I don't know if that indicates some sort of error. By the way, I can see there is reference to vga_switcheroo and I just want to clarify that I only have one discrete graphics card so no integrated graphics in my setup. I am trying to trace everything step by step while reproducing the error one step at a time and and adding my own debug statements which help me trace where I am and what's running. I experience similar problems on my machine for some time now. However today I encountered a machine check exception that may be related. I'm reporting it here in hope that it might help to pinpoint the issue. ------------------------------------------------------------------------------ journalctl -b ------------------------------------------------------------------------------ Mar 29 16:16:39 localhost kernel: [Hardware Error]: Corrected error, no action required. Mar 29 16:16:39 localhost kernel: [Hardware Error]: CPU:1 (19:21:2) MC17_STATUS[-|CE|-|-|-|-|-|-|-]: 0x800000012268f163 Mar 29 16:16:39 localhost kernel: [Hardware Error]: IPID: 0x0000000000000000 Mar 29 16:16:39 localhost kernel: [Hardware Error]: Bank 17 is reserved. Mar 29 16:16:39 localhost kernel: [Hardware Error]: cache level: L3/GEN, tx: INSN Mar 29 16:16:39 localhost pulseaudio[2716]: ALSA woke us up to write new data to the device, but there was actually nothing to write. Mar 29 16:16:39 localhost pulseaudio[2716]: Most likely this is a bug in the ALSA driver 'snd_usb_audio'. Please report this issue to the ALSA developers. Mar 29 16:16:39 localhost pulseaudio[2716]: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail. ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ sudo dmesg -T | grep snd_hda ------------------------------------------------------------------------------ [Wed Mar 29 09:06:40 2023] snd_hda_intel 0000:2d:00.1: enabling device (0000 -> 0002) [Wed Mar 29 09:06:40 2023] snd_hda_intel 0000:2d:00.1: Disabling MSI [Wed Mar 29 09:06:40 2023] snd_hda_intel 0000:2d:00.1: Handle vga_switcheroo audio client [Wed Mar 29 09:06:40 2023] snd_hda_intel 0000:2f:00.4: enabling device (0000 -> 0002) [Wed Mar 29 09:06:40 2023] snd_hda_intel 0000:2f:00.4: no codecs found! ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Motherboard: MSI MEG X570S ACE MAX CPU: AMD Ryzen 5950x kernel: 5.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC OS: Ubuntu 22.04.2 LTS ------------------------------------------------------------------------------ |