Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 100646

Summary: cannot see pcmcia devices on amd64 cardbus
Product: Gentoo Linux Reporter: Paul <pprocacci>
Component: [OLD] Core systemAssignee: Daniel Drake (RETIRED) <dsd>
Status: RESOLVED FIXED    
Severity: major CC: amd64, kernel, mobile+disabled
Priority: High    
Version: 2005.0   
Hardware: AMD64   
OS: Linux   
URL: http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=26f674ae0e37190bf61c988e52911e4372fdb5f5;hp=ef6689eff4b58273fed9e54293a3da983b321e9a
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Kernel Config

Description Paul 2005-07-28 16:09:26 UTC
Hey guys, thanks for taking the time to look at this.  I've been using gentoo
now for a couple of months, and enjoy it a bunch.  Even with my success, I've
been having problems with any device that I stick into the pcmcia slot in the
side of my laptop.  Two *2* devices that I have tried are a "Linksys wpc54G ver4
wireless card", and a "Proxim 8480-wd combo card".  With that said, I realize
the 2.6.13 series kernel will chanage the way pcmcia works, but obvisouly, this
isn't out yet.  Also, please note that this worked fine with I installed the x86
kernel.  My associate with the same hardware, is having the same exact problem
with amd64/gentoo.  The following is some information that will hopefully be
useful for you.

########
Notice, it knows a card is there:
dummy pcmcia #  cardctl status
Socket 0:
  3.3V CardBus card
  function 0: [ready]
Socket 1:
  no card

#######
But, can't get any information on the card:
dummy pcmcia #  cardctl ident
Socket 0:
  no product info available
Socket 1:
  no product info available

##########
More of the same:
dummy pcmcia #  cardctl info
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255

#######
Interested lspci results:
dummy pcmcia # lspci -vvv
0000:00:00.0 Host bridge: nVidia Corporation nForce3 Host Bridge (rev a4)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0
        Region 0: Memory at e8000000 (32-bit, prefetchable)
        Capabilities: [44] #08 [0180]
        Capabilities: [c0] AGP version 2.0
                Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans-
64bit- FW+ AGP3- Rate=x1,x2,x4
                Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP+ GART64- 64bit- FW- Rate=x4

0000:00:01.0 ISA bridge: nVidia Corporation nForce3 LPC Bridge (rev a6)
        Subsystem: nVidia Corporation: Unknown device 0c80
        Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0

0000:00:01.1 SMBus: nVidia Corporation nForce3 SMBus (rev a4)
        Subsystem: Hewlett-Packard Company: Unknown device 006d
        Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Interrupt: pin A routed to IRQ 10
        Region 4: I/O ports at 2040 [size=64]
        Region 5: I/O ports at 2000 [size=64]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:02.0 USB Controller: nVidia Corporation nForce3 USB 1.1 (rev a5)
(prog-if 10 [OHCI])
        Subsystem: nVidia Corporation: Unknown device 0c80
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0 (750ns min, 250ns max)
        Interrupt: pin A routed to IRQ 193
        Region 0: Memory at e0000000 (32-bit, non-prefetchable)
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:02.1 USB Controller: nVidia Corporation nForce3 USB 1.1 (rev a5)
(prog-if 10 [OHCI])
        Subsystem: nVidia Corporation: Unknown device 0c80
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0 (750ns min, 250ns max)
        Interrupt: pin B routed to IRQ 177
        Region 0: Memory at e0001000 (32-bit, non-prefetchable)
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:02.2 USB Controller: nVidia Corporation nForce3 USB 2.0 (rev a2)
(prog-if 20 [EHCI])
        Subsystem: nVidia Corporation: Unknown device 0c80
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0 (750ns min, 250ns max)
        Interrupt: pin C routed to IRQ 185
        Region 0: Memory at e0004000 (32-bit, non-prefetchable)
        Capabilities: [80] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:06.0 Multimedia audio controller: nVidia Corporation nForce3 Audio (rev a2)
        Subsystem: Hewlett-Packard Company: Unknown device 006d
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0 (500ns min, 1250ns max)
        Interrupt: pin A routed to IRQ 185
        Region 0: I/O ports at 1400
        Region 1: I/O ports at 1c00 [size=128]
        Region 2: Memory at e0002000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:06.1 Modem: nVidia Corporation: Unknown device 00d9 (rev a2) (prog-if 00
[Generic])
        Subsystem: Hewlett-Packard Company: Unknown device 006d
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0 (500ns min, 1250ns max)
        Interrupt: pin B routed to IRQ 177
        Region 0: I/O ports at 1800
        Region 1: I/O ports at 1c80 [size=128]
        Region 2: Memory at e0003000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:08.0 IDE interface: nVidia Corporation nForce3 IDE (rev a5) (prog-if 8a
[Master SecP PriP])
        Subsystem: nVidia Corporation: Unknown device 0c80
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0 (750ns min, 250ns max)
        Region 4: I/O ports at 2080 [size=16]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:0a.0 PCI bridge: nVidia Corporation nForce3 PCI Bridge (rev a2) (prog-if
00 [Normal decode])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
        Status: Cap- 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=128
        I/O behind bridge: 00003000-00007fff
        Memory behind bridge: e0100000-e17fffff
        Prefetchable memory behind bridge: fff00000-000fffff
        Expansion ROM at 00003000 [disabled] [size=20K]
        BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-

0000:00:0b.0 PCI bridge: nVidia Corporation nForce3 AGP Bridge (rev a4) (prog-if
00 [Normal decode])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
        Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 16
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=10
        I/O behind bridge: 0000f000-00000fff
        Memory behind bridge: e2000000-e2ffffff
        Prefetchable memory behind bridge: f0000000-f80fffff
        BridgeCtl: Parity+ SERR+ NoISA+ VGA+ MAbort- >Reset- FastB2B-

0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
HyperTransport Technology Configuration
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Capabilities: [80] #08 [2101]

0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
Address Map
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-

0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
DRAM Controller
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-

0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
Miscellaneous Control
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-

0000:01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 420 Go
32M] (rev a3) (prog-if 00 [VGA])
        Subsystem: Hewlett-Packard Company: Unknown device 006d
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 248 (1250ns min, 250ns max)
        Interrupt: pin A routed to IRQ 209
        Region 0: Memory at e2000000 (32-bit, non-prefetchable)
        Region 1: Memory at f0000000 (32-bit, prefetchable) [size=128M]
        Region 2: Memory at f8000000 (32-bit, prefetchable) [size=512K]
        Capabilities: [60] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [44] AGP version 2.0
                Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA- ITACoh- GART64- HTrans-
64bit- FW+ AGP3- Rate=x1,x2,x4
                Command: RQ=32 ArqSz=0 Cal=0 SBA- AGP+ GART64- 64bit- FW- Rate=x4

0000:02:00.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000
Controller (PHY/Link) (prog-if 10 [OHCI])
        Subsystem: Hewlett-Packard Company: Unknown device 006d
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (500ns min, 1000ns max), cache line size 10
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at e0106000 (32-bit, non-prefetchable)
        Region 1: Memory at e0100000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:02:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RT8139
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (8000ns min, 16000ns max)
        Interrupt: pin A routed to IRQ 201
        Region 0: I/O ports at 7000
        Region 1: Memory at e0106800 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA
