I have kernel 2.2.20. and PCI-to-CardBus Bridge Ricoh RL5C476II. I have downloaded the latest pcmcia-cs 3.2.7. All modules were configured and installed correctly. When i started pcmcia services the system said:
Module status:
The PCMCIA kernel modules are loaded correctly.
Daemon status:
cardmgr is running (process 2016)
Current socket status (from /var/lib/pcmcia/stab):
Socket 0: empty
Socket 1: empty
in config.opts
#
# Local PCMCIA Configuration File
#
include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff
include memory 0xc0000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff
include memory 0xe6000000-0xe6ffffff
# High port numbers do not always work...
# include port 0x1000-0x17ff
# Extra port range for IBM Token Ring
include port 0xa00-0xaff
# Resources we should not use, even if they appear to be available
# First built-in serial port
exclude irq 4
# Second built-in serial port
#exclude irq 3
# First built-in parallel port
exclude irq 7
dump_pirq said:
Interrupt routing table found at address 0xfdf20:
Version 1.0, size 0x00c0
Interrupt router is device 00:07.0
PCI exclusive interrupt mask: 0x0000 []
Compatible router: vendor 0x8086 device 0x122e
Device 00:0d.0 (slot 1):
INTA: link 0x60, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTB: link 0x61, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTC: link 0x62, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTD: link 0x63, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
Device 00:0e.0 (slot 2):
INTA: link 0x61, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTB: link 0x62, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTC: link 0x63, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTD: link 0x60, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
Device 00:0f.0 (slot 3):
INTA: link 0x62, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTB: link 0x63, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTC: link 0x60, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTD: link 0x61, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
Device 00:10.0 (slot 4):
INTA: link 0x63, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTB: link 0x60, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTC: link 0x61, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTD: link 0x62, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Flags: bus master, medium devsel, latency 0
00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 64
I/O ports at 1060
00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at 1040
Here it is a little about my system: i have Linux with a patched kernel 2.2.20 installed on my desktop computer. After installing Linux there are some pcmcia modules in /lib/modules/../pcmcia.
I started pcmcia modules by running /etc/rc.d/rc.pcmcia and all modules were loaded correctly without any bugs. But on insrting card the system freezed on a short time and then said :
hde1 : lost interrupt
hde1 : lost interrupt
hde1 : lost interrupt
...
and so on through a short periods of time unless i rejected my PC-card.
I thought then installing an up-to-date pcmcia-cs package will help me but i've encountered a new problem: after inserting a card system gives:
Bridge register mapping failed: check cb_mem_base setting.
There is one thing to say: my ISA-to-PCMCIA device works fine with my old Linux (i've expirienced this device with various memory windows and i/o ports and got success).
I think the resolve of my problem is simple because my device is in the list of supported devices, but i cant understand whats wrong...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i've changed my AGP Video Card to PCI Card and it takes irq 11 instead of irq 10. After it lspci -v showes:
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (rev 02)
Flags: bus master, medium devsel, latency 64
Memory at f8000000 (32-bit, prefetchable)
Capabilities: [a0] AGP version 1.0
00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Flags: bus master, medium devsel, latency 0
00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 64
I/O ports at 1060
00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at 1040
Thanks Dave for answering! As i wrote belong i've changed my AGP video adapter (which was at the same irq 10 as one of my reader slot) with another PCI-video adapter. After that "no pci irq" for each slot! And when i try "cb_pci_irq=9" with "irq_mode=0" dmesg gives irq 9 for each slot but dump_pirq said something like this:
Interrupt router at 00:07.0: Intel 82371AB PCI-to-ISA bridge
PIRQ1 (link 0x60): irq 5
PIRQ2 (link 0x61): irq 9
PIRQ3 (link 0x62): irq 9
PIRQ4 (link 0x63): irq 11
Serial IRQ: [enabled] [continuous] [frame=21] [pulse=4]
Level mask: 0x0c20 [5,11]
but not [5, 9, 11]???
And there is still pi-pow (high/low beep after inserting a card). Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have kernel 2.2.20. and PCI-to-CardBus Bridge Ricoh RL5C476II. I have downloaded the latest pcmcia-cs 3.2.7. All modules were configured and installed correctly. When i started pcmcia services the system said:
Bridge register mapping failed: check cb_mem_base setting
Starting PCMCIA services: done.
After inserting a PC-card the system beeps twice: high beep + low beep.
/var/log/messages gives nothing about pcmcia.
test_setup in pcmcia_cs package said:
Current kernel: 2.2.20-MCBC #1 рОД оПС 4 11:21:47 MSK 2002
Using /lib/modules/2.2.20-MCBC/pcmcia/pcmcia_core.o:
Linux PCMCIA Card Services 3.2.7
options: [pci] [cardbus] [apm] [pnp]
Startup options (from /etc/sysconfig/pcmcia):
PCMCIA=yes
PCIC=i82365
PCIC_OPTS=
CORE_OPTS=
Checking current syslog files in /var/log:
No PCMCIA messages were found!
Kernel startup messages (from 'dmesg'):
Linux PCMCIA Card Services 3.2.7
kernel build: 2.2.20-MCBC #1 рОД оПС 4 11:21:47 MSK 2002
options: [pci] [cardbus] [apm] [pnp]
PCI routing table version 1.0 at 0xfdf20
Intel ISA/PCI/CardBus PCIC probe:
Ricoh RL5C476 rev 80 PCI-to-CardBus at slot 00:0e, mem 0x68000000
host opts [0]: [isa irq] [io 3/6/1] [mem 3/6/1] [pci irq 10] [lat 168/176] [bus 35/37]
host opts [1]: [isa irq] [io 3/6/1] [mem 3/6/1] [no pci irq] [lat 168/176] [bus 38/40]
ISA irqs (default) = 3,9 polling interval = 1000 ms
Module status:
The PCMCIA kernel modules are loaded correctly.
Daemon status:
cardmgr is running (process 2016)
Current socket status (from /var/lib/pcmcia/stab):
Socket 0: empty
Socket 1: empty
in config.opts
#
# Local PCMCIA Configuration File
#
include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff
include memory 0xc0000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff
include memory 0xe6000000-0xe6ffffff
# High port numbers do not always work...
# include port 0x1000-0x17ff
# Extra port range for IBM Token Ring
include port 0xa00-0xaff
# Resources we should not use, even if they appear to be available
# First built-in serial port
exclude irq 4
# Second built-in serial port
#exclude irq 3
# First built-in parallel port
exclude irq 7
dump_pirq said:
Interrupt routing table found at address 0xfdf20:
Version 1.0, size 0x00c0
Interrupt router is device 00:07.0
PCI exclusive interrupt mask: 0x0000 []
Compatible router: vendor 0x8086 device 0x122e
Device 00:0d.0 (slot 1):
INTA: link 0x60, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTB: link 0x61, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTC: link 0x62, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTD: link 0x63, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
Device 00:0e.0 (slot 2):
INTA: link 0x61, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTB: link 0x62, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTC: link 0x63, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTD: link 0x60, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
Device 00:0f.0 (slot 3):
INTA: link 0x62, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTB: link 0x63, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTC: link 0x60, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTD: link 0x61, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
Device 00:10.0 (slot 4):
INTA: link 0x63, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTB: link 0x60, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTC: link 0x61, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
INTD: link 0x62, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
Device 00:0c.0 (slot 0):
INTA: link 0x61, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
Device 00:06.0 (slot 0):
INTA: link 0x62, irq mask 0xdeb8 [3,4,5,7,9,10,11,12,14,15]
Device 00:00.0 (slot 0):
INTA: link 0x60, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTB: link 0x61, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTC: link 0x62, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTD: link 0x63, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
Device 00:07.0 (slot 0):
INTA: link 0x60, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTB: link 0x61, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTC: link 0x62, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTD: link 0x63, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
Device 00:01.0 (slot 0):
INTA: link 0x61, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTB: link 0x62, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTC: link 0x63, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTD: link 0x60, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
Device 01:00.0 (slot 1):
INTA: link 0x61, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTB: link 0x62, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTC: link 0x63, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
INTD: link 0x60, irq mask 0xdef8 [3,4,5,6,7,9,10,11,12,14,15]
Interrupt router at 00:07.0: Intel 82371AB PCI-to-ISA bridge
PIRQ1 (link 0x60): irq 5
PIRQ2 (link 0x61): irq 10
PIRQ3 (link 0x62): unrouted
PIRQ4 (link 0x63): irq 11
Serial IRQ: [enabled] [continuous] [frame=21] [pulse=4]
Level mask: 0x0c20 [5,10,11]
in /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
7 vcs
10 misc
29 fb
36 netlink
128 ptm
136 pts
254 pcmcia
Block devices:
1 ramdisk
2 fd
3 ide0
9 md
22 ide1
in /proc/interrupts
CPU0
0: 51186 XT-PIC timer
1: 2011 XT-PIC keyboard
2: 0 XT-PIC cascade
5: 338 XT-PIC eth0
6: 46 XT-PIC floppy
8: 1 XT-PIC rtc
12: 0 XT-PIC PS/2 Mouse
13: 1 XT-PIC fpu
14: 2882 XT-PIC ide0
15: 13 XT-PIC ide1
NMI: 0
Help me please. I cant resolve this problem 2 months. Is there any solutions. May be I should try another device or any module parameters?
Can you say a little more about your system? And show 'lspci -v'? By the way this does not belong in the IDE forum, it is a general setup problem.
-- Dave
Thanks for answering, Dave!
After lspci -v it gives:
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (rev 02)
Flags: bus master, medium devsel, latency 64
Memory at f8000000 (32-bit, prefetchable)
Capabilities: [a0] AGP version 1.0
00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 128
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 00009000-00009fff
Memory behind bridge: f4200000-f42fffff
Prefetchable memory behind bridge: f5000000-f5ffffff
00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Flags: bus master, medium devsel, latency 0
00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 64
I/O ports at 1060
00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at 1040
00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)
Flags: medium devsel
00:0d.0 Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100] (rev 08)
Subsystem: Intel Corporation EtherExpress PRO/100+ Management Adapter
Flags: bus master, medium devsel, latency 66, IRQ 5
Memory at f4100000 (32-bit, non-prefetchable)
I/O ports at 1000
Memory at f4000000 (32-bit, non-prefetchable)
Capabilities: [dc] Power Management version 2
00:0e.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
Subsystem: CARRY Computer ENG. CO Ltd: Unknown device 0220
Flags: bus master, medium devsel, latency 168, IRQ 10
Memory at <ignored> (32-bit, non-prefetchable)
Bus: primary=00, secondary=23, subordinate=25, sec-latency=176
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
16-bit legacy interface ports at 0001
00:0e.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
Subsystem: CARRY Computer ENG. CO Ltd: Unknown device 0220
Flags: bus master, medium devsel, latency 168
Memory at <ignored> (32-bit, non-prefetchable)
Bus: primary=00, secondary=26, subordinate=28, sec-latency=176
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
16-bit legacy interface ports at 0001
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage IIC AGP (rev 7a) (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc: Unknown device 0084
Flags: bus master, stepping, medium devsel, latency 66, IRQ 10
Memory at f5000000 (32-bit, prefetchable)
I/O ports at 9000
Memory at f4200000 (32-bit, non-prefetchable)
Capabilities: [5c] Power Management version 1
It is very important for me to get this device work!
Here it is a little about my system: i have Linux with a patched kernel 2.2.20 installed on my desktop computer. After installing Linux there are some pcmcia modules in /lib/modules/../pcmcia.
I started pcmcia modules by running /etc/rc.d/rc.pcmcia and all modules were loaded correctly without any bugs. But on insrting card the system freezed on a short time and then said :
hde1 : lost interrupt
hde1 : lost interrupt
hde1 : lost interrupt
...
and so on through a short periods of time unless i rejected my PC-card.
I thought then installing an up-to-date pcmcia-cs package will help me but i've encountered a new problem: after inserting a card system gives:
Bridge register mapping failed: check cb_mem_base setting.
There is one thing to say: my ISA-to-PCMCIA device works fine with my old Linux (i've expirienced this device with various memory windows and i/o ports and got success).
I think the resolve of my problem is simple because my device is in the list of supported devices, but i cant understand whats wrong...
i've changed my AGP Video Card to PCI Card and it takes irq 11 instead of irq 10. After it lspci -v showes:
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (rev 02)
Flags: bus master, medium devsel, latency 64
Memory at f8000000 (32-bit, prefetchable)
Capabilities: [a0] AGP version 1.0
00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Flags: bus master, medium devsel, latency 0
00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 64
I/O ports at 1060
00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at 1040
00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)
Flags: medium devsel
00:0d.0 Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100] (rev 08)
Subsystem: Intel Corporation EtherExpress PRO/100+ Management Adapter
Flags: bus master, medium devsel, latency 66, IRQ 5
Memory at f4100000 (32-bit, non-prefetchable)
I/O ports at 1000
Memory at f4000000 (32-bit, non-prefetchable)
Capabilities: [dc] Power Management version 2
00:0e.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
Subsystem: CARRY Computer ENG. CO Ltd: Unknown device 0220
Flags: bus master, medium devsel, latency 168
Memory at <ignored> (32-bit, non-prefetchable)
Bus: primary=00, secondary=20, subordinate=22, sec-latency=176
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
16-bit legacy interface ports at 0001
00:0e.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
Subsystem: CARRY Computer ENG. CO Ltd: Unknown device 0220
Flags: bus master, medium devsel, latency 168
Memory at <ignored> (32-bit, non-prefetchable)
Bus: primary=00, secondary=23, subordinate=25, sec-latency=176
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
16-bit legacy interface ports at 0001
00:10.0 VGA compatible controller: S3 Inc. 86c764/765 [Trio32/64/64V+] (rev 54) (prog-if 00 [VGA])
Flags: medium devsel, IRQ 11
Memory at f0000000 (32-bit, non-prefetchable)
and test_setup gives:
Current kernel: 2.2.20-MCBC #1 рОД оПС 4 11:21:47 MSK 2002
Using /lib/modules/2.2.20-MCBC/pcmcia/pcmcia_core.o:
Linux PCMCIA Card Services 3.2.7
options: [pci] [cardbus] [apm] [pnp]
Startup options (from /etc/sysconfig/pcmcia):
PCMCIA=yes
PCIC=i82365
PCIC_OPTS=
CORE_OPTS="cb_mem_base=0xa0000000"
Checking current syslog files in /var/log:
No PCMCIA messages were found!
Kernel startup messages (from 'dmesg'):
Linux PCMCIA Card Services 3.2.7
kernel build: 2.2.20-MCBC #1 рОД оПС 4 11:21:47 MSK 2002
options: [pci] [cardbus] [apm] [pnp]
PCI routing table version 1.0 at 0xfdf20
Intel ISA/PCI/CardBus PCIC probe:
Ricoh RL5C476 rev 80 PCI-to-CardBus at slot 00:0e, mem 0xa0000000
host opts [0]: [isa irq] [io 3/6/1] [mem 3/6/1] [no pci irq] [lat 168/176] [bus 32/34]
host opts [1]: [isa irq] [io 3/6/1] [mem 3/6/1] [no pci irq] [lat 168/176] [bus 35/37]
ISA irqs (default) = 3,9,10 polling interval = 1000 ms
cs: memory probe 0xe6000000-0xe6ffffff: clean.
Module status:
The PCMCIA kernel modules are loaded correctly.
Daemon status:
cardmgr is running (process 1923)
Current socket status (from /var/lib/pcmcia/stab):
Socket 0: empty
Socket 1: empty
May be this will more helpfull?
Well, you seem to have gotten past the "bad bridge mapping" issue.
Before your messages showed a PCI interrupt assigned for one of your sockets but not the other. Now that is no longer true. What else did you change?
-- Dave
Thanks Dave for answering! As i wrote belong i've changed my AGP video adapter (which was at the same irq 10 as one of my reader slot) with another PCI-video adapter. After that "no pci irq" for each slot! And when i try "cb_pci_irq=9" with "irq_mode=0" dmesg gives irq 9 for each slot but dump_pirq said something like this:
Interrupt router at 00:07.0: Intel 82371AB PCI-to-ISA bridge
PIRQ1 (link 0x60): irq 5
PIRQ2 (link 0x61): irq 9
PIRQ3 (link 0x62): irq 9
PIRQ4 (link 0x63): irq 11
Serial IRQ: [enabled] [continuous] [frame=21] [pulse=4]
Level mask: 0x0c20 [5,11]
but not [5, 9, 11]???
And there is still pi-pow (high/low beep after inserting a card). Any ideas?