PCcard support still broken in 4.7-R

Greg Black gjb at gbch.net
Tue Apr 15 23:44:35 PDT 2003


In January/February 2002, I posted several messages to the
mobile and stable mailing lists detailing problems I had with
using wireless network cards in my laptop.

It worked (and still works) perfectly under FreeBSD-4.3-Release
and both wireless cards that I have just work.

With the advent of 4.4, the laptop would no longer boot without
the following in /boot/loader.conf:

    hw.pcic.intr_path="1"
    hw.pcic.irq="0"

At the time of 4.4-R (and the 5.0 of that time), I was greeted
on boot by:

    pccard: card inserted, slot 0
    pcic0: Static bug detected, ignoring hardware.

And it did indeed ignore the card.  BTW, it printed those two
lines whether or not a card was inserted.

I was asked to supply various extra pieces of information and
supplied all that was asked for.  And I never heard anything
more about it.  So I have had to keep using 4.3 on that box.
But 4.3 is now too old to continue with and I really want to run
an up-to-date version of FreeBSD on this machine.

So I have recently tried both 4.7-R and 5.0-R to see what has
changed.  Neither works, so I'll concentrate on 4.7-R from here
on, as I'd rather run 4.x at this stage.  For both 4.7-R and
5.0-R, the settings shown above in /boot/loader.conf are still
required to prevent a panic on boot.

And when it boots, although it correctly detects insertion and
removal of the wireless card, it reports an error (wrapped with
backslashes for legibility):

    demon /kernel: pccard: card inserted, slot 0
    demon pccardd[44]: Card "Cabletron"("RoamAbout 802.11 DS") \
        [Version 01.01] [] matched "Cabletron" ("RoamAbout \
	802.11 DS") [(null)] [(null)] 
    demon pccardd[44]: Failed to allocate IRQ for Cabletron 
    demon /kernel: pccard: card removed, slot 0

So the card is correctly detected, which is a step forward.  But
it doesn't work.

To complete the picture as far as I can, here are the settings
reported by sysctl hw.pcic:

    hw.pcic.irq: 0
    hw.pcic.boot_deactivated: 0
    hw.pcic.pd6722_vsense: 1
    hw.pcic.ignore_function_1: 0
    hw.pcic.intr_path: 1
    hw.pcic.init_routing: 0
    hw.pcic.ignore_pci: 0
    hw.pcic.pd6729_intr_path: 1

I have attached three files:

 1. A dmesg of a boot that included the panic if the sysctls are
    not provided at boot.

 2. A dmesg of a successful boot with the sysctls in place.

 3. The output of "pccardc dumpcis".

Is there some other simple magic that I can try to get this to
function, or is there some other information that I should
supply to make diagnosis easier?

Greg

