Subject: cardbus ethernet throughput
To: None <current-users@netbsd.org>
From: Laine Stump <lainestump@rcn.com>
List: current-users
Date: 12/18/1999 20:37:55
At 12:17 PM 12/16/99 -0800, Wolfgang Rupprecht wrote:
>
>With the tlp driver on both an old ppro-150 (intel venus brd) and on
>the sony505tx I'm seeing:
>
>        10099.90 KBytes/sec ppro->sony
>         2639.46 KBytes/sec sony->ppro

A different datapoint: I have a 266Mhz PII Thinkpad 600 with ex0 (3c575)
with sources as of Friday. When I do ttcp to/from a 450Mhz PII desktop with
a tulip (older NetGear), I get:

	9299.04 KB/sec  desktop->ThinkPad
	2791.40 KB/sec  ThinkPad->desktop

In both cases, the cardbus machine is fast at receiving but slow at
transmitting. Could it be the same problem (ie, it isn't in the tlp driver,
but something to do with cardbus)? (It occurs to me that it would be useful
to check the desktop against another desktop, but I unfortunately don't
have a 2nd disk with NetBSD installed).

Other notes about running cardbus+ex0 on the Thinkpad:

1) As others have noted, it locks up the machine irreversibly if I unplug
any cards (I've tried the 3C575, a 3C589 (PCMCIA), and a Mhz 28.8 modem
(PCMCIA) so far).

2) ifconfig shows that the ex0 phy thinks it's operating at 10baseT,
although the "100" light is lit on the dongle, and it's definitely moving
faster than 10Mbit/s.

In case it's of any use, I've appended the dmesg output below:

NetBSD 1.4P (GENERIC-DDB) #1: Fri Dec 17 16:17:09 EST 1999
    laine@www.laine.org:/usr/src/sys/arch/i386/compile/GENERIC-DDB
cpu0: family 6 model 5 step 2
cpu0: Intel Pentium II (Deschutes) (686-class)
total memory = 97728 KB
avail memory = 86428 KB
using 1247 buffers containing 4988 KB of memory
BIOS32 rev. 0 found at 0xfd820
PCI BIOS rev. 2.1 found at 0xfd880
pcibios: config mechanism [1][x], special cycles [1][x], last bus 6
PCI IRQ Routing Table rev. 1.0 found at 0xf9e30, size 96 bytes (4 entries)
PCI Interrupt Router at 000:07:0
PCI Exclusive IRQs: 11
--------------------------------------------
  device vendor product pin PIRQ   IRQ stage
--------------------------------------------
000:02:0 0x104c 0xac16  A   0x00   11  0
000:02:1 0x104c 0xac16  B   0x01   11  0
000:03:0 0x10c8 0x0004  A   0x00   11  0
000:07:2 0x8086 0x7112  D   0x03   11  0
--------------------------------------------
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI bus #2 is the last bus
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (AGP disabled) (rev. 0x02)
cbb0 at pci0 dev 2 function 0 (TI1250), chipflags 3
cbb1 at pci0 dev 2 function 1 (TI1250), chipflags 3
vga1 at pci0 dev 3 function 0: Neomagic MagicGraph 128XD (rev. 0x01)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x01)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK227A-41>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 3909MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data
transfers)
pciide0: secondary channel wired to compatibility mode
wd1 at pciide0 channel 1 drive 0: <TOSHIBA MK2103MAV>
wd1: drive supports 16-sector pio transfers, lba addressing
wd1: 2067MB, 4200 cyl, 16 head, 63 sec, 512 bytes/sect x 4233600 sectors
wd1: 32-bits data port
wd1: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
wd1(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4)
(rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge,
revision 0x01) at pci0 dev 7 function 3 not configured
cbb0: interrupting at irq 11
cbb0: cacheline 0x8 lattimer 0xb0
cbb0: bhlc 0x82a808 lscp 0xb0010100
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cbb1: interrupting at irq 11
cbb1: cacheline 0x8 lattimer 0xb0
cbb1: bhlc 0x82a808 lscp 0xb0020200
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.02
audio0 at sb0: half duplex, mmap, independent
midi0 at sb0: SB MIDI UART
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3
pcppi0 at isa0 port 0x61
midi2 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
apm0: battery life expectancy: 100%
apm0: A/C state: on
apm0: battery charge state: high charging
apm0: battery life expectancy: 100%
apm0: A/C state: on
apm0: battery charge state: high charging
apm0: battery life expectancy: 100%
apm0: A/C state: on
apm0: battery charge state: high charging
biomask ef4d netmask ef4d ttymask ffcf
IPsec: Initialized Security Association Processing.
wd0: no disk label
boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: MEGAHERTZ, XJ2288, V.34 PCMCIA MODEM
pcmcia0: Manufacturer code 0xffffffff, product 0xffffffff
pcmcia0: function 0: serial port, ccr addr 100 mask f
pcmcia0: function 0, config table entry 32: I/O card; irq mask ffff; iomask
a, iospace 3f8-3ff; audio
pcmcia0: function 0, config table entry 33: I/O card; irq mask ffff; iomask
a, iospace 2f8-2ff; io8 audio
pcmcia0: function 0, config table entry 34: I/O card; irq mask ffff; iomask
a, iospace 3e8-3ef; io8 audio
pcmcia0: function 0, config table entry 35: I/O card; irq mask ffff; iomask
a, iospace 2e8-2ef; io8 audio
com3 at pcmcia0 function 0: serial device
com3: ns16550a, working fifo
ex0 at cardbus1 dev 0 function 0: 3Com 3c575B-TX Ethernet
ex0: interrupting at 11
ex0: MAC address 00:50:04:5c:32:e7
tqphy0 at ex0 phy 0: 78Q2120 10/100 media interface, rev. 3
tqphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ex0: supplying EUI64: 00:50:04:ff:fe:5c:32:e7
IP Filter: initialized.  Default = pass all, Logging = enabled
IP Filter: v3.3.5
ex0: starting DAD for fe80:000f::0250:04ff:fe5c:32e7
ex0: DAD complete for fe80:000f::0250:04ff:fe5c:32e7 - no duplicates found
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)