Bug 229190 - hdac0: Command timeout on address 2 and headphone audio too low
Summary: hdac0: Command timeout on address 2 and headphone audio too low
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-multimedia mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-20 21:06 UTC by Danilo Egea Gondolfo
Modified: 2019-02-12 01:57 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danilo Egea Gondolfo freebsd_committer 2018-06-20 21:06:23 UTC
Hello, I'm seeing these messages bellow in my system.

Besides these messages, the audio work pretty well. Except when I use headphones (sysctl hw.snd.default_unit=1).
With headphones it is very low. If I increase the volume on the headphone the audio just get terrible, like if it's not getting enough power from the jack.

$ dmesg | grep hda 
hdac0: <Intel Kabylake-LP HDA Controller> mem 0xb4320000-0xb4323fff,0xb4310000-0xb431ffff irq 16 at device 31.3 on pci0
hdacc0: <Realtek ALC255 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC255 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC255 (Internal Analog)> at nid 20 and 18 on hdaa0
pcm1: <Realtek ALC255 (Front Analog Headphones)> at nid 33 on hdaa0
hdacc1: <Intel Kabylake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Kabylake Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Kabylake (HDMI/DP 8ch)> at nid 3 on hdaa1
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdac0: Command timeout on address 2
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdac0: Command timeout on address 2
hdac0: Command timeout on address 2
hdac0: Command timeout on address 2
hdac0: Command timeout on address 2
hdac0: Command timeout on address 2
...

More information:

hdac0@pci0:0:31:3:	class=0x040300 card=0x108f1025 chip=0x9d718086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP HD Audio'
    class      = multimedia
    subclass   = HDA


$ cat /dev/sndstat 
Installed devices:
pcm0: <Realtek ALC255 (Internal Analog)> (play/rec)
pcm1: <Realtek ALC255 (Front Analog Headphones)> (play) default
pcm2: <Intel Kabylake (HDMI/DP 8ch)> (play)
No devices installed from userspace.

$ mixer 
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to 100:100
Mixer igain    is currently set to 100:100
Mixer ogain    is currently set to 100:100

$ uname -a
FreeBSD capeta 12.0-CURRENT FreeBSD 12.0-CURRENT #23 r334923: Sun Jun 10 10:04:39 -03 2018     danilo@capeta:/usr/obj/usr/src/amd64.amd64/sys/CAPETA  amd64
Comment 1 Maxim Usatov 2018-11-19 15:46:28 UTC
I am seeing these messages too, on Thinkpad X1 Yoga (1st Gen). The system locks up for a few seconds, even mouse pointer is not moving when this happens:

...
Nov 19 16:43:45 freebsd kernel: hdac0: Command timeout on address 2
Nov 19 16:43:45 freebsd last message repeated 60 times
...

This happens once every 10-15 minutes on some days. On some days it happens once every few hours. Appears completely random. By the way, I don't have the sound volume problem. 

FreeBSD freebsd.my.domain 11.2-RELEASE-p2 FreeBSD 11.2-RELEASE-p2 #0: Tue Aug 14 21:45:40 UTC 2018     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
Comment 2 Brad Ackerman 2018-12-25 22:51:58 UTC
Also seeing this behavior, 12.0-RELEASE on an X1C5.

hdac0: <Intel Kabylake-LP HDA Controller> mem 0xe2340000-0xe2343fff,0xe2330000-0xe233ffff at device 31.3 on pci0
hdacc0: <Conexant (0x2008) HDA CODEC> at cad 0 on hdac0
hdaa0: <Conexant (0x2008) Audio Function Group> at nid 1 on hdacc0
pcm0: GEOM_ELI<Conexant (0x2008) (Analog)> at nid 23 and 26 on hdaa0
pcm1: <Conexant (0x2008) (Right Analog Headphones)> at nid 22 on hdaa0
hdacc1: <Intel Kabylake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Kabylake Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Kabylake (HDMI/DP 8ch)> at nid 3 on hdaa1
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdac0: Command timeout on address 2
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdacc1: Unexpected unsolicited response with tag 63: ffffffff
hdac0: Command timeout on address 2
hdac0: Command timeout on address 2

(and hundreds more of the last line)