[vortex] 3c575_cb.c and the 3CXFEM656C CardBus PCMCIA

Illo de' Illis illo@pypki.org
Tue, 16 Jan 2001 12:26:51 +0100


On Tue, Jan 16, 2001 at 11:39:30AM +1100, Andrew Morton wrote:
> Not good.
> 
> Could you please go back to the first combination (kernel Cardbus+3c59x) and
> send the `dmesg' output.  Also, run `lspci -vvxx' and send the output
> which relates to the 3c656.
> 
> David may be able to suggest why the cardservices layer can't allocate the
> I/O space?

OK, I've tried the configuration with Linux v2.4.0-ac9+cardbus and 3c59x
Here is the kernel output after card insertion:

--
Jan 16 12:03:44 knuth kernel: cs: IO port probe 0x0c00-0x0cff: clean.
Jan 16 12:03:44 knuth kernel: cs: IO port probe 0x0800-0x08ff: clean.
Jan 16 12:03:44 knuth kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x378-0x37f 0x3f8-0x3ff 0x408-0x40f 0x480-0x48f 0x4d0-0x4d7
Jan 16 12:03:44 knuth kernel: cs: IO port probe 0x0a00-0x0aff: clean.
Jan 16 12:04:23 knuth kernel: cs: cb_alloc(bus 2): vendor 0x10b7, device 0x6564
Jan 16 12:04:23 knuth kernel: PCI: Failed to allocate resource 0 for PCI device 10b7:6564
Jan 16 12:04:23 knuth kernel:   got res[10800000:1080007f] for resource 1 of PCI device 10b7:6564
Jan 16 12:04:23 knuth kernel:   got res[10800080:108000ff] for resource 2 of PCI device 10b7:6564
Jan 16 12:04:23 knuth kernel:   got res[10400000:1041ffff] for resource 6 of PCI device 10b7:6564
Jan 16 12:04:23 knuth kernel: PCI: Enabling device 02:00.0 (0000 -> 0003)
Jan 16 12:04:23 knuth kernel: PCI: No IRQ known for interrupt pin A of device 02:00.0. Please try using pci=biosirq.
Jan 16 12:04:23 knuth kernel: PCI: Failed to allocate resource 0 for PCI device 10b7:6565
Jan 16 12:04:23 knuth kernel:   got res[10800100:108001ff] for resource 1 of PCI device 10b7:6565
Jan 16 12:04:23 knuth kernel:   got res[10800200:1080027f] for resource 2 of PCI device 10b7:6565
Jan 16 12:04:23 knuth kernel: PCI: Enabling device 02:00.1 (0000 -> 0003)
Jan 16 12:04:23 knuth kernel: PCI: No IRQ known for interrupt pin A of device 02:00.1. Please try using pci=biosirq.
Jan 16 12:06:39 knuth kernel: 3c59x.c:LK1.1.12 06 Jan 2000  Donald Becker and others. http://www.scyld.com/network/vortex.html $Revision: 1.102.2.46 $
Jan 16 12:06:39 knuth kernel: See Documentation/networking/vortex.txt
Jan 16 12:06:39 knuth kernel: eth0: 3Com PCI 3CXFEM656C Tornado+Winmodem CardBus at 0x1000, PCI: Setting latency timer of device 02:00.0 to 64
Jan 16 12:06:39 knuth kernel:  ff:ff:ff:ff:ff:ff, IRQ 9
Jan 16 12:06:39 knuth kernel:   product code '' rev ffff.15 date 15-31-127
Jan 16 12:06:39 knuth kernel: eth0: CardBus functions mapped 10800080->c8865080
Jan 16 12:06:39 knuth kernel: Full duplex capable
Jan 16 12:06:39 knuth kernel:   1024K word-wide RAM 3:5 Rx:Tx split, autoselect/<invalid transceiver> interface.
Jan 16 12:06:39 knuth kernel:   Enabling bus-master transmits and early receives.
--

(it seems that 0xff is all the driver can read from the device) When I try to
do a ifconfig eth0 up it says
eth0: command 0x5800 did not complete! Status=0xffff
eth0: command 0x2800 did not complete! Status=0xffff

And the output of lspci -v is:

--
02:00.0 Ethernet controller: 3Com Corporation 3CCFEM656 [id 6564] Cyclone CardBus (rev 10)
	Subsystem: 3Com Corporation: Unknown device 656c
	Flags: bus master, medium devsel, latency 64, IRQ 9
	I/O ports at 1000
	Memory at 10800000 (32-bit, non-prefetchable) [size=128]
	Memory at 10800080 (32-bit, non-prefetchable) [size=128]
	Expansion ROM at 10400000 [size=128K]
	Capabilities: [50] Power Management version 2
02:00.1 Communication controller: 3Com Corporation: Unknown device 6565 (rev 10)
	Subsystem: 3Com Corporation: Unknown device 656c
	Flags: medium devsel, IRQ 9
	I/O ports at 1000
	Memory at 10800100 (32-bit, non-prefetchable) [size=256]
	Memory at 10800200 (32-bit, non-prefetchable) [size=128]
	Capabilities: [50] Power Management version 2
--

And another (quasi-off-topic) thing: when I use the kernel 2.4.0 cardbus
features, I have to insert a card two times in a row for it to be detected...
it doesn't happen with the external PCMCIA package.

Ciao,
Illo.

-- 
----------------------------------------------------------------------------
Ilario Nardinocchi, illo@CS.UniBO.IT - Computer Science Adept since 1982
                    illo@pypki.org   - Oy gevalt, I'm so ferklempt that I
                                       could plotz!
Know-nothing-bozo rule:
The views expressed above are entirely mine and do not represent the views,
policy or understanding of any other person or official body.
----------------------------------------------------------------------------