PME(D0-,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:02:04.0 CardBus bridge: Texas Instruments PCI1620 PC Card Controller (rev 01)
        Subsystem: Hewlett-Packard Company: Unknown device 006d
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 168, cache line size 20
        Interrupt: pin A routed to IRQ 217
        Region 0: Memory at e0104000 (32-bit, non-prefetchable)
        Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
        Memory window 0: e0200000-e03ff000 (prefetchable)
        Memory window 1: e0400000-e05ff000
        I/O window 0: 00004000-000040ff
        I/O window 1: 00004400-000044ff
        BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
        16-bit legacy interface ports at 0001

0000:02:04.1 CardBus bridge: Texas Instruments PCI1620 PC Card Controller (rev 01)
        Subsystem: Hewlett-Packard Company: Unknown device 006d
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 168, cache line size 20
        Interrupt: pin B routed to IRQ 201
        Region 0: Memory at e0105000 (32-bit, non-prefetchable)
        Bus: primary=02, secondary=07, subordinate=0a, sec-latency=176
        Memory window 0: e1000000-e13ff000 (prefetchable)
        Memory window 1: e0c00000-e0fff000
        I/O window 0: 00006000-00006fff
        I/O window 1: 00005000-00005fff
        BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
        16-bit legacy interface ports at 0001

0000:02:04.2 System peripheral: Texas Instruments PCI1620 Firmware Loading
Function (rev 01)
        Subsystem: Hewlett-Packard Company: Unknown device 006d
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (1750ns min, 1000ns max), cache line size 10
        Region 0: I/O ports at 7400
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

##########
Re-wrote portions of my /etc/pcmcia/config.opts for this particular card:
include port 0x6000-0x6fff
include port 0x5000-0x5fff
include port 0x4000-0x40ff
include port 0x4400-0x44ff
include memory 0xe1000000-0xe13ff000
include memory 0xe0c00000-0xe0fff000
include memory 0xe0200000-0xe03ff000
include memory 0xe0400000-0xe05ff000
exclude irq 4  #seriel port
exclude irq 7  #Parallel port

#########
Installed version of pcmcia-cs is sys-apps/pcmcia-cs-3.2.7-r3.

#########
I have some debugging information turned on for this particular kernel module
with the following information.  Though it doesn't appear useful, I will include
it anyways:

Jul 29 15:36:22 dummy ds: ds_open(socket 0)
Jul 29 15:36:22 dummy ds: ds_open(socket 1)
Jul 29 15:36:22 dummy ds: ds_open(socket 2)
Jul 29 15:36:22 dummy ds: ds_ioctl(socket 0, 0xc0286404, 0x7fffff887840)
Jul 29 15:36:22 dummy cs: pcmcia_socket0: read_cb_mem(7, 0xfffffff8, 2)
Jul 29 15:36:22 dummy ds: ds_ioctl: ret = 31
Jul 29 15:36:22 dummy ds: ds_ioctl(socket 0, 0xc0286404, 0x7fffff887840)
Jul 29 15:36:22 dummy cs: pcmcia_socket0: read_cb_mem(7, 0xfffffff8, 2)
Jul 29 15:36:22 dummy ds: ds_ioctl: ret = 31
Jul 29 15:36:22 dummy ds: ds_ioctl(socket 0, 0xc0286404, 0x7fffff887840)
Jul 29 15:36:22 dummy cs: pcmcia_socket0: read_cb_mem(7, 0xfffffff8, 2)
Jul 29 15:36:22 dummy ds: ds_ioctl: ret = 31
Jul 29 15:36:22 dummy ds: ds_ioctl(socket 0, 0xc0486403, 0x7fffff8877f0)
Jul 29 15:36:22 dummy ds: ds_ioctl(socket 1, 0xc0286404, 0x7fffff887840)
Jul 29 15:36:22 dummy ds: ds_ioctl: ret = 20
Jul 29 15:36:22 dummy ds: ds_ioctl(socket 1, 0xc0286404, 0x7fffff887840)
Jul 29 15:36:22 dummy ds: ds_ioctl: ret = 20
Jul 29 15:36:22 dummy ds: ds_ioctl(socket 1, 0xc0286404, 0x7fffff887840)
Jul 29 15:36:22 dummy ds: ds_ioctl: ret = 20
Jul 29 15:36:22 dummy ds: ds_ioctl(socket 1, 0xc0486403, 0x7fffff8877f0)
Jul 29 15:36:22 dummy ds: ds_ioctl: ret = 20
Jul 29 15:36:22 dummy ds: ds_release(socket 0)
Jul 29 15:36:22 dummy ds: ds_release(socket 1)

###############
And lastly, my kernel configuration (attached because of it's size.)

##############
If there is any additional information that you would require, please let me know.


Reproducible: Always
Steps to Reproduce:




dummy pcmcia # emerge info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0,
2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 avi berkdb bitmap-fonts bzip2 cardbus crypt cups
encode esd fam fastcgi foomaticdb gdbm gif gnome gtk gtk2 imlib imlib2 innodb
java jpeg kde libwww lzw lzw-tiff mad motif mp3 mpeg mpeg2 mpeg4 mplayer mysql
ncurses noauthcram notlsbeforeauth nvidia offensive opengl pam pdflib png pnp
postgres qt quicktime readline real sdl spell ssl tcpd threads tiff truetype
truetype-fonts type1-fonts usb userlocales xml2 xmms xpm xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Paul 2005-07-28 16:10:28 UTC
Created attachment 64579 [details]
Kernel Config
Comment 2 Henrik Brix Andersen 2005-07-29 14:36:15 UTC
The Linksys WPC54G is based on a Broadcom chipset which is not supported by Linux.

The Proxim 8480 is based on an Atheros chipset, and should work with either
net-wireless/madwifi-driver or net-wireless/madwifi-bsd -- But since it is a
32bit CardBus card and not a 16bit PCMCIA card it will not work with (nor need)
the PCMCIA subsystem, nor the sys-apps/pcmcia-cs package. It only depends on
having hotplug installed and running.

If you see the same problem with a 16bit PCMCIA card, please re-open this bug
report.
Comment 3 Paul 2005-08-02 13:27:01 UTC
Hi,

Thanks for the information.  I have done what you suggested, by uninstalling
pcmcia-cs and have used a card with the atheros chipset (Linksys wpc55ag which
works on a 32-bit install on gentoo).  I have loaded the madwifi drivers from
portage, and still no go.  I have no additional information to provide except
for the following:

##### dmesg #####
ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413)
wlan: 0.8.4.5 (EXPERIMENTAL)
ath_rate_onoe: 1.0
ath_pci: 0.9.4.12 (EXPERIMENTAL)

The output from lspci is the same and cardctl is the same as well.  I can tell
that cardctl knows a device is there, but it doesn't show in lspci.

### Installed madwifi-driver ###
freyr linux # qpkg  -I -v madwifi-driver
net-wireless/madwifi-driver-0.1_pre20050420 *

Thanks for helping.
Comment 4 Henrik Brix Andersen 2005-08-08 10:16:48 UTC
If you can not get the madwifi-driver to work, that's a completely different
issue. Please open a new bug report for this.
Comment 5 Paul 2005-08-09 09:09:48 UTC
This is not a problem with madwifi.  This is a problem with gentoo64 as these
devices work fine with gentoo32.  The kernel gets as far as seeing the pcmcia
bridge, but not the card.  The kernel, at the very least, should show an unknown
device utilizing lspci -vvv.  Madwifi will not work, if the kernel doesn't know
there's a device there.

Again, the output from lspci -vvv is different on a gentoo32 installation, while
gentoo64 doesn't show any device there.  This is because there IS a problem with
gentoo64.  Please investigate more thouroughly without brushing this off as a
madwifi problem when it's clearly not.

At the very least, I would like to see the kernel show an unknown device.  That
shows me that the kernel *knows* some device is there.

To further this information, I've also tried ndiswrapper with outher 32-bit
cards with no luck.  Again, I know the reason, but you continue to point the
finger at the *other software*.

Thanks
Comment 6 Henrik Brix Andersen 2005-08-09 10:58:52 UTC
Please, Gentoo Linux is not a commercial product - I was actually trying to help
you here.

Re-assigning to kernel herd and adding amd64 herd to CC: as this appears to be a
kernel/amd64 issue.
Comment 7 Henrik Brix Andersen 2005-08-09 11:09:16 UTC
Please attach the output of `lspci -v` and `dmesg` from the working kernel and
the kernel which doesn't work.

Please see if you can reproduce this problem with the latest
sys-kernel/vanilla-sources (currently 2.6.13-rc6).
Comment 8 Paul 2005-08-09 12:00:28 UTC
Hi,

I have found the problem and have found the resolution:

http://bugzilla.kernel.org/show_bug.cgi?id=2944

In short:
"The PCI bridge at 0:a.0 is not correctly setup to forward bus cycles for cards
downstream of the cardbus socket to its secondary bus.  We are seeing this
rather a lot on nVidia based systems."

Thanks for your time.  Perhaps this information can be added somewhere on
gentoo's site regarding this particular problem.  I'll leave that up to you. 
Again, thanks for the help.
Comment 9 Henrik Brix Andersen 2005-08-09 12:04:01 UTC
So your problem is solved with sys-kernel/vanilla-sources-2.6.13_rc4 and above?

dsd, can we have the patch added to genpatches, please?
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2005-08-09 12:30:18 UTC
Certainly :)
Comment 11 Paul 2005-08-09 15:31:03 UTC
Hi,

I didn't install any different version of gentoo, instead I fixed this by:

a) booting up gentoo
b) running the following command:  setpci  -s 0:a.0 SUBORDINATE_BUS=0A
c) inserting the card

This obviously is a temporary workaround for a problem that has hauting me for
weeks, but never-the-less, it works and I am quite satisfied.

dummy ~ # uname -r
2.6.12-gentoo-r6

Thanks
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2005-08-09 16:45:07 UTC
Fixed in gentoo-sources-2.6.12-r8
Fixed in genpatches-2.6.12-12