32bit Cardbus not working with Ricoh 475 PCI
Alistair John Strachan
s0348365 at sms.ed.ac.uk
Sun May 2 14:27:36 BST 2004
Hi,
OK, originally I posted this to the linux 2.4 forums by mistake, but here's a
copy of the email sent.
My problem is that although 16bit PCMCIA devices work with my Ricoh RL5c475
(rev 80) PCMCIA->PCI adaptor, any 32bit cardbus device does not get
enumerated as a PCI device by Linux 2.6.
For example, I have a 16bit PCMCIA memory card reader that once inserted (via
ide-cs) works fine and I can read any data I want from it.
However, if I connect a 32bit 3Com wireless PCMCIA card (supported by the
prism54.org project; works well in a laptop) I get the following messages to
kernel log.
Linux Kernel Card Services
options: [pci] [cardbus] [pm]
Yenta: CardBus bridge found at 0000:01:07.0 [0000:0000]
yenta 0000:01:07.0: Preassigned resource 2 busy, reconfiguring...
Yenta: ISA IRQ mask 0x0000, PCI irq 19
Socket status: 30000820
PCI: Failed to allocate mem resource #0:2000 at e3022000 for 0000:02:00.0
Loaded prism54 driver, version 1.1
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
prism54: PCI device memory region not configured; fix your BIOS or CardBus
bridge/drivers
prism54: probe of 0000:02:00.0 failed with error -5
Any ideas? I'd really like to get this working, and as 16bit devices work I'm
guessing I'm not too far off a fix.
[alistair] 01:32 [~] uname -r
2.6.6-rc2-mm1
[alistair] 01:32 [~] cardmgr -V
cardmgr version 3.2.7
[alistair] 21:29 [~] cardctl status
Socket 0:
3.3V CardBus card
function 0: [ready]
[alistair] 21:31 [~] cardctl info
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
[alistair] 21:31 [~] cardctl ident
Socket 0:
no product info available
[alistair] 21:32 [~] cardctl config
Socket 0:
Vcc 3.3V Vpp1 3.3V Vpp2 3.3V
interface type is "cardbus"
irq 19 [exclusive] [level]
function 0:
[alistair] 21:32 [~] cat /etc/sysconfig/pcmcia
PCMCIA=yes
PCIC=yenta_socket
PCIC_OPTS=""
CORE_OPTS=
CARDMGR_OPTS=
[alistair] 21:32 [~] cat /etc/pcmcia/config.opts
include memory 0xe3000000-0xe3ffffff
include port 0x9000-0xbfff
[alistair] 21:32 [~] lspci -vv
00:00.0 Host bridge: nVidia Corporation: Unknown device 01e0 (rev c1)
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 d0000000 (32-bit, prefetchable) [size=128M]
Capabilities: <available only to root>
00:00.1 RAM memory: nVidia Corporation: Unknown device 01eb (rev c1)
Subsystem: Unknown device 1695:1000
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-
00:00.2 RAM memory: nVidia Corporation: Unknown device 01ee (rev c1)
Subsystem: Unknown device 1695:1000
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-
00:00.3 RAM memory: nVidia Corporation: Unknown device 01ed (rev c1)
Subsystem: Unknown device 1695:1000
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-
00:00.4 RAM memory: nVidia Corporation: Unknown device 01ec (rev c1)
Subsystem: Unknown device 1695:1000
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-
00:00.5 RAM memory: nVidia Corporation: Unknown device 01ef (rev c1)
Subsystem: Unknown device 1695:1000
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-
00:01.0 ISA bridge: nVidia Corporation: Unknown device 0060 (rev a3)
Subsystem: Unknown device 1695:1000
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
Capabilities: <available only to root>
00:01.1 SMBus: nVidia Corporation: Unknown device 0064 (rev a2)
Subsystem: Unknown device 1695:1000
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 23
Region 0: I/O ports at cc00 [size=32]
Capabilities: <available only to root>
00:02.0 USB Controller: nVidia Corporation: Unknown device 0067 (rev a3)
(prog-if 10 [OHCI])
Subsystem: Unknown device 1695:1000
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 20
Region 0: Memory at e4001000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <available only to root>
00:02.1 USB Controller: nVidia Corporation: Unknown device 0067 (rev a3)
(prog-if 10 [OHCI])
Subsystem: Unknown device 1695:1000
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 22
Region 0: Memory at e4002000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <available only to root>
00:02.2 USB Controller: nVidia Corporation: Unknown device 0068 (rev a3)
(prog-if 20 [EHCI])
Subsystem: Unknown device 1695:1000
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 21
Region 0: Memory at e4005000 (32-bit, non-prefetchable) [size=256]
Capabilities: <available only to root>
00:04.0 Ethernet controller: nVidia Corporation: Unknown device 0066 (rev a1)
Subsystem: Unknown device 1695:1000
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 (250ns min, 5000ns max)
Interrupt: pin A routed to IRQ 20
Region 0: Memory at e4006000 (32-bit, non-prefetchable) [size=4K]
Region 1: I/O ports at c000 [size=8]
Capabilities: <available only to root>
00:08.0 PCI bridge: nVidia Corporation: Unknown device 006c (rev a3) (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=01, subordinate=02, sec-latency=32
I/O behind bridge: 00009000-0000bfff
Memory behind bridge: e3000000-e3ffffff
Prefetchable memory behind bridge: e0000000-e0ffffff
BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B-
00:09.0 IDE interface: nVidia Corporation: Unknown device 0065 (rev a2)
(prog-if 8a [Master SecP PriP])
Subsystem: Unknown device 1695:1000
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 f000 [size=16]
Capabilities: <available only to root>
00:0d.0 FireWire (IEEE 1394): nVidia Corporation: Unknown device 006e (rev
a3) (prog-if 10 [OHCI])
Subsystem: Unknown device 1695:1000
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 22
Region 0: Memory at e4003000 (32-bit, non-prefetchable) [size=2K]
Region 1: Memory at e4004000 (32-bit, non-prefetchable) [size=64]
Capabilities: <available only to root>
00:1e.0 PCI bridge: nVidia Corporation: Unknown device 01e8 (rev c1) (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: 32
Bus: primary=00, secondary=03, subordinate=03, sec-latency=32
Memory behind bridge: e1000000-e2ffffff
Prefetchable memory behind bridge: d8000000-dfffffff
BridgeCtl: Parity- SERR+ NoISA- VGA+ MAbort- >Reset- FastB2B-
01:07.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
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
Interrupt: pin A routed to IRQ 19
Region 0: Memory at e3023000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=01, secondary=02, subordinate=05, sec-latency=176
Memory window 0: e0200000-e03ff000 (prefetchable)
Memory window 1: e3021000-e3022000
I/O window 0: 00009000-000090ff
I/O window 1: 00009800-00009c03
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
16-bit legacy interface ports at 0001
01:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
Subsystem: Hauppauge computer works Inc. WinTV/GO
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: 32 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 16
Region 0: Memory at e0000000 (32-bit, prefetchable) [size=4K]
Capabilities: <available only to root>
01:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev
11)
Subsystem: Hauppauge computer works Inc. WinTV/GO
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: 32 (1000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 16
Region 0: Memory at e0001000 (32-bit, prefetchable) [size=4K]
Capabilities: <available only to root>
01:09.0 RAID bus controller: Promise Technology, Inc. 20268R (rev 02)
(prog-if 85)
Subsystem: Promise Technology, Inc.: Unknown device 4d68
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 32 (1000ns min, 4500ns max), cache line size 08
Interrupt: pin A routed to IRQ 17
Region 0: I/O ports at a000 [size=8]
Region 1: I/O ports at a400 [size=4]
Region 2: I/O ports at a800 [size=8]
Region 3: I/O ports at ac00 [size=4]
Region 4: I/O ports at b000 [size=16]
Region 5: Memory at e3000000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: <available only to root>
01:0a.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)
Subsystem: Creative Labs: Unknown device 8065
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: 32 (500ns min, 5000ns max)
Interrupt: pin A routed to IRQ 18
Region 0: I/O ports at b400 [size=32]
Capabilities: <available only to root>
01:0a.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev
0a)
Subsystem: Creative Labs Gameport Joystick
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: 32
Region 0: I/O ports at b800 [size=8]
Capabilities: <available only to root>
02:00.0 Network controller: 3Com Corporation: Unknown device 6001 (rev 01)
Subsystem: 3Com Corporation: Unknown device 6001
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-
Interrupt: pin A routed to IRQ 19
Region 0: [virtual] Memory at e3022000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <available only to root>
03:00.0 VGA compatible controller: nVidia Corporation: Unknown device 0281
(rev a1) (prog-if 00 [VGA])
Subsystem: CardExpert Technology: Unknown device 0404
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 19
Region 0: Memory at e1000000 (32-bit, non-prefetchable) [size=16M]
Region 1: Memory at d8000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: <available only to root>
--
Cheers,
Alistair.
personal: alistair()devzero!co!uk
university: s0348365()sms!ed!ac!uk
student: CS/AI Undergraduate
contact: 7/10 Darroch Court,
University of Edinburgh.
More information about the linux-pcmcia
mailing list