Date: Sat, 14 May 2005 00:52:37 GMT From: "Emmanuel Brun d'Aubignosc" <eba@upsylon.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/81000: Via 8235 sound card worked great with FreeBSD 5.3 but doesn't work with 5.4 Message-ID: <200505140052.j4E0qbFo021104@www.freebsd.org> Resent-Message-ID: <200505140100.j4E10DxY094535@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 81000 >Category: kern >Synopsis: Via 8235 sound card worked great with FreeBSD 5.3 but doesn't work with 5.4 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 14 01:00:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Emmanuel Brun d'Aubignosc >Release: 5.3 and 5.4 >Organization: Upsylon >Environment: FreeBSD amd64.localdomain 5.3-RELEASE-p14 FreeBSD 5.3-RELEASE-p14 #23: Sat May 14 01 >Description: I'm running FeeBSD 5.3 i386 on an AMD64 laptop. The sound (and everything else except the wifi) worked great until I upgraded to CURRENT or 5.4. I use the snd_via8233 driver which is, according to the Hardware Notes, also compatible with the via 8235 chipset. With 5.4 each time I tried to play a sound, I got a beeeeep instead until I stop it. I also got the following error on my console: pcm0:play:1: play interrupt timeout, channel dead In both cases I first tried with the GENERIC kernel to which I added a couple of options to support the sound, GEOM encryption. I also disabled the sound option in the kernel and used "kldload snd_driver" instead. The result was the same (did not work). The first time I did a full upgrade (kernel, world, mergerman...). Then I downgraded back to 5.3. Later I retried but only installed the new kernel(s) (make buildkernel KERNCONF=MYKERNEL, make installkernel...). I also tried to install 5.4 but compiled with via8233.c from 5.3. The result was exactly the same (did not work). Sometimes the IRQ of the sound card is 10, sometimes 22 regardless of which kernel is used. Here are the options I add at the bottom of the GENERIC kernel conf to make MYKERNEL: ################################## # disk encryption options GEOM_BDE # sound device sound device "snd_via8233" # NDIS WIFI support # this is to enable the wrapper for win drivers # it causes the system to crash, #options NDISAPI #device ndis #device wlan # CD RW scsi interface device atapicam device scbus device cd device pass # FireWall options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT options IPFIREWALL_DEFAULT_TO_ACCEPT Here are the system messages for 5.4 (sound does not work) ********************************************************** ********************************************************** cat /dev/sndstat (kernel 5.4): ****************************** FreeBSD Audio Driver (newpcm) Installed devices: pcm0: <VIA VT8235> at io 0x1000 irq 10 kld snd_via8233 (5p/1r/4v channels duplex default) dmesg | grep pcm (kernel 5.4): ****************************** pcm0: <VIA VT8235> port 0x1000-0x10ff irq 10 at device 17.5 on pci0 pcm0: <Unknown AC97 Codec (id = 0x414c4752)> pcm0:play:1: play interrupt timeout, channel dead pcm0:play:1: play interrupt timeout, channel dead pcm0:play:1: play interrupt timeout, channel dead Full dmesg (kernel 5.4) *********************** Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-RELEASE-p1 #1: Sat May 14 01:07:09 UTC 2005 eba@amd64.localdomain:/usr/obj/usr/src_5.4/sys/MYKERNEL ACPI APIC Table: <PTLTD APIC > Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Mobile AMD Athlon(tm) 64 Processor 3000+ (1804.10-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0xf4a Stepping = 10 Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> AMD Features=0xe0500000<NX,AMIE,LM,DSP,3DNow!> real memory = 535756800 (510 MB) avail memory = 514600960 (490 MB) MADT: Forcing active-low polarity and level trigger for SCI ioapic0 <Version 0.3> irqs 0-23 on motherboard npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <Arima 161Fh> on motherboard acpi0: Power Button (fixed) acpi_ec0: <Embedded Controller: GPE 0x1> port 0x66,0x62 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: <ACPI CPU (2 Cx states)> on acpi0 acpi_button0: <Power Button> on acpi0 acpi_button1: <Sleep Button> on acpi0 acpi_lid0: <Control Method Lid Switch> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 ACPI link \\_SB_.PCI0.PIB_.ALKA has invalid initial irq 9, ignoring ACPI link \\_SB_.PCI0.PIB_.ALKB has invalid initial irq 11, ignoring pci0: <ACPI PCI bus> on pcib0 agp0: <VIA 8385 host to PCI bridge> mem 0xe0000000-0xefffffff at device 0.0 on pci0 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 pci1: <ACPI PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) cbb0: <ENE CB1410 PCI-CardBus Bridge> mem 0xffe7f000-0xffe7ffff at device 10.0 on pci0 cardbus0: <CardBus bus> on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pci0: <network> at device 12.0 (no driver attached) uhci0: <VIA 83C572 USB controller> port 0x1c80-0x1c9f at device 16.0 on pci0 usb0: <VIA 83C572 USB controller> on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: <VIA 83C572 USB controller> port 0x1ca0-0x1cbf at device 16.1 on pci0 usb1: <VIA 83C572 USB controller> on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: <VIA 83C572 USB controller> port 0x1cc0-0x1cdf at device 16.2 on pci0 usb2: <VIA 83C572 USB controller> on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: <serial bus, USB> at device 16.3 (no driver attached) isab0: <PCI-ISA bridge> at device 17.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 8235 UDMA133 controller> port 0x1ce0-0x1cef,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: <multimedia, audio> at device 17.5 (no driver attached) pci0: <simple comms> at device 17.6 (no driver attached) vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0x1800-0x18ff mem 0xd0002c00-0xd0002cff irq 23 at device 18.0 on pci0 miibus0: <MII bus> on vr0 ukphy0: <Generic IEEE 802.3u media interface> on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:03:25:14:04:6c fwohci0: <VIA Fire II (VT6306)> port 0x1c00-0x1c7f mem 0xd0002000-0xd00027ff irq 19 at device 19.0 on pci0 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:03:25:21:36:00:d4:87 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: <IEEE1394(FireWire) bus> on fwohci0 fwe0: <Ethernet over FireWire> on firewire0 if_fwe0: Fake Ethernet address: 02:03:25:00:d4:87 fwe0: Ethernet address: 02:03:25:00:d4:87 fwe0: if_start running deferred for Giant sbp0: <SBP-2/SCSI over FireWire> on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 acpi_acad0: <AC Adapter> on acpi0 acpi_cmbat0: <Control Method Battery> on acpi0 orm0: <ISA Option ROMs> at iomem 0xdc000-0xdffff,0xdb000-0xdbfff,0xc0000-0xcffff on isa0 pmtimer0 on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1804104424 Hz quality 800 Timecounters tick every 10.000 msec ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to accept, logging limited to 1 packets/entry by default ad0: 76351MB <SAMSUNG MP0804H/UE100-11> [155127/16/63] at ata0-master UDMA100 acd0: DVDR <PIONEER DVD-RW DVR-K14L/1.00> at ata1-master UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: <PIONEER DVD-RW DVR-K14L 1.00> Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [1277216 x 2048 byte records] Mounting root from ufs:/dev/ad0s4a pcm0: <VIA VT8235> port 0x1000-0x10ff irq 10 at device 17.5 on pci0 pcm0: <Unknown AC97 Codec (id = 0x414c4752)> pcm0:play:1: play interrupt timeout, channel dead pcm0:play:1: play interrupt timeout, channel dead pcm0:play:1: play interrupt timeout, channel dead Here are the system messages for 5.3 (sound works) ************************************************** ************************************************** cat /dev/sndstat (kernel 5.3): ****************************** FreeBSD Audio Driver (newpcm) Installed devices: pcm0: <VIA VT8235> at io 0x1000 irq 22 (5p/1r/4v channels duplex default) dmesg | grep pcm (kernel 5.3): ****************************** pcm0: <VIA VT8235> port 0x1000-0x10ff irq 22 at device 17.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: <Unknown AC97 Codec (id = 0x414c4752)> Full dmesg (kernel 5.3) *********************** Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.3-RELEASE-p14 #23: Sat May 14 01:36:46 UTC 2005 eba@amd64.localdomain:/usr/obj/usr/src/sys/MYKERNEL Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Mobile AMD Athlon(tm) 64 Processor 3000+ (1804.11-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0xf4a Stepping = 10 Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> AMD Features=0xe0500000<NX,AMIE,LM,DSP,3DNow!> real memory = 535756800 (510 MB) avail memory = 514596864 (490 MB) ACPI APIC Table: <PTLTD APIC > MADT: Forcing active-low polarity and level trigger for SCI ioapic0 <Version 0.3> irqs 0-23 on motherboard npx0: [FAST] npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <Arima 161Fh> on motherboard acpi0: Power Button (fixed) acpi_ec0: <Embedded Controller: GPE 0x1> port 0x66,0x62 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: <ACPI CPU (2 Cx states)> on acpi0 acpi_button0: <Power Button> on acpi0 acpi_button1: <Sleep Button> on acpi0 acpi_lid0: <Control Method Lid Switch> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 ACPI link \\_SB_.PCI0.PIB_.ALKA has invalid initial irq 9, ignoring ACPI link \\_SB_.PCI0.PIB_.ALKB has invalid initial irq 11, ignoring ACPI link \\_SB_.PCI0.PIB_.ALKC has invalid initial irq 10, ignoring ACPI link \\_SB_.PCI0.PIB_.ALKD has invalid initial irq 10, ignoring pci0: <ACPI PCI bus> on pcib0 agp0: <VIA 8385 host to PCI bridge> mem 0xe0000000-0xefffffff at device 0.0 on pci0 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.AGP_ - AE_NOT_FOUND pci1: <ACPI PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) cbb0: <ENE CB1410 PCI-CardBus Bridge> mem 0xffe7f000-0xffe7ffff at device 10.0 on pci0 cardbus0: <CardBus bus> on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pci0: <network> at device 12.0 (no driver attached) uhci0: <VIA 83C572 USB controller> port 0x1c80-0x1c9f at device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: <VIA 83C572 USB controller> on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: <VIA 83C572 USB controller> port 0x1ca0-0x1cbf at device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: <VIA 83C572 USB controller> on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: <VIA 83C572 USB controller> port 0x1cc0-0x1cdf at device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: <VIA 83C572 USB controller> on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: <serial bus, USB> at device 16.3 (no driver attached) isab0: <PCI-ISA bridge> at device 17.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 8235 UDMA133 controller> port 0x1ce0-0x1cef,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pcm0: <VIA VT8235> port 0x1000-0x10ff irq 22 at device 17.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: <Unknown AC97 Codec (id = 0x414c4752)> pci0: <simple comms> at device 17.6 (no driver attached) vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0x1800-0x18ff mem 0xd0002c00-0xd0002cff irq 23 at device 18.0 on pci0 miibus0: <MII bus> on vr0 ukphy0: <Generic IEEE 802.3u media interface> on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:03:25:14:04:6c fwohci0: <VIA Fire II (VT6306)> port 0x1c00-0x1c7f mem 0xd0002000-0xd00027ff irq 19 at device 19.0 on pci0 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:03:25:21:36:00:d4:87 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: <IEEE1394(FireWire) bus> on fwohci0 fwe0: <Ethernet over FireWire> on firewire0 if_fwe0: Fake Ethernet address: 02:03:25:00:d4:87 fwe0: Ethernet address: 02:03:25:00:d4:87 fwe0: if_start running deferred for Giant sbp0: <SBP-2/SCSI over FireWire> on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 acpi_acad0: <AC Adapter> on acpi0 acpi_cmbat0: <Control Method Battery> on acpi0 orm0: <ISA Option ROMs> at iomem 0xdc000-0xdffff,0xdb000-0xdbfff,0xc0000-0xcffff on isa0 pmtimer0 on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1804105630 Hz quality 800 Timecounters tick every 10.000 msec ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to accept, logging limited to 1 packets/entry by default cpu0: Performance states changed ad0: 76351MB <SAMSUNG MP0804H/UE100-11> [155127/16/63] at ata0-master UDMA100 acd0: DVDR <PIONEER DVD-RW DVR-K14L/1.00> at ata1-master UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: <PIONEER DVD-RW DVR-K14L 1.00> Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [1277216 x 2048 byte records] Mounting root from ufs:/dev/ad0s4a >How-To-Repeat: Ugrade to 5.4RCx, 5.4 release or current. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505140052.j4E0qbFo021104>