Subject: Re: Anyone running NetBSD on an IBM ThinkPad [A|T]21?
To: Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>
From: Chuck Cranor <chuck@research.att.com>
List: port-i386
Date: 01/14/2001 23:33:52
On Mon, Jan 15, 2001 at 12:38:48PM +0900, Tatoku Ogaito wrote:
>  > the sound chip does not initialize properly if you do not cycle the 
>  > power after running Windows 2000.   if you just run BSD it is fine (at
>  > least for me).   [bug in clcs0 driver?]
 
> What does dmesg say when attaching clcs fails ?

there are two failure modes i've seen:

1:
clcs0 at pci0 dev 5 function 0: Cirrus Logic CS4280 CrystalClear Audio Interface
 (rev. 0x01)
clcs0: interrupting at irq 11
clear_fifo: fist timeout cnt=1
clear_fifo: fist timeout cnt=2
clear_fifo: fist timeout cnt=3
...
<<keeps printing this over and over... never boots... must cycle power>>


2:
clcs0 at pci0 dev 5 function 0: Cirrus Logic CS4280 CrystalClear Audio Interface
 (rev. 0x01)
clcs0: interrupting at irq 11
clcs0: AC97 write fail (DCV!=0) for add=0x26 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x0000
clcs0: AC97 read prob. (DCV!=0) for add=0x7c
clcs0: ac97_attach failed

<<boots ok, but no audio attached>>

i'll include a "normal" dmesg below.

chuck


NetBSD 1.5.1_ALPHA (GENERIC_LAPTOP) #2: Tue Jan  9 10:29:13 EST 2001
    chuck@xxxcdc:/usr/users/chuck/src/netbsd/15sys+enet/sys/arch/i386/compile/GENERIC_LAPTOP
cpu0: Intel Pentium III (E) (686-class)
total memory = 511 MB
avail memory = 469 MB
using 6573 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xfd820
PCI BIOS rev. 2.1 found at 0xfd94f
pcibios: config mechanism [1][x], special cycles [x][x], last bus 7
PCI IRQ Routing Table rev. 1.0 found at 0xfdee0, size 208 bytes (11 entries)
PCI Interrupt Router at 000:07:0 (Intel 82371FB PCI-to-ISA Bridge (PIIX))
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:02:0 0x104c 0xac1b   A  0x00  11  0    already assigned
000:02:1 0x104c 0xac1b   B  0x01  11  0    already assigned
000:03:0 0x10b7 0x6056   A  0x02  11  0    already assigned
000:03:1 0x10b7 0x1007   A  0x02  11  0    already assigned
000:05:0 0x1013 0x6003   A  0x00  11  0    already assigned
000:07:2 0x8086 0x7112   D  0x03  11  0    already assigned
001:00:0 0x5333 0x8c12   A  0x00  11  0    already assigned
------------------------------------------
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI bridge 2: primary 0, secondary 3, subordinate 3
PCI bus #3 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7190 
	10h mem  0xf8000000 0x04000000
		[OK]
000:01:0 0x8086 0x7191 
		[OK]
000:02:0 0x104c 0xac1b 
	10h mem  0x50000000 0x00001000
		[OK]
000:02:1 0x104c 0xac1b 
	10h mem  0x50100000 0x00001000
		[OK]
000:03:0 0x10b7 0x6056 
	10h port 0x00001800 0x00000100
	14h mem  0xe8101400 0x00000080
	18h mem  0xe8101000 0x00000080
		[OK]
000:03:1 0x10b7 0x1007 
	10h port 0x00002000 0x00000100
	14h mem  0xe8101c00 0x00000100
	18h mem  0xe8101800 0x00000080
		[OK]
000:05:0 0x1013 0x6003 
	10h mem  0xe8100000 0x00001000
	14h mem  0xe8000000 0x00100000
		[OK]
000:07:0 0x8086 0x7110 
		[OK]
000:07:1 0x8086 0x7111 
	20h port 0x00001c00 0x00000010
		[OK]
000:07:2 0x8086 0x7112 
	20h port 0x00001c20 0x00000020
		[OK]
000:07:3 0x8086 0x7113 
		[OK]
001:00:0 0x5333 0x8c12 
	10h mem  0xf0000000 0x08000000
		[OK]
--------------------------[  0 devices bogus]
 Physical memory end: 0x1ffed000
 PCI memory mapped I/O space start: 0x20000000
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: S3 Savage/IX+MV (rev. 0x13)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
cbb0 at pci0 dev 2 function 0: Texas Instruments PCI1450 PCI-CardBus Bridge (rev. 0x03)
cbb1 at pci0 dev 2 function 1: Texas Instruments PCI1450 PCI-CardBus Bridge (rev. 0x03)
ex0 at pci0 dev 3 function 0: 3Com 3c556B MiniPCI 10/100 Ethernet (rev. 0x20)
ex0: interrupting at irq 11
ex0: MAC address 00:00:86:48:1b:bd
ukphy0 at ex0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000895, model 0x0021, rev. 11
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
3Com product 0x1007 (miscellaneous communications, revision 0x20) at pci0 dev 3 function 1 not configured
clcs0 at pci0 dev 5 function 0: Cirrus Logic CS4280 CrystalClear Audio Interface (rev. 0x01)
clcs0: interrupting at irq 11
clcs0: CRY20 codec; headphone, 20 bit DAC, 18 bit ADC, Spatializer 3D
audio0 at clcs0: full duplex, independent
midi0 at clcs0: CS4280 MIDI UART
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DJSA-232>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 30520 MB, 16383 cyl, 15 head, 63 sec, 512 bytes/sect x 62506080 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x03) at pci0 dev 7 function 3 not configured
cbb0: interrupting at irq 11
cbb0: cacheline 0x8 lattimer 0xb0
cbb0: bhlc 0x824008 lscp 0xb0020200
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cbb1: interrupting at irq 11
cbb1: cacheline 0x8 lattimer 0xb0
cbb1: bhlc 0x824008 lscp 0xb0030300
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt2 at isa0 port 0x3bc-0x3bf: polled
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
biomask effd netmask effd ttymask ffff
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0