Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jun 2004 08:09:52 +0800
From:      Khairil Yusof <kaeru@pd.jaring.my>
To:        freebsd-current@FreeBSD.org
Subject:   pci device_attach problems with pcm (CS4236)
Message-ID:  <1086221391.1744.9.camel@wolverine>

next in thread | raw e-mail | index | archive | help

--=-bT512aNmBa+y4yzF72af
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

pci sound card is trying to attach multiple times and failing, and
finally attaches as pcm4 not pcm0.

This behaviour showed up on a kernel built about 2 days ago. There is a
complete dmesg futher below.

pcm0: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm0 attach returned 6
pcm1: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm1 attach returned 6
pcm2: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm2 attach returned 6
pcm3: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm3 attach returned 6
pcm0: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm0 attach returned 6
pcm1: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm1 attach returned 6
pcm2: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm2 attach returned 6
pcm3: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm3 attach returned 6
orm0: <Option ROMs> at iomem
0xcc800-0xccfff,0xc8000-0xcc7ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
pcm4: <CS423x-PCI> at port 0x220-0x22f,0x388-0x38b,0x534-0x537 irq 5 drq
0,1 on isa0
pcm4: [GIANT-LOCKED]


--- full dmesg ---

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.2-CURRENT #16: Wed Jun  2 22:45:46 MYT 2004
    root@wolverine.cerebro.net.my:/usr/obj/usr/src/sys/WOLVERINE
Preloaded elf kernel "/boot/kernel/kernel" at 0xc092b000.
Preloaded elf module "/boot/kernel/splash_bmp.ko" at 0xc092b244.
Preloaded splash_image_data "/boot/splash.bmp" at 0xc092b2f4.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc092b344.
ACPI APIC Table: <IBM    CDTPWSNU>
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium III/Pentium III Xeon/Celeron (449.23-MHz 686-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0x672  Stepping =3D 2

Features=3D0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,M=
CA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  =3D 536858624 (511 MB)
avail memory =3D 515674112 (491 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  1
 cpu1 (AP): APIC ID:  0
ioapic0 <Version 1.1> irqs 0-23 on motherboard
random: <entropy source, Software, Yarrow>
Pentium Pro MTRR support enabled
VESA: v3.0, 32768k memory, flags:0x1, mode table:0xc00c5477 (c0005477)
VESA: Matrox Graphics Inc.
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <IBM CDTPWSNU> on motherboard
acpi0: [GIANT-LOCKED]
pcibios: BIOS version 2.10
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xfd08-0xfd0b on acpi0
pcm0: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm0 attach returned 6
pcm1: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm1 attach returned 6
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem
0xf0000000-0xf3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 16
pci1: <display, VGA> at device 0.0 (no driver attached)
fxp0: <Intel 82558 Pro/100 Ethernet> port 0x70c0-0x70df mem
0xf7500000-0xf75fffff,0xefffe000-0xefffefff irq 18 at device 2.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:60:94:eb:5f:59
fxp0: [GIANT-LOCKED]
ahc0: <Adaptec aic7895 Ultra SCSI adapter> port 0x7400-0x74ff mem
0xf74fe000-0xf74fefff irq 20 at device 3.0 on pci0
ahc0: [GIANT-LOCKED]
aic7895C: Ultra Wide Channel A, SCSI Id=3D7, 32/253 SCBs
ahc1: <Adaptec aic7895 Ultra SCSI adapter> port 0x7800-0x78ff mem
0xf74ff000-0xf74fffff irq 20 at device 3.1 on pci0
ahc1: [GIANT-LOCKED]
aic7895C: Ultra Wide Channel B, SCSI Id=3D7, 32/253 SCBs
isab0: <PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port
0xfff0-0xffff,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xff00-0xff1f irq
19 at device 4.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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
ulpt0: Hewlett-Packard PSC 2100 Series, rev 2.00/1.00, addr 2, iclass
7/1
ulpt0: using bi-directional mode
pci0: <bridge, PCI-unknown> at device 4.3 (no driver attached)
fxp1: <Intel 82558 Pro/100 Ethernet> port 0x70e0-0x70ff mem
0xf7600000-0xf76fffff,0xeffff000-0xefffffff irq 18 at device 14.0 on
pci0
miibus1: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:60:94:f0:4c:77
fxp1: [GIANT-LOCKED]
pcm2: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm2 attach returned 6
pcm3: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm3 attach returned 6
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
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
pcm0: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm0 attach returned 6
pcm1: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm1 attach returned 6
pcm2: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm2 attach returned 6
pcm3: <CS4236> port 0x530-0x537 on acpi0
device_attach: pcm3 attach returned 6
orm0: <Option ROMs> at iomem
0xcc800-0xccfff,0xc8000-0xcc7ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
pcm4: <CS423x-PCI> at port 0x220-0x22f,0x388-0x38b,0x534-0x537 irq 5 drq
0,1 on isa0
pcm4: [GIANT-LOCKED]
Timecounters tick every 1.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled,
default to deny, logging limited to 100 packets/entry by default
ad0: 13031MB <FUJITSU MPE3136AT> [26476/16/63] at ata0-master UDMA33
ad1: 76319MB <WDC WD800LB-55DNA0> [155061/16/63] at ata0-slave UDMA33
acd0: CDROM <CRD-8322B> at ata1-master PIO4
Waiting 5 seconds for SCSI devices to settle
ahc0: Timedout SCBs already complete. Interrupts may not be functioning.
ahc0: Timedout SCBs already complete. Interrupts may not be functioning.
ahc1: Timedout SCBs already complete. Interrupts may not be functioning.
ahc1: Timedout SCBs already complete. Interrupts may not be functioning.
da0 at ahc1 bus 0 target 1 lun 0
da0: <UNISYS U0805 M1606SAU 6704> Fixed Direct Access SCSI-2 device=20
da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing
Enabled
da0: 1041MB (2131992 512 byte sectors: 255H 63S/T 132C)
SMP: AP CPU #1 Launched!
cd0 at ata1 bus 0 target 0 lun 0
cd0: <LG CD-ROM CRD-8322B 1.06> Removable CD-ROM SCSI-0 device=20
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/ad0s1a


--=-bT512aNmBa+y4yzF72af
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAvmxPDAqnLW/+/X8RAjoPAKCGvYhxvENXPum6SXP1rT3dJUFZZACdHxtm
nFeeEAUlWutZhBhKaHOzTOc=
=0OHR
-----END PGP SIGNATURE-----

--=-bT512aNmBa+y4yzF72af--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1086221391.1744.9.camel>