[realtek] ressource allocation problem - rtl8139 cardbus

Martin Krasser krasserm@freenet.de
Sun, 30 Sep 2001 14:59:01 +0000


Dear All,

I recently bought a Realtek rtl8139 cardbus card and updated the rtl8139
driver following the instructions at

http://www.scyld.com/network/rtl8139.html
http://www.scyld.com/network/updates.html
http://www.scyld.com/network/modules.html

but the card cannot be assigned an IRQ or ressources cannot be
allocated.

The system settings are:

- Kernel 2.2.16 (SuSE 7.0)
- PCMCIA 3.1.17

The System in running on a Dell Inspiron 4000 Laptop.

The problems differ depending on the socket where the card is inserted:

Socket 0:
Resources for CardBus device 'RealTek RTL8139 Fast Ethernet' have not
been allocated. Activation has been delayed. 

Socket 1:
PCI device 'RealTek RTL8139 Fast Ethernet' was not assigned an IRQ. It
will not be activated.

In both cases the command 'network eth0 start' (see syslog later) does
not start the network.

>From the pci-scan.c code I know that the message for socket 0 comes from
a a broken cardbus activation, message for socket 1 from an IRQ
assignment 0 or 255. I also followed the irq-conflict.html but without
success.

Can anyone help me to solve this problem - after reading howtos, emails,
... for about 3 days I couldn't find a way to solve this problem.

Here's the output from lspci -v (why has the Ethernet controller this
number: 20:00.0 ?)

00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
(rev 03)
        Flags: bus master, medium devsel, latency 32
        Memory at e0000000 (32-bit, prefetchable)
        Capabilities: [a0] AGP version 1.0

00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge
(rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, 66Mhz, medium devsel, latency 32
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        I/O behind bridge: 0000e000-0000efff
        Memory behind bridge: fd000000-feffffff
        Prefetchable memory behind bridge: e4000000-ebffffff

00:03.0 CardBus bridge: Texas Instruments PCI1420
        Subsystem: Dell Computer Corporation: Unknown device 00b0
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at <ignored> (32-bit, non-prefetchable)
        Bus: primary=00, secondary=20, subordinate=22, sec-latency=32
        I/O window 0: 00000200-000002ff
        I/O window 1: 00000000-00000003
        16-bit legacy interface ports at 0001

00:03.1 CardBus bridge: Texas Instruments PCI1420
        Subsystem: Dell Computer Corporation: Unknown device 00b0
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at <ignored> (32-bit, non-prefetchable)
        Bus: primary=00, secondary=23, subordinate=25, sec-latency=32
        I/O window 0: 00000000-00000003
        I/O window 1: 00000000-00000003
        16-bit legacy interface ports at 0001

00:07.0 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 32
        I/O ports at 0860

00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
(prog-if 00 [UHCI])
        Flags: bus master, medium devsel, latency 32, IRQ 11
        I/O ports at dce0

00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 03)
        Flags: medium devsel
 
00:08.0 Multimedia audio controller: ESS Technology ES1983S Maestro-3i
PCI Audio Accelerator (rev 10)
        Subsystem: Dell Computer Corporation: Unknown device 00b0
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at d800
        Memory at fbffe000 (32-bit, non-prefetchable)
        Capabilities: [c0] Power Management version 2
 
01:00.0 VGA compatible controller: ATI Technologies Inc Mobility M3 AGP
2x (rev 02) (prog-if 00 [VGA])
        Subsystem: Dell Computer Corporation: Unknown device 00b0
        Flags: stepping, 66Mhz, medium devsel, IRQ 11
        Memory at e8000000 (32-bit, prefetchable)
        I/O ports at ec00
        Memory at fdffc000 (32-bit, non-prefetchable)
        Capabilities: [50] AGP version 2.0
        Capabilities: [5c] Power Management version 2
 
20:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139
(rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RT8139
        Flags: bus master, medium devsel, latency 64, IRQ 11
        I/O ports at 0200
        Memory at a0003000 (32-bit,
non-prefetchable)                                                                               


System log (after a restart of the pcmcia services):

rcpcmcia: /sbin/insmod /lib/modules/2.2.16/pcmcia/pcmcia_core.o
kernel: Linux PCMCIA Card Services 3.1.17
kernel:   kernel build: 2.2.16 #11 Mon Sep 24 22:26:56 GMT 2001
kernel:   options:  [pci] [cardbus] [apm]
kernel: PCI routing table version 1.0 at 0xfbd80
rcpcmcia: /sbin/insmod /lib/modules/2.2.16/pcmcia/i82365.o
kernel: Intel PCIC probe:
kernel:   TI 1420 rev 00 PCI-to-CardBus at slot 00:03, mem 0x68000000
kernel:     host opts [0]: [ring] [pci + serial irq] [pci irq 11] [lat
32/32] [bus 32/34]
kernel:     host opts [1]: [ring] [pci + serial irq] [pci irq 11] [lat
32/32] [bus 35/37]
kernel:     ISA irqs (scanned) = 3,4,7,9,10 PCI status changes
rcpcmcia: /sbin/insmod /lib/modules/2.2.16/pcmcia/ds.o
cardmgr[1634]: starting, version is 3.1.17
cardmgr[1634]: watching 2 sockets
kernel: cs: IO port probe 0x0c00-0x0cff: excluding 0xcf8-0xcff
kernel: cs: IO port probe 0x0800-0x08ff: excluding 0x800-0x84f
kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x378-0x37f
0x3f8-0x3ff 0x4d0-0x4d7
kernel: cs: IO port probe 0x0a00-0x0aff: clean.
kernel: cs: cb_alloc(bus 32): vendor 0x10ec, device 0x8139
cardmgr[1634]: initializing socket 0
cardmgr[1634]: socket 0: RealTek RTL8139
cardmgr[1634]: executing: 'modprobe cb_enabler'
cardmgr[1634]: executing: 'modprobe pci-scan'
cardmgr[1634]: executing: 'modprobe cb_shim'
kernel: cb_shim.c:v1.00 4/15/2000  Donald Becker <becker@scyld.com>
kernel:  http://www.scyld.com/linux/drivers.html
cardmgr[1634]: executing: 'modprobe rtl8139'
kernel: rtl8139.c:v1.15 8/1/2001 Donald Becker, becker@scyld.com.
kernel:  http://www.scyld.com/network/rtl8139.html
kernel: Resources for CardBus device 'RealTek RTL8139 Fast Ethernet'
have not been allocated.
kernel: Activation has been delayed.
kernel: cs: cb_config(bus 32)
kernel:   fn 0 bar 1: io 0x200-0x2ff
kernel:   fn 0 bar 2: mem 0x60001000-0x600011ff
kernel:   irq 11
kernel: cs: cb_enable(bus 32)
kernel:   bridge io map 0 (flags 0x21): 0x200-0x2ff
kernel:   bridge mem map 0 (flags 0x1): 0x60001000-0x60001fff
kernel: Found a RealTek RTL8139 Fast Ethernet at 32/0 address
0x201->0x200 IRQ 11.
kernel: RealTek RTL8139 Fast Ethernet at 32/0 command 0x7.
kernel: eth0: RealTek RTL8139 Fast Ethernet at 0x200, IRQ 11,
00:50:fc:2d:02:60.
cardmgr[1634]: executing: './network start eth0'
PCMCIA: Shutting down Name Service Cache
Daemon^M^[[132C^[[9D^[[32m^[[1mdone^[[m^O
PCMCIA: Starting Name Service Cache
Daemon^M^[[132C^[[9D^[[32m^[[1mdone^[[m^O
cardmgr[1634]: initializing socket 1
cardmgr[1634]: socket 1: Serial or Modem
kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
cardmgr[1634]: executing: 'modprobe serial_cs'
kernel: Serial driver version 4.27 with HUB-6 MANY_PORTS MULTIPORT
SHARE_IRQ enabled
kernel: ttyS00 at 0x03f8 (irq = 4) is a 16550A
kernel: tty01 at 0x0af8 (irq = 3) is a 16550A
cardmgr[1634]: executing: './serial start
ttyS1'                                                                       


best regards
Martin