Subject: cardbus problems with TI 1251 bridge?
To: None <port-i386@netbsd.org, current-users@netbsd.org>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: current-users
Date: 06/25/2000 23:36:23
My IBM ThinkPad 600E has two TI PCI1251 PCI-CardBus bridges.  They don't
seem to work right when configured as cbb*

When I use pcic on isa (legacy mode) things seem to work fine.

See PR #9342.  I have a stack trace of the failure in PR 10370
(duplicate of 9342).

I ran with pcmciacis_debug set to 1, and the CIS tuples read in legacy
vs. cardbus mode are totally different.  (When I run this way, the
buffer overrun ceases, but the cards still don't work.)  Is this bridge
chip supposed to be supported?

The failing boot messages:

NetBSD 1.5_ALPHA (SAKECB) #1: Sun Jun 25 15:55:02 EDT 2000
     jtk@kolvir.arlington.ma.us:/usr/u4/sandbox/src/sys/arch/i386/compile/SAKECB
cpu0: family 6 model 6 step a
cpu0: Intel Pentium II (Celeron) (686-class)
total memory = 127 MB
avail memory = 115 MB
using 1656 buffers containing 6624 KB of memory
BIOS32 rev. 0 found at 0xfd820
PCI BIOS rev. 2.1 found at 0xfd880
PCI IRQ Routing Table rev. 1.0 found at 0xf9e40, size 112 bytes (5 entries)
PCI Interrupt Router at 000:07:0
PCI Exclusive IRQs: 11
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: Neomagic MagicMedia 256AV VGA (rev. 0x12)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
cbb0 at pci0 dev 2 function 0: Texas Instruments PCI1251 PCI-CardBus Bridge (rev. 0x00)
cbb1 at pci0 dev 2 function 1: Texas Instruments PCI1251 PCI-CardBus Bridge (rev. 0x00)
Cirrus Logic CS4610 SoundFusion Audio Accelerator (audio multimedia, revision 0x01) at pci0 dev 6 function 0 not configured
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: <HITACHI_DK239A-65B>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 6149 MB, 13328 cyl, 15 head, 63 sec, 512 bytes/sect x 12594960 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
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
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <CRN-8241B, 1999/09/04, 1.22> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
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 0x02) at pci0 dev 7 function 3 not configured
cbb0: interrupting at irq 11
cbb0: cacheline 0x8 lattimer 0xb0
cbb0: bhlc 0x82a808 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 0x82a808 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
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: kgdb
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
sb0 at isa0 port 0x220-0x237 irq 5 drq 0: dsp v3.02
audio0 at sb0: half duplex, mmap, independent
midi0 at sb0: SB MIDI UART
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3
pcppi0 at isa0 port 0x61
midi2 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 efcd netmask efcd ttymask ffcf
cis mem map c97ed000
pcmcia1: CIS tuple chain:
CISTPL_NONE
 00
unhandled CISTPL 52
 52 00
unhandled CISTPL 54
 54 18 a3 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00
CISTPL_NONE
 00
CISTPL_NONE
 00
CISTPL_NONE
 00
unhandled CISTPL 75
 75 8b 00 00 58 a5 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 74 00 00
 6c 74 00 00 6c 74 00 00 dc ff 83 e0 dc ff 83 e0
 dc ff 00 00 00 00 00 00 00 00 00 00 00 8b d8 af
 75 8b d8 af 75 8b d8 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00
CISTPL_NONE
 00
unhandled CISTPL d8
 d8 af 00 00 00 00 00 00 00 00 00 00 00 74 ff ff
 00 74 ff ff 00 74 ff 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 dc ff 83 e0 dc ff 83 e0 dc ff
 83 e0 dc ff 83 e0 dc ff 83 e0 dc 8b d8 af 75 8b
 d8 af 75 8b d8 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 68 a5 00 00 68 a5 00 00 68 a5 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00
CISTPL_NONE
 00
CISTPL_NONE
 00
CISTPL_END
 ff
cis mem map c97ed000
CISTPL_LINKTARGET expected, code f8 observed


The working boot messages:

NetBSD 1.5_ALPHA (SAKE) #0: Sun Jun 25 23:11:09 EDT 2000
    jtk@kolvir.arlington.ma.us:/usr/u4/sandbox/src/sys/arch/i386/compile/SAKE
cpu0: family 6 model 6 step a
cpu0: Intel Pentium II (Celeron) (686-class)
total memory = 127 MB
avail memory = 115 MB
using 1656 buffers containing 6624 KB of memory
BIOS32 rev. 0 found at 0xfd820
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: Neomagic MagicMedia 256AV VGA (rev. 0x12)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
Texas Instruments PCI1251 PCI-CardBus Bridge (CardBus bridge) at pci0 dev 2 function 0 not configured
Texas Instruments PCI1251 PCI-CardBus Bridge (CardBus bridge) at pci0 dev 2 function 1 not configured
Cirrus Logic CS4610 SoundFusion Audio Accelerator (audio multimedia, revision 0x01) at pci0 dev 6 function 0 not configured
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: <HITACHI_DK239A-65B>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 6149 MB, 13328 cyl, 15 head, 63 sec, 512 bytes/sect x 12594960 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
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
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <CRN-8241B, 1999/09/04, 1.22> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
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 0x02) at pci0 dev 7 function 3 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: kgdb
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
sb0 at isa0 port 0x220-0x237 irq 5 drq 0: dsp v3.02
audio0 at sb0: half duplex, mmap, independent
midi0 at sb0: SB MIDI UART
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3
pcppi0 at isa0 port 0x61
midi2 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
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has no sockets
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
biomask efcd netmask efcd ttymask ffcf
pcic0: controller 0 detecting irqs with mask 0xdeb8:..3..7..9..10
pcic0: using irq 3 for socket events
CISTPL_DEVICE type=null speed=null
 01 02 00 ff
CISTPL_DEVICE_A type=null speed=null
 17 02 00 ff
CISTPL_VERS_1
 15 2c 05 00 58 69 72 63 6f 6d 00 43 72 65 64 69
 74 43 61 72 64 20 31 30 2f 31 30 30 00 43 45 33
 2d 31 30 2f 31 30 30 00 31 2e 30 30 00 ff
unhandled CISTPL 88
 88 08 5d 6a e5 00 00 00 00 00
CISTPL_MANFID
 20 05 05 01 0a 01 43
unhandled CISTPL 44
 44 04 20 69 4b 27
CISTPL_CONFIG
 1a 05 01 01 00 08 03
CISTPL_CFTABLE_ENTRY
 1b 19 c1 c1 bd 7f 55 4d 5d 3e 46 46 06 e0 17 17
 e4 60 00 00 0f 70 bc 8e 10 00 20
CISTPL_FUNCID
 21 02 06 00
unhandled CISTPL 22
 22 08 04 06 00 10 a4 e5 6a 5d
unhandled CISTPL 22
 22 02 01 02
unhandled CISTPL 22
 22 05 02 80 96 98 00
unhandled CISTPL 22
 22 05 02 00 e1 f5 05
unhandled CISTPL 22
 22 02 03 01
unhandled CISTPL 22
 22 02 03 03
unhandled CISTPL 22
 22 02 05 00
unhandled CISTPL 8a
 8a 0c 39 30 30 31 50 42 45 35 36 41 35 44
unhandled CISTPL 8b
 8b 04 01 00 00 00
CISTPL_END
 ff
cis mem map c0368000
CISTPL_LINKTARGET expected, code 10 observed
xi0 at pcmcia1 function 0 port 0x400-0x40f: Xircom CreditCard 10/100 Ethernet
cis mem map c0369000
pcmcia1: CIS tuple chain:
 01 02 00 ff
 17 02 00 ff
 15 2c 05 00 58 69 72 63 6f 6d 00 43 72 65 64 69
 74 43 61 72 64 20 31 30 2f 31 30 30 00 43 45 33
 2d 31 30 2f 31 30 30 00 31 2e 30 30 00 ff
 88 08 5d 6a e5 00 00 00 00 00
 20 05 05 01 0a 01 43
 44 04 20 69 4b 27
 1a 05 01 01 00 08 03
 1b 19 c1 c1 bd 7f 55 4d 5d 3e 46 46 06 e0 17 17
 e4 60 00 00 0f 70 bc 8e 10 00 20
 21 02 06 00
xi0: Ethernet address 00:10:a4:e5:6a:5d
ukphy0 at xi0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00057d, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy1 at xi0 phy 16: Generic IEEE 802.3u media interface
ukphy1: OUI 0x00057d, model 0x0000, rev. 0
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcmcia1: card irq 7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs

-- 
==John Kohl <jtk@kolvir.arlington.ma.us>, <john_kohl@alum.mit.edu>
Home page: <http://people.ne.mediaone.net/jtk/>
Bicycling and Skiing to keep fit.