driver not attaching to Intel HDA on FreeBSD 6.0-RELEASE

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

driver not attaching to Intel HDA on FreeBSD 6.0-RELEASE

Postby Aphax » Thu Feb 23, 2006 1:06 am

Hello. Today I found out FreeBSD has no support for my (ASUS A6Vc laptop integrated) Intel High Definition Audio device. I decided to give your OSS a try, but unfortunately without success. First some info on my hardware:

From pciconf -lv:
none0@pci0:27:0: class=0x040300 card=0x11731043 chip=0x26688086 rev=0x04 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW Intel High DefiNition Audio Controller'
class = multimedia


From scanpci -v:
pci bus 0x0000 cardnum 0x1b function 0x00: vendor 0x8086 device 0x2668
Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller
CardVendor 0x1043 card 0x1173 (ASUSTeK Computer Inc., Card unknown)
STATUS 0x0010 COMMAND 0x0006
CLASS 0x04 0x03 0x00 REVISION 0x04
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x08
BASE0 0x00000000febf8004 addr 0x00000000febf8000 MEM 64BIT
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x10
BYTE_0 0x03 BYTE_1 0x00 BYTE_2 0x00 BYTE_3 0x00


Installation (running oss-install) detects the Intel High Definition Audio device, but executing soundon results in the following output:

...


Hmm, nevermind it suddenly works o.O The first two times I tried this it wouldn't attach and there was nothing in /dev/sndstat. I' ll update it post if I still encounter any troubles.

EDIT: See comment below for details of an instance where it failed to load
Last edited by Aphax on Thu Feb 23, 2006 3:09 am, edited 2 times in total.
Aphax
New Member
 
Posts: 4
Joined: Thu Feb 23, 2006 12:50 am
Location: Netherlands

Postby Aphax » Thu Feb 23, 2006 3:02 am

Ok, it seems it doesn't always attach succesfully. Here's what I get when it fails:

Output during bootup (I have it started through rc.local):
hdaudio: RIRB timeout
hdaudio: Codec attach failed (-5)
oss: Probing the hardware for Intel High Definition Audio (Azalia) controller failed.
Warning: Some of the devices failed to initialize.
See /usr/local/lib/oss/logs/soundon.log for more info.
.
mixer: SOUND_MIXER_READ_DEVMASK: Device not configured
mixer: SOUND_MIXER_READ_DEVMASK: Device not configured
mixer: /dev/mixer1: Device not configured
mixer: /dev/mixer2: Device not configured
mixer: /dev/mixer3: Device not configured
mixer: /dev/mixer4: Device not configured
mixer: /dev/mixer5: Device not configured
mixer: /dev/mixer6: Device not configured
mixer: /dev/mixer7: Device not configured


Here's what's in my soundon.log:
Starting OSS/FreeBSD 3.99.4a Thu Feb 23 03:52:44 CET 2006
3:52AM up 17 secs, 0 users, load averages: 1.43, 0.36, 0.13
======= config =====
# Use soundconf to edit this file.
/SECUREAUDIO OFF
/IRQEXCLUDE 3 4
/DMAEXCLUDE 2
-PCI26688086 #Intel High Definition Audio (ICH6)
HDAUDIO ON
#NEEDS_MMPCI
====== pnpres.dat ========
====================
Warning: Some of the devices failed to initialize
OSS/FreeBSD 3.99.4a (C) 4Front Technologies 1996-2006

License serial number: E00000008
**** UNREGISTERED VERSION ****

Drivers: ALL
License will expire after: 06/2006


*** Unregistered version ***

Build: 200602162117
Kernel: FreeBSD 6.0-RELEASE-p4 #0: Tue Feb 21 04:39:43 CET 2006
root@aphax-laptop.nieser.local:/usr/obj/usr/src/sys/APHAX-LAPTOP


Card config:
(Intel High Definition Audio (Azalia) controller at 0xfebf8000 irq 16)

Audio devices:

Synth devices:

Midi devices:

