[tulip] Tulip and PowerPC endian issue?

Robert W March RWMarch@sympatico.ca
Fri Jan 31 10:43:58 2003


On January 30, 2003 16:14, Jim Rowe wrote:
> Has this driver been known to work correctly with a CardBus interface on
> the PPC? I'm working with some custom hardware and it would be helpful
> to know if the driver has been tested on such a setup.
>
> Thanks,
> Jim


Hello Jim,

I can tell you that I also have attempted to use a Netgear FA511 CardBus PC 
Card with both Donald's driver and, in my case, the kernel 2.4.18 driver. I 
have had no success either.  The appropriate modules load OK, occasionally 
ping bytes are transmitted but few if any are received.  I would like to see 
this card working but for now it is sitting on the shelf.  I have gone back 
to using an NE2000 card.  Others have reported on this list of failure with 
this card.

The following are my results.  You will notice that the eeprom contents have 
come up empty.  On some occasions the eeprom contents were present but still 
the card did not function.

# dmesg |grep PCI:
PCI: PCI BIOS revision 2.10 entry at 0xfd880, last bus=7
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router PIIX [8086/7110] at 00:07.0
PCI: Found IRQ 11 for device 00:07.2
PCI: Found IRQ 11 for device 00:02.0
PCI: Sharing IRQ 11 with 00:06.0
PCI: Sharing IRQ 11 with 01:00.0
PCI: Found IRQ 11 for device 00:02.1
PCI: Enabling device 05:00.0 (0000 -> 0003)
PCI: Setting latency timer of device 05:00.0 to 64

# dmesg |grep cs:
cs: cb_alloc(bus 5): vendor 0x1317, device 0x1985
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x130-0x137 0x200-0x207 0x220-0x22f 
0
x388-0x38f 0x3b8-0x3df 0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.

# mii-diag
Basic registers of MII PHY #1:  3100 786d 001d 2411 05e1 41e1 0007 2001.
 The autonegotiated capability is 01e0.
The autonegotiated media type is 100baseTx-FD.
 Basic mode control register 0x3100: Auto-negotiation enabled.
 You have link beat, and everything is working OK.
 Your link partner advertised 41e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
   End of basic transceiver information.

# tulip-diag -eee
tulip-diag.c:v2.16 12/17/2002 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a ADMtek AL985 Centaur-C adapter at 0x4800.
 Comet duplex is reported in the MII status registers.
 Transmit started, Receive started.
  The Rx process state is 'Waiting for packets'.
  The Tx process state is 'Idle'.
  The transmit threshold is 128.
  Comet MAC address registers 697a1000 ffff38f1
  Comet multicast filter 0000000040000000.
EEPROM 256 words, 8 address bits.
WARNING: The EEPROM is missing or erased!
  Ethernet MAC Station Address ff:ff:ff:ff:ff:ff.
  Default connection type 'Default'.
  PCI IDs Vendor ffff Device ffff  Subsystem ffff ffff
  PCI min_grant 255 max_latency 255.
  CSR18 power-up setting 0xffff****.
EEPROM contents (256 words):
0x00:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x08:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x10:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x18:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x20:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x28:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x30:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x38:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x40:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x48:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x50:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x58:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x60:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x68:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x70:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x78:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x80:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x88:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x90:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0x98:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xa0:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xa8:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xb0:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xb8:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xc0:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xc8:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xd0:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xd8:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xe0:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xe8:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xf0:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
0xf8:  ffff ffff ffff ffff ffff ffff ffff ffff  ________________
 ID block CRC 0xfa (vs. 0xff).
  Full contents CRC 0x6a15 (read as 0xffff).

# lspci -v
00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 
03
)
        Flags: bus master, medium devsel, latency 64
        Memory at 40000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [a0] AGP version 1.0

00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 
03)
(prog-if 00 [Normal decode])
        Flags: bus master, 66Mhz, medium devsel, latency 168
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=176
        I/O behind bridge: 0000d000-0000dfff
        Memory behind bridge: 70000000-dfffffff
        Prefetchable memory behind bridge: e0000000-f7ffffff

00:02.0 CardBus bridge: Texas Instruments PCI1251A
        Subsystem: IBM: Unknown device 00eb
        Flags: bus master, medium devsel, latency 168, IRQ 11
        Memory at 50102000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=00, secondary=02, subordinate=04, sec-latency=176
        Memory window 0: 12000000-123ff000 (prefetchable)
        Memory window 1: 12400000-127ff000
        I/O window 0: 00004000-000040ff
        I/O window 1: 00004400-000044ff
        16-bit legacy interface ports at 0001

00:02.1 CardBus bridge: Texas Instruments PCI1251A
        Subsystem: IBM: Unknown device 00eb
        Flags: bus master, medium devsel, latency 168, IRQ 11
        Memory at 50101000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=00, secondary=05, subordinate=07, sec-latency=176
        Memory window 0: 12800000-12bff000 (prefetchable)
        Memory window 1: 12c00000-12fff000
        I/O window 0: 00004800-000048ff
        I/O window 1: 00004c00-00004cff
        16-bit legacy interface ports at 0001
00:06.0 Multimedia audio controller: Cirrus Logic CS 4610/11 [CrystalClear 
Sound
Fusion Audio Accelerator] (rev 01)
        Subsystem: IBM CS4610 SoundFusion Audio Accelerator
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at 50100000 (32-bit, non-prefetchable) [size=4K]
        Memory at 50000000 (32-bit, non-prefetchable) [size=1M]

00:07.0 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
        Flags: bus master, medium devsel, latency 0

00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 
80
[Master])
        Flags: bus master, medium devsel, latency 48
        [virtual] I/O ports at 01f0
        [virtual] I/O ports at 03f4
        [virtual] I/O ports at 0170
        [virtual] I/O ports at 0374
        I/O ports at fcf0 [size=16]

00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 
00
 [UHCI])
        Flags: bus master, medium devsel, latency 48, IRQ 11
        I/O ports at 8400 [size=32]

00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
        Flags: medium devsel, IRQ 9

01:00.0 VGA compatible controller: Neomagic Corporation [MagicMedia 256AV] 
(rev
20) (prog-if 00 [VGA])
        Subsystem: IBM: Unknown device 00dd
        Flags: bus master, medium devsel, latency 128, IRQ 11
        Memory at e0000000 (32-bit, prefetchable) [size=16M]
        Memory at 70000000 (32-bit, non-prefetchable) [size=4M]
        Memory at 70400000 (32-bit, non-prefetchable) [size=1M]
        Capabilities: [dc] Power Management version 1

05:00.0 Ethernet controller: Linksys Fast Ethernet 10/100 (rev 11)
        Subsystem: Netgear: Unknown device 511a
        Flags: bus master, medium devsel, latency 64, IRQ 11
        I/O ports at 4800 [size=256]
        Memory at 12c00000 (32-bit, non-prefetchable) [size=1K]
        Expansion ROM at 12800000 [size=128K]

-Robert
-- 
                                  Robert March
                              St Andrew's House
                          L'Orignal  ON  K0B 1K0