Bug 194806 - [sound] [snd_hda]Creative SB0880 X-Fi: sometimes driver can't see the device
Summary: [sound] [snd_hda]Creative SB0880 X-Fi: sometimes driver can't see the device
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.1-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-04 09:20 UTC by Denis Akiyakov
Modified: 2015-12-18 18:10 UTC (History)
1 user (show)

See Also:


Attachments
system info (6.60 KB, text/plain)
2014-11-04 09:20 UTC, Denis Akiyakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Akiyakov 2014-11-04 09:20:54 UTC
Created attachment 149019 [details]
system info

Hello, I've already created today one report about my sound device (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194804), but besides there is still another bug, which I want to explain.

You can find my system specs in attachment.

From the time I bought this device (Creative SB0880 X-Fi) it always was a russian roulette with device nice definition on systems load. In older versions of FreeBSD (before 10.1) you could get a loading screen without any warnings or you could get something like: "pcm0: chn_write(): pcm0:play:dsp0.p1: play interrupt timeout, channel dead", and in that case device was not working, so, sometimes I had to reboot system many times to get sound card works.

For some time I did not notice this error more (play interrupt timeout, channel dead), but driver still can't see the device  sometimes. Bellow I show what happens on load now:

# pciconf -lv -a hdac2
hdac2@pci0:6:0:0:       class=0x040300 card=0x00421102 chip=0x000b1102 rev=0x04 hdr=0x00
    vendor     = 'Creative Labs'
    device     = 'X-Fi Titanium series [EMU20k2]'
    class      = multimedia
    subclass   = HDA

********************************************************************************************
dmesg | grep 'hdac2'  ### device works fine in this case
********************************************************************************************

hdac2: <Generic (0x000b1102) HDA Controller> mem 0xfbff0000-0xfbffffff,0xfbc00000-0xfbdfffff,0xfa000000-0xfaffffff irq 17 at device 0.0 on pci6
hdacc5: <Creative SB0880 X-Fi HDA CODEC> at cad 1 on hdac2
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1



********************************************************************************************
dmesg | grep 'hda'  ### device works fine in this case
********************************************************************************************

