Subject: Problems with Xircom ethernet card on i386 laptop
To: None <port-i386@netbsd.org>
From: maximum entropy <entropy@tappedin.com>
List: port-i386
Date: 06/06/2001 03:23:26
Hi people,

I recently got my hands on an IBM ThinkPad 560X.  I had a 1.5 binary
distribution set handy, so I installed that.

Later I tried to upgrade the kernel to 1.5.1_BETA2 from the recent
snapshot.  When I did that I started getting really slow network
performance, and lots of messages saying:
Jun  5 17:51:45 panic /netbsd: xi0: discarding oversize frame (len=1518)

(panic is the machine name, it's not a panic message, so don't panic:-)

I then tried -current from the recent 1.5V snapshot, and it also
misbehaves there in the same way.

I don't think the xi driver is completely to blame, since...
cvs diff -u -rnetbsd-1-5-RELEASE -rnetbsd-1-5-BETA2 if_xi.c
...shows no changes, and the lossage seems to have been introduced
between those two tags.

Any help would be appreciated.  dmesg output from 1.5 and -current follow.

*** dmesg output from 1.5:

NetBSD 1.5 (GENERIC_LAPTOP) #1: Sun Nov 19 21:53:48 MET 2000
    fvdl@sushi:/work/trees/netbsd-1-5/sys/arch/i386/compile/GENERIC_LAPTOP
cpu0: Intel Pentium/MMX (Tillamook) (586-class)
total memory = 97728 KB
avail memory = 86408 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 0
PCI IRQ Routing Table rev. 1.0 found at 0xfcc30, size 96 bytes (4 entries)
PCI Interrupt Router at 000:01:0
PCI Exclusive IRQs: 11
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:01:2 0x8086 0x7112   D  0x03  11  0    already assigned
000:02:0 0x104c 0xac16   A  0x00  11  0    fixed up
000:02:1 0x104c 0xac16   B  0x01  11  0    fixed up
000:03:0 0x10c8 0x0004   A  0x00  11  0    already assigned
------------------------------------------
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
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7100 
		[OK]
000:01:0 0x8086 0x7110 
		[OK]
000:01:1 0x8086 0x7111 
	20h port 0x0000fcf0 0x00000010
		[OK]
000:01:2 0x8086 0x7112 
	20h port 0x00009000 0x00000020
		[OK]
000:01:3 0x8086 0x7113 
		[OK]
000:02:0 0x104c 0xac16 
	10h mem  0x20822000 0x00001000
		[OK]
000:02:1 0x104c 0xac16 
	10h mem  0x20821000 0x00001000
		[OK]
000:03:0 0x10c8 0x0004 
	10h mem  0x08000000 0x01000000
	14h mem  0x09200000 0x00200000
	18h mem  0x09000000 0x00100000
		[OK]
--------------------------[  0 devices bogus]
 Physical memory end: 0x05fcd000
 PCI memory mapped I/O space start: 0x06000000
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 82439TX System Controller (MTXC) (rev. 0x01)
pcib0 at pci0 dev 1 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x01)
pciide0 at pci0 dev 1 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DTCA-24090>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 3909 MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552 sectors
wd0: 32-bit 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
pciide0: secondary channel ignored (disabled)
uhci0 at pci0 dev 1 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 1 function 3 not configured
cbb0 at pci0 dev 2 function 0: Texas Instruments PCI1250 PCI-CardBus Bridge (rev. 0x02)
cbb1 at pci0 dev 2 function 1: Texas Instruments PCI1250 PCI-CardBus Bridge (rev. 0x02)
vga1 at pci0 dev 3 function 0: Neomagic MagicGraph 128XD (rev. 0x00)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
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
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
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
apm0 at mainbus0: Power Management spec V1.2
biomask efcd netmask efcd ttymask ffcf
xi0 at pcmcia1 function 0: Xircom CreditCard 10/100 Ethernet
xi0: Ethernet address 00:80:c7:64:83:71
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
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)
wsmux1: connecting to wsdisplay0

*** dmesg output from 1.5V:

NetBSD 1.5V (GENERIC_LAPTOP) #47: Sat May 26 12:23:14 PDT 2001
    chs@pc:/usr/chs/netbsd/src/sys/arch/i386/compile/GENERIC_LAPTOP
cpu0: Intel Pentium/MMX (Tillamook) (586-class), 231.78 MHz
cpu0: features 8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8001bf<MMX>
total memory = 97724 KB
avail memory = 86220 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 0
PCI IRQ Routing Table rev. 1.0 found at 0xfcc30, size 96 bytes (4 entries)
PCI Interrupt Router at 000:01:0
PCI Exclusive IRQs: 11
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:01:2 0x8086 0x7112   D  0x03  11  0    already assigned
000:02:0 0x104c 0xac16   A  0x00  11  0    fixed up
000:02:1 0x104c 0xac16   B  0x01  11  0    fixed up
000:03:0 0x10c8 0x0004   A  0x00  11  0    already assigned
------------------------------------------
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
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7100 
		[OK]
000:01:0 0x8086 0x7110 
		[OK]
000:01:1 0x8086 0x7111 
	20h port 0x0000fcf0 0x00000010
		[OK]
000:01:2 0x8086 0x7112 
	20h port 0x00009000 0x00000020
		[OK]
000:01:3 0x8086 0x7113 
		[OK]
000:02:0 0x104c 0xac16 
	10h mem  0x20822000 0x00001000
		[OK]
000:02:1 0x104c 0xac16 
	10h mem  0x20821000 0x00001000
		[OK]
000:03:0 0x10c8 0x0004 
	10h mem  0x08000000 0x01000000
	14h mem  0x09200000 0x00200000
	18h mem  0x09000000 0x00100000
		[OK]
--------------------------[  0 devices bogus]
 Physical memory end: 0x05fce000
 PCI memory mapped I/O space start: 0x06000000
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 82439TX System Controller (MTXC) (rev. 0x01)
pcib0 at pci0 dev 1 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x01)
pciide0 at pci0 dev 1 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DTCA-24090>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 3909 MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel ignored (disabled)
uhci0 at pci0 dev 1 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 1 function 3 not configured
cbb0 at pci0 dev 2 function 0: Texas Instruments PCI1250 PCI-CardBus Bridge (rev. 0x02)
cbb1 at pci0 dev 2 function 1: Texas Instruments PCI1250 PCI-CardBus Bridge (rev. 0x02)
vga1 at pci0 dev 3 function 0: Neomagic MagicGraph 128XD (rev. 0x00)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
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
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
cbb0: interrupting at irq 11
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
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
apm0 at mainbus0: Power Management spec V1.2
biomask efcd netmask efcd ttymask ffcf
xi0 at pcmcia1 function 0: Xircom CreditCard 10/100 Ethernet
xi0: Ethernet address 00:80:c7:64:83:71
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
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)
wsmux1: connecting to wsdisplay0

Cheers,
entropy

--
entropy -- it's not just a good idea, it's the second law.