Bug 281311 - [sound][snd_hda] hdac0: Command 0x20373000 timeout on address 2
Summary: [sound][snd_hda] hdac0: Command 0x20373000 timeout on address 2
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 14.1-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-09-06 10:56 UTC by Dmitry Lukhtionov
Modified: 2024-09-12 09:37 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Lukhtionov 2024-09-06 10:56:21 UTC
After upgrade to 14.1-STABLE 9a3dee859 from 2024-09-03

pciconf
hdac0@pci0:0:14:0:	class=0x040100 rev=0x06 hdr=0x00 vendor=0x8086 device=0x3198 subvendor=0x1025 subdevice=0x1483
    vendor     = 'Intel Corporation'
    device     = 'Celeron/Pentium Silver Processor High Definition Audio'
    class      = multimedia
    subclass   = audio
    bar   [10] = type Memory, range 64, base rxa1310000, size 16384, enabled
    bar   [20] = type Memory, range 64, base rxa1000000, size 1048576, enabled
    cap 01[50] = powerspec 3  supports D0 D3  current D0
    cap 09[80] = vendor (length 20) Intel cap 15 version 0
    cap 05[60] = MSI supports 1 message, 64 bit enabled with 1 message
    cap 10[70] = PCI-Express 1 root endpoint max data 128(128) FLR NS
                 max read 512
                 link x1(x0)

dmesg

hdac0: <Intel Gemini Lake HDA Controller> mem 0xa1310000-0xa1313fff,0xa1000000-0xa10fffff irq 25 at device 14.0 on pci0
hdacc0: <Realtek ALC256 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC256 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC256 (Internal Analog)> at nid 20 and 18 on hdaa0
pcm1: <Realtek ALC256 (Front Analog Headphones)> at nid 33 on hdaa0
hdacc1: <Intel Gemini Lake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Gemini Lake Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Gemini Lake (HDMI/DP 8ch)> at nid 3 on hdaa1

lot of lines in dmesg
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373000 timeout on address 2
hdac0: Command 0x20373184 timeout on address 2
hdac0: Command 0x20373101 timeout on address 2
hdac0: Command 0x2037310a timeout on address 2
hdac0: Command 0x20373170 timeout on address 2
hdac0: Command 0x20373101 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373100 timeout on address 2
hdac0: Command 0x20373000 timeout on address 2
hdac0: Command 0x203732c0 timeout on address 2
hdac0: Command 0x20270d00 timeout on address 2
hdac0: Command 0x20270600 timeout on address 2
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2024-09-06 18:39:30 UTC
Which revision did you upgrade from?  Do you see any problems besides the error messages themselves?
Comment 2 Dmitry Lukhtionov 2024-09-09 10:03:37 UTC
(In reply to Mark Johnston from comment #1)

from 2024-07-22 14.1-STABLE
Comment 3 Dmitry Lukhtionov 2024-09-09 10:19:32 UTC
Sound stop working
Comment 4 Dmitry Lukhtionov 2024-09-09 10:21:44 UTC
First error from dmesg:
hdac0: Command 0x2033b000 timeout on address 2
Comment 5 Dmitry Lukhtionov 2024-09-09 11:08:54 UTC
in my sysctl
hw.snd.default_unit: 0

hdac0: <Intel Gemini Lake HDA Controller> mem 0xa1310000-0xa1313fff,0xa1000000-0xa10fffff irq 25 at device 14.0 on pci0
hdacc0: <Realtek ALC256 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC256 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC256 (Internal Analog)> at nid 20 and 18 on hdaa0
pcm1: <Realtek ALC256 (Front Analog Headphones)> at nid 33 on hdaa0
hdacc1: <Intel Gemini Lake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Gemini Lake Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Gemini Lake (HDMI/DP 8ch)> at nid 3 on hdaa1


cad 0 - codec on motherboard
cad 2 - codec on video card

hdac0: Command 0x20373100 timeout on address 2 - attempt to write to `cad 2`

PARTIALLY SOLVED:
put 
hint.hdacc.1.disabled="1"
into device.hints

Sound became play, but very silent
Comment 6 Ahmad Abdulla 2024-09-09 23:04:40 UTC
Can you give output of 
cat /dev/sndstat
it could be pcm0 is another device.
Comment 7 Dmitry Lukhtionov 2024-09-10 12:57:41 UTC
# cat /dev/sndstat 
Installed devices:
pcm0: <Realtek ALC256 (Internal Analog)> (play/rec) default
pcm1: <Realtek ALC256 (Front Analog Headphones)> (play)
No devices installed from userspace.
Comment 8 Dmitry Lukhtionov 2024-09-12 09:36:36 UTC
SOLVED:

# mixer -a
pcm0:mixer: <Realtek ALC256 (Internal Analog)> on hdaa0 (play/rec) (default)
    vol       = 1.00:1.00     pbk
    pcm       = 0.22:0.22     pbk
    rec       = 0.37:0.37     pbk
    ogain     = 1.00:1.00     pbk
    monitor   = 0.67:0.67     rec src
pcm1:mixer: <Realtek ALC256 (Front Analog Headphones)> on hdaa0 (play)
    vol       = 0.91:0.91     pbk
    pcm       = 1.00:1.00     pbk
    ogain     = 1.00:1.00     pbk

# mixer pcm.volume=1.0
pcm.volume: 0.22:0.22 -> 1.00:1.00
pcm0:mixer: <Realtek ALC256 (Internal Analog)> on hdaa0 (play/rec) (default)
    vol       = 1.00:1.00     pbk
    pcm       = 1.00:1.00     pbk
    rec       = 0.37:0.37     pbk
    ogain     = 1.00:1.00     pbk
    monitor   = 0.67:0.67     rec src