Bug 29937

Summary: PCMCIA cards not initializing, PCI bus not found
Product: Base System Reporter: Dave Cole <dacole>
Component: kernAssignee: Warner Losh <imp>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Dave Cole 2001-08-21 23:40:00 UTC
Error when card is inserted (before or after boot time, same error)

pccard1: Assigning an0: io 0x240-0x27f irq 13 mem 0x0-0xffffffff
pcic: I/O win 0 flags 15 240-27f
pcic: I/O win 0 flags 5 240-27f
an0: <Aironet PC4500/PC4800> at port 0x240-0x27f irq 13 slot 1 on pccard1
pcic: I/O win 0 flags 15 240-27f
pcic0: Hardware does not support irq 13.
setup intr failed 22 
pcic: I/O win 0 flags 5 240-27f
device_probe_and_attach: an0 attach returned 22
Aug 21 17:17:53 ginaz pccardd[86]: driver allocation failed for Cisco Systems(350 Series Wireless LAN Adapter): Invalid argument

/etc/defaults/pccard.conf suggests IRQ 13 is not even an option.  Even starting pccardd with '-i 10' doesn't change this IRQ 13 attempt.

A small clip of when an older system (seems both pccard binaries and older kernel must be used together to get this working):

Aug 14 17:48:45 ginaz pccardd[86]: Card "Cisco Systems"("350 Series Wireless LAN Adapter") [(null)] [(null)] matched "Cisco Systems"
 ("350 Series Wireless LAN Adapter") [(null)] [(null)] 
an0: <Aironet PC4500/PC4800> at port 0x240-0x27f irq 3 slot 1 on pccard1
an0: Ethernet address: <snip>

As well, it seems the PCI bus is not being found.  It seems a separate issue however.

An example of dmesg PCI related lines from a failed boot:

# grep -i pci dmesg-no_fxp-cropped
pcibios: PCI BIOS entry at 0x19f
pci_open(1):    mode 1 addr port (0x0cf8) is 0x80000058
pci_open(1a):   mode1res=0x80000000 (0x80000000)
pci_cfgcheck:   device 0 [class=060000] [hdr=00] is there (id=71908086)
pcic0: <Intel i82365SL-DF> at port 0x3e0 iomem 0xd0000 on isa0
pcic0: Polling mode
pccard0: <PC Card bus (classic)> on pcic0
pccard1: <PC Card bus (classic)> on pcic0
pcic1: not probed (disabled)
pcic: I/O win 0 flags 15 240-27f
pcic: I/O win 0 flags 5 240-27f
pcic: I/O win 0 flags 15 240-27f
pcic0: Hardware does not support irq 13.
pcic: I/O win 0 flags 5 240-27f


And from a happy boot (with an older kernel):

# grep -i pci ../dmesg.today
pcibios: PCI BIOS entry at 0x19f
pci_open(1):    mode 1 addr port (0x0cf8) is 0x80000058
pci_open(1a):   mode1res=0x80000000 (0x80000000)
pci_cfgcheck:   device 0 [class=060000] [hdr=00] is there (id=71908086)
pci_open(1):    mode 1 addr port (0x0cf8) is 0x00000000
pci_open(1a):   mode1res=0x80000000 (0x80000000)
pci_cfgcheck:   device 0 [class=060000] [hdr=00] is there (id=71908086)
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mobility-1 graphics accelerator> (vendor=0x1002, dev=0x4c4d) at 0.0 irq 11
pcic-pci0: <TI PCI-1450 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq 11 at device 2.0 on pci0
pcic-pci0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
pcic-pci0: Legacy address set to 0x3e0
PCI Config space:
pcic-pci1: <TI PCI-1450 PCI-CardBus Bridge> mem 0x50100000-0x50100fff irq 11 at device 2.1 on pci0
pcic-pci1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
PCI Config space:
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x1800-0x183f mem 0xf4100000-0xf411ffff,0xf4120000-0xf4120fff irq 11 at device 3.0 on pci0
fxp0: PCI IDs: 8086 1229 8086 2408 0009
pci0: <unknown card> (vendor=0x115d, dev=0x000c) at 3.1 irq 11
pci0: <unknown card> (vendor=0x1013, dev=0x6003) at 5.0 irq 11
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1850-0x185f at device 7.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 0x1860-0x187f irq 11 at device 7.2 on pci0
chip1: <Intel 82371AB Power management controller> port 0x1040-0x104f at device 7.3 on pci0
pcic0: <Intel i82365SL-DF> at port 0x3e0 iomem 0xd0000 on isa0
pcic0: Polling mode
pccard0: <PC Card bus (classic)> on pcic0
pccard1: <PC Card bus (classic)> on pcic0
pcic1: not probed (disabled)

How-To-Repeat: PCMCIA woes continue whether you boot with the card in or slap it in after the fact.

Rebooting repeatedly does nothing for the PCI bus problem.
Comment 1 alex freebsd_committer freebsd_triage 2001-08-31 02:18:40 UTC
Responsible Changed
From-To: freebsd-bugs->imp

Warner has touched this code
Comment 2 Warner Losh freebsd_committer freebsd_triage 2001-08-31 20:29:19 UTC
State Changed
From-To: open->closed

I fixed this already.  If there is still a problem, please let me know so 
I can get with you to debug it further.