hdac0: <NVIDIA MCP78 HDA Controller> mem 0xf5e78000-0xf5e7bfff irq 22 at device 7.0 on pci0
hdac1: <NVIDIA GT104 HDA Controller> mem 0xf9ffc000-0xf9ffffff irq 17 at device 0.1 on pci4
hdac2: <Generic (0x000b1102) HDA Controller> mem 0xfbff0000-0xfbffffff,0xfbc00000-0xfbdfffff,0xfa000000-0xfaffffff irq 17 at device 0.0 on pci6
hdacc0: <VIA VT1708S_0 HDA CODEC> at cad 0 on hdac0
hdaa0: <VIA VT1708S_0 Audio Function Group> at nid 1 on hdacc0
pcm0: <VIA VT1708S_0 (Analog 7.1+HP/2.0)> at nid 28,34,25,35,29 and 26,30,27 on hdaa0
pcm1: <VIA VT1708S_0 (Digital)> at nid 32 on hdaa0
pcm2: <VIA VT1708S_0 (Rear-panel Digital)> at nid 33 on hdaa0
hdacc1: <NVIDIA (0x0012) HDA CODEC> at cad 0 on hdac1
hdaa1: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc1
pcm3: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa1
hdacc2: <NVIDIA (0x0012) HDA CODEC> at cad 1 on hdac1
hdaa2: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc2
pcm4: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa2
hdacc3: <NVIDIA (0x0012) HDA CODEC> at cad 2 on hdac1
hdaa3: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc3
pcm5: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa3
hdacc4: <NVIDIA (0x0012) HDA CODEC> at cad 3 on hdac1
hdaa4: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc4
pcm6: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa4
hdacc5: <Creative SB0880 X-Fi HDA CODEC> at cad 1 on hdac2
hdaa5: <Creative SB0880 X-Fi Audio Function Group> at nid 1 on hdacc5
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=0 entries=127 found=0 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=0 entries=127 found=1 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=2 entries=127 found=2 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=2 entries=127 found=3 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=4 entries=127 found=4 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=4 entries=127 found=5 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=6 entries=127 found=6 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=6 entries=127 found=7 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=8 entries=127 found=8 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=8 entries=127 found=9 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=10 entries=127 found=10 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=10 entries=127 found=11 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=12 entries=127 found=12 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=12 entries=127 found=13 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=14 entries=127 found=14 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=14 entries=127 found=15 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=16 entries=127 found=16 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=16 entries=127 found=17 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=18 entries=127 found=18 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=18 entries=127 found=19 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=20 entries=127 found=20 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=20 entries=127 found=21 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=22 entries=127 found=22 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=22 entries=127 found=23 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=24 entries=127 found=24 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=24 entries=127 found=25 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=26 entries=127 found=26 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=26 entries=127 found=27 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=28 entries=127 found=28 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=28 entries=127 found=29 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=30 entries=127 found=30 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=1 index=30 entries=127 found=31 res=0x00000000
hdaa5: WARNING: nid=4 has zero cnid entnum=2 j=0 index=32 entries=127 found=32 res=0x00000000
hdaa5: Adding 0 (nid=4): Max connection reached! max=32
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=0 entries=127 found=0 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=0 entries=127 found=1 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=2 entries=127 found=2 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=2 entries=127 found=3 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=4 entries=127 found=4 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=4 entries=127 found=5 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=6 entries=127 found=6 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=6 entries=127 found=7 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=8 entries=127 found=8 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=8 entries=127 found=9 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=10 entries=127 found=10 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=10 entries=127 found=11 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=12 entries=127 found=12 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=12 entries=127 found=13 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=14 entries=127 found=14 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=14 entries=127 found=15 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=16 entries=127 found=16 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=16 entries=127 found=17 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=18 entries=127 found=18 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=18 entries=127 found=19 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=20 entries=127 found=20 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=20 entries=127 found=21 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=22 entries=127 found=22 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=22 entries=127 found=23 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=24 entries=127 found=24 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=24 entries=127 found=25 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=26 entries=127 found=26 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=26 entries=127 found=27 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=28 entries=127 found=28 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=28 entries=127 found=29 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=30 entries=127 found=30 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=1 index=30 entries=127 found=31 res=0x00000000
hdaa5: WARNING: nid=6 has zero cnid entnum=2 j=0 index=32 entries=127 found=32 res=0x00000000
hdaa5: Adding 0 (nid=6): Max connection reached! max=32
pcm7: <Creative SB0880 X-Fi (Analog 7.1+HP/2.0)> at nid 13,14,15,16,17 and 19 on hdaa5
pcm8: <Creative SB0880 X-Fi (Rear Digital)> at nid 18 and 23 on hdaa5
pcm9: <Creative SB0880 X-Fi (Front Analog Mic)> at nid 20 on hdaa5

********************************************************************************************
dmesg | grep 'hda'  ### device works fine in this case
********************************************************************************************

hdac0: <NVIDIA MCP78 HDA Controller> mem 0xf5e78000-0xf5e7bfff irq 22 at device 7.0 on pci0
hdac1: <NVIDIA GT104 HDA Controller> mem 0xf9ffc000-0xf9ffffff irq 17 at device 0.1 on pci4
hdac2: <Generic (0x000b1102) HDA Controller> mem 0xfbff0000-0xfbffffff,0xfbc00000-0xfbdfffff,0xfa000000-0xfaffffff irq 17 at device 0.0 on pci6
hdacc0: <VIA VT1708S_0 HDA CODEC> at cad 0 on hdac0
hdaa0: <VIA VT1708S_0 Audio Function Group> at nid 1 on hdacc0
pcm0: <VIA VT1708S_0 (Analog 7.1+HP/2.0)> at nid 28,34,25,35,29 and 26,30,27 on hdaa0
pcm1: <VIA VT1708S_0 (Digital)> at nid 32 on hdaa0
pcm2: <VIA VT1708S_0 (Rear-panel Digital)> at nid 33 on hdaa0
hdacc1: <NVIDIA (0x0012) HDA CODEC> at cad 0 on hdac1
hdaa1: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc1
pcm3: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa1
hdacc2: <NVIDIA (0x0012) HDA CODEC> at cad 1 on hdac1
hdaa2: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc2
pcm4: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa2
hdacc3: <NVIDIA (0x0012) HDA CODEC> at cad 2 on hdac1
hdaa3: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc3
pcm5: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa3
hdacc4: <NVIDIA (0x0012) HDA CODEC> at cad 3 on hdac1
hdaa4: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc4
pcm6: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa4
hdacc5: <Creative SB0880 X-Fi HDA CODEC> at cad 1 on hdac2
hdaa5: <Creative SB0880 X-Fi Audio Function Group> at nid 1 on hdacc5
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdaa5: WARNING: Invalid child range nid=16 index=0 j=0 entnum=4 prevcnid=0 cnid=127 res=0xffffffff
hdaa5: WARNING: Invalid child range nid=16 index=0 j=1 entnum=4 prevcnid=127 cnid=127 res=0xffffffff
hdaa5: WARNING: Invalid child range nid=16 index=0 j=2 entnum=4 prevcnid=127 cnid=127 res=0xffffffff
hdaa5: WARNING: Invalid child range nid=16 index=0 j=3 entnum=4 prevcnid=127 cnid=127 res=0xffffffff
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
pcm7: <Creative SB0880 X-Fi (Analog 5.1+HP/2.0)> at nid 13,14,15,17 and 19 on hdaa5
pcm8: <Creative SB0880 X-Fi (Rear Digital)> at nid 18 and 23 on hdaa5
pcm9: <Creative SB0880 X-Fi (Front Analog Mic)> at nid 20 on hdaa5