Mixers:
========== dmesg printout follows ========
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 6.0-RELEASE-p4 #0: Tue Feb 21 04:39:43 CET 2006
root@aphax-laptop.nieser.local:/usr/obj/usr/src/sys/APHAX-LAPTOP
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1.73GHz (1729.01-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8
Features=0xafe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE>
Features2=0x180<EST,TM2>
AMD Features=0x100000<NX>
real memory = 1073479680 (1023 MB)
avail memory = 1037410304 (989 MB)
ACPI APIC Table: <A M I OEMAPIC >
ioapic0 <Version 2.0> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
acpi_ec0: <Embedded Controller: GPE 0x1c> port 0x62,0x66 on acpi0
pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 11 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 4 on acpi0
pci_link3: <ACPI PCI Link LNKD> irq 6 on acpi0
pci_link4: <ACPI PCI Link LNKE> irq 5 on acpi0
pci_link5: <ACPI PCI Link LNKF> irq 0 on acpi0
pci_link6: <ACPI PCI Link LNKG> irq 5 on acpi0
pci_link7: <ACPI PCI Link LNKH> irq 5 on acpi0
acpi0: reservation of fed20000, 70000 (3) failed
acpi0: reservation of ffb00000, 100000 (3) failed
acpi0: reservation of fec00000, 1000 (3) failed
acpi0: reservation of fee00000, 1000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_perf0: <ACPI CPU Frequency Control> on cpu0
acpi_perf0: failed in PERF_STATUS attach
device_attach: acpi_perf0 attach returned 6
acpi_perf0: <ACPI CPU Frequency Control> on cpu0
acpi_perf0: failed in PERF_STATUS attach
device_attach: acpi_perf0 attach returned 6
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci3: <ACPI PCI bus> on pcib1
nvidia0: <GeForce Go 6200> mem 0xfd000000-0xfdffffff,0xc0000000-0xcfffffff,0xfc000000-0xfcffffff irq 16 at device 0.0 on pci3
nvidia0: [GIANT-LOCKED]
pci0: <multimedia> at device 27.0 (no driver attached)
uhci0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> port 0xe480-0xe49f irq 23 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> port 0xe800-0xe81f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> port 0xe880-0xe89f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> port 0xec00-0xec1f irq 16 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfebffc00-0xfebfffff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <EHCI (generic) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ugen0: vendor 0x0402 USB2.0 Camera, rev 2.00/1.00, addr 2
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib2
skc0: <Marvell Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfa9f8000-0xfa9fbfff irq 20 at device 0.0 on pci1
skc0: Marvell Yukon Lite Gigabit Ethernet rev. (0x9)
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
sk0: Ethernet address: 00:13:d4:d8:ac:29
miibus0: <MII bus> on sk0
e1000phy0: <Marvell 88E1000 Gigabit PHY> on miibus0
e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
cbb0: <RF5C476 PCI-CardBus Bridge> at device 1.0 on pci1
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
fwohci0: <Ricoh R5C552> mem 0xfa9fe000-0xfa9fe7ff irq 18 at device 1.1 on pci1
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:e0:18:00:03:3c:4b:fa
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
pci1: <base peripheral> at device 1.2 (no driver attached)
pci1: <base peripheral> at device 1.3 (no driver attached)
iwi0: <Intel(R) PRO/Wireless 2200BG> mem 0xfa9ff000-0xfa9fffff irq 22 at device 3.0 on pci1
iwi0: Ethernet address: 00:15:00:2b:20:ab
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH6 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 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
sio0: configured irq 3 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <Generic IRDA-compatible device> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0
sio0: type 16550A
ppc0: <ECP parallel printer port> port 0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/15 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcefff 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
ums0: Logitech Optical USB Mouse, rev 2.00/3.40, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
Timecounter "TSC" frequency 1729007747 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 95396MB <FUJITSU MHV2100AT 00000096> at ata0-master UDMA100
acd0: DVDR <MATSHITADVD-RAM UJ-841S/1.00> at ata0-slave UDMA33
Trying to mount root from ufs:/dev/ad0s2a
arp: 192.168.1.1 is on sk0 but got reply from 00:04:e2:e2:29:0e on iwi0
arp: 192.168.1.1 is on sk0 but got reply from 00:04:e2:e2:29:0e on iwi0
arp: 192.168.1.1 is on sk0 but got reply from 00:04:e2:e2:29:0e on iwi0
arp: 192.168.1.1 is on sk0 but got reply from 00:04:e2:e2:29:0e on iwi0
hdaudio: RIRB timeout
hdaudio: Codec attach failed (-5)
oss: Probing the hardware for Intel High Definition Audio (Azalia) controller failed.
Aphax
New Member
 
Posts: 4
Joined: Thu Feb 23, 2006 12:50 am
Location: Netherlands

Postby dev » Thu Feb 23, 2006 3:15 am

Aphax wrote:Ok, it seems it doesn't always attach succesfully. Here's what I get when it fails:

Output during bootup (I have it started through rc.local):
hdaudio: RIRB timeout
hdaudio: Codec attach failed (-5)
oss: Probing the hardware for Intel High Definition Audio (Azalia) controller failed.
Warning: Some of the devices failed to initialize.
See /usr/local/lib/oss/logs/soundon.log for more info.
.
mixer: SOUND_MIXER_READ_DEVMASK: Device not configured
mixer: SOUND_MIXER_READ_DEVMASK: Device not configured
mixer: /dev/mixer1: Device not configured
mixer: /dev/mixer2: Device not configured
mixer: /dev/mixer3: Device not configured
mixer: /dev/mixer4: Device not configured
mixer: /dev/mixer5: Device not configured
mixer: /dev/mixer6: Device not configured
mixer: /dev/mixer7: Device not configured


Here's what's in my soundon.log:



Hi,

nvidia0: <GeForce Go 6200> mem 0xfd000000-0xfdffffff,0xc0000000-0xcfffffff,0xfc000000-0xfcffffff irq 16 at device 0.0 on pci3

uhci3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> port 0xec00-0xec1f irq 16 at device 29.3 on pci0 uhci3: [GIANT-LOCKED]

(Intel High Definition Audio (Azalia) controller at 0xfebf8000 irq 16)

are currently on the same interrupt 16

Try this:

1) Disable USB in the BIOS (if you aren't using USB devices)
2) Set the /boot/loader.conf file to use nvidia="NO"

reboot and run soundon and tell us if that works. If that works, then we
have know that there is some kind of issue with HDAaudio and sharing interrupts.

We are working to fix this problem for FreeBSD.


regards
Dev Mazumdar
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby Aphax » Thu Feb 23, 2006 5:05 am

Disabling USB and nvidia seems to have solved the problem, thanks. I tested it by running soundon/soundoff 20+ times. Before disabling USB and nvidia it failed 4 out of 5 times to load, after disabling them it worked flawlessly.

Ofcourse I do want to use USB and nvidia so I eagerly await the next release of OSS, thanks for looking into this :)
Aphax
New Member
 
Posts: 4
Joined: Thu Feb 23, 2006 12:50 am
Location: Netherlands


Return to BSD

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest