Subject: NetBSD-1.4/i386 fails to probe ep0 after win98 runs
To: None <port-i386@netbsd.org>
From: Darren Reed <darrenr@reed.wattle.id.au>
List: port-i386
Date: 09/17/1999 00:47:32
After running Win98, if I only "restart" (i.e. reboot) into NetBSD,
NetBSD fails to probe any of the PCMCIA/CardBus cards.  If I do a
cold boot, it sees them without any problems.  See below for what
does and doesn't show up in dmesg output:

-----------(warm boot after running Win98)--------------
NetBSD 1.4 (MAYFAIR) #1: Mon Aug 30 22:42:54 EST 1999
    root@mayfair:/usr/src/sys/arch/i386/compile/MAYFAIR
cpu0: family 6 model 6 step a
cpu0: Intel Pentium II (Celeron) (686-class)
real mem  = 100270080
avail mem = 91078656
using 1249 buffers containing 5115904 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x7192 (rev. 0x03)
vga1 at pci0 dev 2 function 0: vendor 0x1023 product 0x9397 (rev. 0xf3)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x7110 (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK6411MAT>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 6194MB, 13424 cyl, 15 head, 63 sec, 512 bytes/sect x 12685680 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-1802B, , 1119> type 5 cdrom removab
le
cd0: 32-bits data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
vendor 0x8086 product 0x7112 (USB serial bus, revision 0x01) at pci0 dev 7 funct
ion 2 not configured
vendor 0x8086 product 0x7113 (miscellaneous bridge, revision 0x02) at pci0 dev 7
 function 3 not configured
vendor 0x1013 product 0x1110 (CardBus bridge, revision 0xc1) at pci0 dev 10 func
tion 0 not configured
vendor 0x1013 product 0x1110 (CardBus bridge, revision 0xc1) at pci0 dev 10 func
tion 1 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
midi0 at sb0: <SB MIDI UART>
audio0 at sb0: half duplex
opl0 at sb0: model OPL3
midi1 at opl0: <SB Yamaha OPL3>
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
joy0 at isa0 port 0x201
joy0: joystick not connected
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff irq 9
pcic0: controller 0 (Cirrus PD672X) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
apm0 at mainbus0: Power Management spec V1.1
apm0: battery life expectancy: 99%
apm0: A/C state: on
apm0: battery charge state: high
biomask c040 netmask c040 ttymask d242
wscons: wskbd0 glued to wsdisplay0 (console)
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)

whereas after a cold boot, I see this for the PCMCIA probing:

....
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff irq 9
pcic0: controller 0 (Cirrus PD672X) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: 3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a, 000002
pcmcia0: Manufacturer code 0x101, product 0x589
pcmcia0: function 0: network adapter, ccr addr 10000 mask 3
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, io
space 0-f; rdybsy_active wp_active bvd_active io8 io16 irqlevel
pcmcia0: function 0, config table entry 3: I/O card; irq mask ffff; iomask 4, io
space 0-f; rdybsy_active wp_active bvd_active io8 io16 irqlevel
ep0 at pcmcia0 function 0 port 0x400-0x40f: 3Com 3c589 10Mbps Ethernet
ep0: address 00:10:4b:ed:e6:eb, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
pcmcia1 at pcic0 controller 0 socket 1
pcmcia1: CIS version PCMCIA 2.0 or 2.1
pcmcia1: CIS info: 3COM, 3CCM156 B, 56K Global Modem PC Card
pcmcia1: Manufacturer code 0x101, product 0x39
pcmcia1: function 0: serial port, ccr addr 300 mask 3
pcmcia1: function 0, config table entry 32: I/O card; irq mask ffff; iomask a, i
ospace 3f8-3ff; audio
pcmcia1: function 0, config table entry 33: I/O card; irq mask ffff; iomask a, i
ospace 2f8-2ff; io8 audio
pcmcia1: function 0, config table entry 34: I/O card; irq mask ffff; iomask a, i
ospace 3e8-3ef; io8 audio
pcmcia1: function 0, config table entry 35: I/O card; irq mask ffff; iomask a, i
ospace 2e8-2ef; io8 audio
com2 at pcmcia1 function 0 port 0x3e8-0x3ef: serial device
com2: ns16550a, working fifo
apm0 at mainbus0: Power Management spec V1.1
....

any clues ?