********************************************************************************************
dmesg | grep 'hda'  ### in this case you can see that device was NOT FOUND
********************************************************************************************

hdac0: <NVIDIA MCP78 HDA Controller> mem 0xf5e78000-0xf5e7bfff irq 22 at device 7.0 on pci0
hdac1: <NVIDIA GT104 HDA Controller> mem 0xf9ffc000-0xf9ffffff irq 17 at device 0.1 on pci4
hdac2: <Generic (0x000b1102) HDA Controller> mem 0xfbff0000-0xfbffffff,0xfbc00000-0xfbdfffff,0xfa000000-0xfaffffff irq 17 at device 0.0 on pci6
hdacc0: <VIA VT1708S_0 HDA CODEC> at cad 0 on hdac0
hdaa0: <VIA VT1708S_0 Audio Function Group> at nid 1 on hdacc0
pcm0: <VIA VT1708S_0 (Analog 7.1+HP/2.0)> at nid 28,34,25,35,29 and 26,30,27 on hdaa0
pcm1: <VIA VT1708S_0 (Digital)> at nid 32 on hdaa0
pcm2: <VIA VT1708S_0 (Rear-panel Digital)> at nid 33 on hdaa0
hdacc1: <NVIDIA (0x0012) HDA CODEC> at cad 0 on hdac1
hdaa1: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc1
pcm3: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa1
hdacc2: <NVIDIA (0x0012) HDA CODEC> at cad 1 on hdac1
hdaa2: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc2
pcm4: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa2
hdacc3: <NVIDIA (0x0012) HDA CODEC> at cad 2 on hdac1
hdaa3: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc3
pcm5: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa3
hdacc4: <NVIDIA (0x0012) HDA CODEC> at cad 3 on hdac1
hdaa4: <NVIDIA (0x0012) Audio Function Group> at nid 1 on hdacc4
pcm6: <NVIDIA (0x0012) (HDMI/DP 8ch)> at nid 5 on hdaa4
hdacc5: <Creative SB0880 X-Fi HDA CODEC> at cad 1 on hdac2
hdaa5: <Creative SB0880 X-Fi Audio Function Group> at nid 1 on hdacc5
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
hdac2: Unexpected unsolicited response from address 0: 00000000
hdac2: Command timeout on address 1
Comment 1 Marcus von Appen freebsd_committer freebsd_triage 2015-02-18 11:54:20 UTC
Updated 10.1-BETA and 10.1-RC versioned bugs to 10.1-STABLE.
Comment 2 Andrey A. Chernov freebsd_committer freebsd_triage 2015-12-18 18:05:13 UTC
I confirm this bug still exists on FreeBSD-current at the moment of this message writing.
Comment 3 Andrey A. Chernov freebsd_committer freebsd_triage 2015-12-18 18:10:34 UTC
Result of appearing this message

hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Command timeout on address 1

is that some one of input/output (rec,mic,line,pcm randomly) becomes dead until full reset.