-- 
Greg Black <gjb at gbch.net> <http://www.gbch.net/gjb.html>
GPG signed mail preferred; further information in headers.
-------------- next part --------------
Copyright (c) 1992-2002 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 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002
    root at builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (897.75-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 259981312 (253888K bytes)
avail memory = 247775232 (241968K bytes)
Preloaded elf kernel "kernel" at 0xc050f000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 3 entries at 0xc00fe840
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
atapci0: <SiS 5591 ATA100 controller> port 0x1100-0x110f,0x374-0x377,0x170-0x173,0x3f4-0x3f7,0x1f0-0x1f3 irq 0 at device 0.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
isab0: <SiS 85c503 PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
ohci0: <SiS 5571 USB controller> mem 0x34001000-0x34001fff irq 10 at device 1.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <SiS 5571 USB controller> mem 0x34002000-0x34002fff irq 10 at device 1.3 on pci0
usb1: OHCI version 1.0, legacy support
usb1: <SiS 5571 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci0: <unknown card> (vendor=0x1039, dev=0x7018) at 1.4
pci0: <unknown card> (vendor=0x1039, dev=0x7013) at 1.6 irq 11
pcib2: <PCI to PCI bridge (vendor=1039 device=0001)> at device 2.0 on pci0
pci1: <PCI bus> on pcib2
pci1: <SiS model 6300 VGA-compatible display device> at 0.0
pci_cfgintr_virgin: using routable interrupt 10


Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0xeb9b6
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc00eb8b1
stack pointer	        = 0x10:0xc0531d6c
frame pointer	        = 0x10:0xc0531d6c
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 0 (swapper)
interrupt mask		= net tty bio cam 
trap number		= 12
panic: page fault
Uptime: 0s
Automatic reboot in 15 seconds - press a key on the console to abort
--> Press a key on the console to reboot,
--> or switch off the system now.
Rebooting...
Copyright (c) 1992-2002 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 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002
    root at builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (897.75-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 259981312 (253888K bytes)
avail memory = 247775232 (241968K bytes)
Preloaded elf kernel "kernel" at 0xc050f000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 3 entries at 0xc00fe840
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
atapci0: <SiS 5591 ATA100 controller> port 0x1100-0x110f,0x374-0x377,0x170-0x173,0x3f4-0x3f7,0x1f0-0x1f3 irq 0 at device 0.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
isab0: <SiS 85c503 PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
ohci0: <SiS 5571 USB controller> mem 0x34001000-0x34001fff irq 10 at device 1.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <SiS 5571 USB controller> mem 0x34002000-0x34002fff irq 10 at device 1.3 on pci0
usb1: OHCI version 1.0, legacy support
usb1: <SiS 5571 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci0: <unknown card> (vendor=0x1039, dev=0x7018) at 1.4
pci0: <unknown card> (vendor=0x1039, dev=0x7013) at 1.6 irq 11
pcib2: <PCI to PCI bridge (vendor=1039 device=0001)> at device 2.0 on pci0
pci1: <PCI bus> on pcib2
pci1: <SiS model 6300 VGA-compatible display device> at 0.0
pcic0: <O2micro 6812/6872 PCI-Cardbus Bridge> at device 10.0 on pci0
pcic0: PCI Memory allocated: 0x88000000
pcic0: Polling mode
pcic0: Warning: O2micro OZ68xx chips may not work
pccard0: <PC Card 16-bit bus (classic)> on pcic0
rl0: <RealTek 8139 10/100BaseTX> port 0x3400-0x34ff mem 0x34004000-0x340040ff irq 11 at device 11.0 on pci0
rl0: Ethernet address: 00:e0:4c:39:03:db
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib1: <SiS 5591 host to AGP bridge> on motherboard
pci2: <PCI bus> on pcib1
orm0: <Option ROMs> at iomem 0xc0000-0xcbfff,0xcc000-0xccfff,0xcd000-0xcdfff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 1/0/0 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 19077MB <HITACHI_DK23BA-20> [38760/16/63] at ata0-master UDMA66
acd0: DVD-ROM <QSI DVD-ROM SDR-081> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s3a
-------------- next part --------------
Copyright (c) 1992-2002 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 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002
    root at builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (897.75-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 259981312 (253888K bytes)
avail memory = 247775232 (241968K bytes)
Preloaded elf kernel "kernel" at 0xc050f000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 3 entries at 0xc00fe840
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
atapci0: <SiS 5591 ATA100 controller> port 0x1100-0x110f,0x374-0x377,0x170-0x173,0x3f4-0x3f7,0x1f0-0x1f3 irq 0 at device 0.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
isab0: <SiS 85c503 PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
ohci0: <SiS 5571 USB controller> mem 0x34001000-0x34001fff irq 10 at device 1.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <SiS 5571 USB controller> mem 0x34002000-0x34002fff irq 10 at device 1.3 on pci0
usb1: OHCI version 1.0, legacy support
usb1: <SiS 5571 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci0: <unknown card> (vendor=0x1039, dev=0x7018) at 1.4
pci0: <unknown card> (vendor=0x1039, dev=0x7013) at 1.6 irq 11
pcib2: <PCI to PCI bridge (vendor=1039 device=0001)> at device 2.0 on pci0
pci1: <PCI bus> on pcib2
pci1: <SiS model 6300 VGA-compatible display device> at 0.0
pcic0: <O2micro 6812/6872 PCI-Cardbus Bridge> at device 10.0 on pci0
pcic0: PCI Memory allocated: 0x88000000
pcic0: Polling mode
pcic0: Warning: O2micro OZ68xx chips may not work
pccard0: <PC Card 16-bit bus (classic)> on pcic0
rl0: <RealTek 8139 10/100BaseTX> port 0x3400-0x34ff mem 0x34004000-0x340040ff irq 11 at device 11.0 on pci0
rl0: Ethernet address: 00:e0:4c:39:03:db
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib1: <SiS 5591 host to AGP bridge> on motherboard
pci2: <PCI bus> on pcib1
orm0: <Option ROMs> at iomem 0xc0000-0xcbfff,0xcc000-0xccfff,0xcd000-0xcdfff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 1/0/0 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 19077MB <HITACHI_DK23BA-20> [38760/16/63] at ata0-master UDMA66
acd0: DVD-ROM <QSI DVD-ROM SDR-081> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s3a
-------------- next part --------------
Configuration data for card in slot 0
Tuple #1, code = 0x1 (Common memory descriptor), length = 3
    000:  00 00 ff
	Common memory device information:
		Device number 1, type No device, WPS = OFF
		Speed = No speed, Memory block size = 512b, 1 units
Tuple #2, code = 0x17 (Attribute memory descriptor), length = 4
    000:  67 5a 08 ff
	Attribute memory device information:
		Device number 1, type SRAM, WPS = OFF
		Speed = 5.0 x 100 ns, Memory block size = 512b, 2 units
Tuple #3, code = 0x1d (Other conditions for attribute memory), length = 5
    000:  01 67 5a 08 ff
	(MWAIT)
Tuple #4, code = 0x15 (Version 1 info), length = 80
    000:  05 00 43 61 62 6c 65 74 72 6f 6e 00 52 6f 61 6d
    010:  41 62 6f 75 74 20 38 30 32 2e 31 31 20 44 53 00
    020:  56 65 72 73 69 6f 6e 20 30 31 2e 30 31 00 00 00
    030:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    040:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff
	Version = 5.0, Manuf = [Cabletron], card vers = [RoamAbout 802.11 DS]
	Addit. info = [Version 01.01],[]
Tuple #5, code = 0x20 (Manufacturer ID), length = 4
    000:  56 01 02 00
	PCMCIA ID = 0x156, OEM ID = 0x2
Tuple #6, code = 0x21 (Functional ID), length = 2
    000:  06 00
	Network/LAN adapter
Tuple #7, code = 0x22 (Functional EXT), length = 2
    000:  01 07
	Network technology: Wireless
Tuple #8, code = 0x22 (Functional EXT), length = 5
    000:  02 40 42 0f 00
	Network speed: 1 Mb/sec
Tuple #9, code = 0x22 (Functional EXT), length = 5
    000:  02 80 84 1e 00
	Network speed: 2 Mb/sec
Tuple #10, code = 0x22 (Functional EXT), length = 5
    000:  02 60 ec 53 00
	Network speed: 5 Mb/sec
Tuple #11, code = 0x22 (Functional EXT), length = 5
    000:  02 c0 d8 a7 00
	Network speed: 11 Mb/sec
Tuple #12, code = 0x22 (Functional EXT), length = 2
    000:  03 07
	Network media: 2.4 GHz
Tuple #13, code = 0x22 (Functional EXT), length = 8
    000:  04 06 00 e0 63 82 dd e1
	Network node ID: 00 e0 63 82 dd e1
Tuple #14, code = 0x22 (Functional EXT), length = 2
    000:  05 01
	Network connector: closed connector standard
Tuple #15, code = 0x1a (Configuration map), length = 7
    000:  03 01 e0 03 00 00 01
	Reg len = 4, config register addr = 0x3e0, last config = 0x1
	Registers: X------- 
Tuple #16, code = 0x1b (Configuration entry), length = 15
    000:  c1 01 19 76 c5 4b d5 19 36 36 05 46 7f ff ff
	Config index = 0x1(default)
	Interface byte = 0x1 (I/O)
	Vcc pwr:
		Minimum operating supply voltage: 4 x 1V, ext = 0x4b
		Maximum operating supply voltage: 5 x 1V, ext = 0x19
		Max current average over 1 second: 3 x 100mA
		Max current average over 10 ms: 3 x 100mA
		Power down supply current: 1 x 10mA
	Card decodes 6 address lines, limited 8/16 Bit I/O
		IRQ modes: Level, Pulse
		IRQs:  NMI IOCK BERR VEND 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Tuple #17, code = 0xff (Terminator), length = 0
1 slots found


More information about the freebsd-mobile mailing list