Re: PROBLEM: ds.o fails to properly enable CardBus card (2.4.0t8)

2000-09-15 Thread David Hinds

On Sat, Sep 16, 2000 at 01:02:10AM +0200, Dag B wrote:
> 
> cs: cb_alloc(bus 4): vendor 0x115d, device 0x0003
> PCI: Failed to allocate resource 1 for PCI device 115d:0003
> PCI: Failed to allocate resource 2 for PCI device 115d:0003
> PCI: Failed to allocate resource 6 for PCI device 115d:0003

This part appears to be a PCI bug; it is not allocating the memory
resources for the card successfully.  The message is not particularly
helpful, however.

> So: the PCI code says that the last bus is '1', but my CardBus bus #4.
> Is this expected?

I don't think this is a problem.

> I also notice that if I insmod/rmmod ds.o multiple times, I will get
> multiple entries for the devices on the card in the 'lspci' output:
> 
> 04:00.0 Ethernet controller: Xircom Cardbus Ethernet 10/100 (rev 03)
> 04:00.0 Ethernet controller: Xircom Cardbus Ethernet 10/100 (rev 03)

This is a PCMCIA bug and appears to not be 2.4 specific; luckily there
is an easy workaround: don't insmod/rmmod ds.o ;)  I'll fix this.

-- Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



PROBLEM: ds.o fails to properly enable CardBus card (2.4.0t8)

2000-09-15 Thread Dag B

Hi

I have a Xircom RealPort card which currently is useless under Linux on
my laptop. I have tried the kernel pcmcia code and David's standalone
package.
After insmod'ing ds.o, I get:

cs: cb_alloc(bus 4): vendor 0x115d, device 0x0003
PCI: Failed to allocate resource 1 for PCI device 115d:0003
PCI: Failed to allocate resource 2 for PCI device 115d:0003
PCI: Failed to allocate resource 6 for PCI device 115d:0003
PCI: Enabling device 04:00.0 ( -> 0003)
PCI: Failed to allocate resource 1 for PCI device 115d:0103
PCI: Failed to allocate resource 2 for PCI device 115d:0103
PCI: Failed to allocate resource 6 for PCI device 115d:0103
PCI: Enabling device 04:00.1 ( -> 0003)

I also note the following output from the kernel:
PCI: PCI BIOS revision 2.10 entry at 0xfc0ee, last bus=1

So: the PCI code says that the last bus is '1', but my CardBus bus #4.
Is this expected?

I also notice that if I insmod/rmmod ds.o multiple times, I will get
multiple entries for the devices on the card in the 'lspci' output:

04:00.0 Ethernet controller: Xircom Cardbus Ethernet 10/100 (rev 03)
04:00.0 Ethernet controller: Xircom Cardbus Ethernet 10/100 (rev 03)
04:00.1 VGA compatible controller: Xircom Cardbus Ethernet + 56k Modem
(rev 03)
04:00.1 VGA compatible controller: Xircom Cardbus Ethernet + 56k Modem
(rev 03)

Hardware: Dell CPiA366 (tested bios rev. A01/A05/A09), Xircom RealPort
RBEM56G-100.

Software: plain 2.4.0-test8, gcc 2.95.2.




The following should illustrate the problem in full.

dagblap:~# lsmod
Module  Size  Used by
dagblap:~# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
(rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge
(rev 03)
00:03.0 CardBus bridge: Texas Instruments PCI1225 (rev 01)
00:03.1 CardBus bridge: Texas Instruments PCI1225 (rev 01)
00:07.0 Bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)
00:0d.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX
[Boomerang]
01:00.0 VGA compatible controller: Neomagic Corporation [MagicMedia
256AV] (rev 20)
01:00.1 Multimedia audio controller: Neomagic Corporation [MagicMedia
256AV Audio] (rev 20)
dagblap:~# insmod pcmcia_core
Using /lib/modules/2.4.0-test8/kernel/drivers/pcmcia/pcmcia_core.o
dagblap:~# insmod yenta_socket
Using /lib/modules/2.4.0-test8/kernel/drivers/pcmcia/yenta_socket.o
dagblap:~# insmod ds
Using /lib/modules/2.4.0-test8/kernel/drivers/pcmcia/ds.o
dagblap:~# dmesg 
Linux version 2.4.0-test8 (root@dagblap) (gcc version 2.95.2 19991024
(release)) #4 Fri Sep 15 17:05:
21 CEST 2000
BIOS-provided physical RAM map:
 BIOS-e820: 0009fc00 @  (usable)
 BIOS-e820: 0400 @ 0009fc00 (reserved)
 BIOS-e820: c000 @ 000c (reserved)
 BIOS-e820: 05ef @ 0010 (usable)
 BIOS-e820: 0001 @ 05ff (ACPI data)
 BIOS-e820: 0006 @ 100a (reserved)
 BIOS-e820: 0020 @ ffe0 (reserved)
On node 0 totalpages: 24560
zone(0): 4096 pages.
zone(1): 20464 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=test8d ro
root=/dev/discs/disc0/part5
Initializing CPU#0
Detected 363963654 Hz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 725.81 BogoMIPS
Memory: 94284k/98240k available (1487k kernel code, 3568k reserved, 104k
data, 196k init, 0k highmem)

Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
CPU: Intel Mobile Pentium II stepping 0a
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.36 (2221) Richard Gooch ([EMAIL PROTECTED])
PCI: PCI BIOS revision 2.10 entry at 0xfc0ee, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router default [8086/1234] at 00:07.0
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
Starting kswapd v1.7
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
vesafb: framebuffer at 0xfb00, mapped to 0xc680, size 2432k
vesafb: mode is 1024x768x8, linelength=1024, pages=2
vesafb: protected mode interface info at c000:aea0
vesafb: scrolling: redraw
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame 

PROBLEM: ds.o fails to properly enable CardBus card (2.4.0t8)

2000-09-15 Thread Dag B

Hi

I have a Xircom RealPort card which currently is useless under Linux on
my laptop. I have tried the kernel pcmcia code and David's standalone
package.
After insmod'ing ds.o, I get:

cs: cb_alloc(bus 4): vendor 0x115d, device 0x0003
PCI: Failed to allocate resource 1 for PCI device 115d:0003
PCI: Failed to allocate resource 2 for PCI device 115d:0003
PCI: Failed to allocate resource 6 for PCI device 115d:0003
PCI: Enabling device 04:00.0 ( - 0003)
PCI: Failed to allocate resource 1 for PCI device 115d:0103
PCI: Failed to allocate resource 2 for PCI device 115d:0103
PCI: Failed to allocate resource 6 for PCI device 115d:0103
PCI: Enabling device 04:00.1 ( - 0003)

I also note the following output from the kernel:
PCI: PCI BIOS revision 2.10 entry at 0xfc0ee, last bus=1

So: the PCI code says that the last bus is '1', but my CardBus bus #4.
Is this expected?

I also notice that if I insmod/rmmod ds.o multiple times, I will get
multiple entries for the devices on the card in the 'lspci' output:

04:00.0 Ethernet controller: Xircom Cardbus Ethernet 10/100 (rev 03)
04:00.0 Ethernet controller: Xircom Cardbus Ethernet 10/100 (rev 03)
04:00.1 VGA compatible controller: Xircom Cardbus Ethernet + 56k Modem
(rev 03)
04:00.1 VGA compatible controller: Xircom Cardbus Ethernet + 56k Modem
(rev 03)

Hardware: Dell CPiA366 (tested bios rev. A01/A05/A09), Xircom RealPort
RBEM56G-100.

Software: plain 2.4.0-test8, gcc 2.95.2.




The following should illustrate the problem in full.

dagblap:~# lsmod
Module  Size  Used by
dagblap:~# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
(rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge
(rev 03)
00:03.0 CardBus bridge: Texas Instruments PCI1225 (rev 01)
00:03.1 CardBus bridge: Texas Instruments PCI1225 (rev 01)
00:07.0 Bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)
00:0d.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX
[Boomerang]
01:00.0 VGA compatible controller: Neomagic Corporation [MagicMedia
256AV] (rev 20)
01:00.1 Multimedia audio controller: Neomagic Corporation [MagicMedia
256AV Audio] (rev 20)
dagblap:~# insmod pcmcia_core
Using /lib/modules/2.4.0-test8/kernel/drivers/pcmcia/pcmcia_core.o
dagblap:~# insmod yenta_socket
Using /lib/modules/2.4.0-test8/kernel/drivers/pcmcia/yenta_socket.o
dagblap:~# insmod ds
Using /lib/modules/2.4.0-test8/kernel/drivers/pcmcia/ds.o
dagblap:~# dmesg 
Linux version 2.4.0-test8 (root@dagblap) (gcc version 2.95.2 19991024
(release)) #4 Fri Sep 15 17:05:
21 CEST 2000
BIOS-provided physical RAM map:
 BIOS-e820: 0009fc00 @  (usable)
 BIOS-e820: 0400 @ 0009fc00 (reserved)
 BIOS-e820: c000 @ 000c (reserved)
 BIOS-e820: 05ef @ 0010 (usable)
 BIOS-e820: 0001 @ 05ff (ACPI data)
 BIOS-e820: 0006 @ 100a (reserved)
 BIOS-e820: 0020 @ ffe0 (reserved)
On node 0 totalpages: 24560
zone(0): 4096 pages.
zone(1): 20464 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=test8d ro
root=/dev/discs/disc0/part5
Initializing CPU#0
Detected 363963654 Hz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 725.81 BogoMIPS
Memory: 94284k/98240k available (1487k kernel code, 3568k reserved, 104k
data, 196k init, 0k highmem)

Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
CPU: Intel Mobile Pentium II stepping 0a
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.36 (2221) Richard Gooch ([EMAIL PROTECTED])
PCI: PCI BIOS revision 2.10 entry at 0xfc0ee, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router default [8086/1234] at 00:07.0
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
Starting kswapd v1.7
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
vesafb: framebuffer at 0xfb00, mapped to 0xc680, size 2432k
vesafb: mode is 1024x768x8, linelength=1024, pages=2
vesafb: protected mode interface info at c000:aea0
vesafb: scrolling: redraw
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame