NetBSD Problem Report #36347

From riz@w.corp.revision3.com  Wed May 16 00:29:13 2007
Return-Path: <riz@w.corp.revision3.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 29A7463B400
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 16 May 2007 00:29:13 +0000 (UTC)
Message-Id: <20070515222953.0B25A4D6B9E@w.corp.revision3.com>
Date: Tue, 15 May 2007 15:29:53 -0700 (PDT)
From: riz@tastylime.net
Reply-To: riz@tastylime.net
To: gnats-bugs@NetBSD.org
Subject: i80003 dual 1000baseT Ethernet problems with wm driver
X-Send-Pr-Version: 3.95

>Number:         36347
>Category:       kern
>Synopsis:       Things go blooey when using both interfaces on i80003 chipset board
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 16 00:30:00 +0000 2007
>Last-Modified:  Sat Dec 31 19:45:01 +0000 2011
>Originator:     Jeff Rizzo
>Release:        NetBSD 4.0_BETA2
>Organization:

>Environment:


System: NetBSD w.corp.revision3.com 4.0_BETA2 NetBSD 4.0_BETA2 (W) #5: Tue May 15 14:27:39 PDT 2007 riz@w.corp.revision3.com:/usr/src/sys/arch/amd64/compile/W amd64
Architecture: x86_64
Machine: amd64
>Description:
	wm0 and/or wm1 work "well enough" when only one is used.  When
	the second interface is brought up and any significant traffic
	put over it, lots of this is seen on console:


May 15 14:52:01 w /netbsd: wm0: MDIC read timed out: phy 1 reg 17
May 15 14:52:01 w /netbsd: wm0: MDIC write timed out: phy 1 reg 22
May 15 14:52:01 w /netbsd: wm0: MDIC read timed out: phy 1 reg 0
May 15 14:52:01 w /netbsd: wm0: MDIC write error: phy 1 reg 22
May 15 14:52:01 w /netbsd: wm0: MDIC read timed out: phy 1 reg 16
May 15 14:52:01 w /netbsd: wm0: MDIC write timed out: phy 1 reg 22
May 15 14:52:01 w /netbsd: wm0: MDIC write timed out: phy 1 reg 16
May 15 14:52:02 w /netbsd: wm0: MDIC write timed out: phy 1 reg 22
May 15 14:52:02 w /netbsd: wm0: MDIC read timed out: phy 1 reg 17


... and things don't work quite right.

This is with 4.0_BETA2 that has all wm-related fixes that have appeared
of late...

Here's the dmesg from this box:

NetBSD 4.0_BETA2 (W) #5: Tue May 15 14:27:39 PDT 2007
        riz@w.corp.revision3.com:/usr/src/sys/arch/amd64/compile/W
total memory = 8190 MB
avail memory = 7893 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU            5130  @ 2.00GHz, 2000.08 MHz
cpu0: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,B21,MMXX,MMX>
cpu0: features: bffbfbff<FXSR,SSE,SSE2,B27,HTT,LONG,3DNOW>
cpu0: calibrating local timer
cpu0: apic clock running at 333 MHz
cpu0: 64 page colors
cpu1 at mainbus0: apid 6 (application processor)
cpu1: starting
cpu1: Intel(R) Xeon(R) CPU            5130  @ 2.00GHz, 2000.00 MHz
cpu1: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,B21,MMXX,MMX>
cpu1: features: bffbfbff<FXSR,SSE,SSE2,B27,HTT,LONG,3DNOW>
cpu2 at mainbus0: apid 1 (application processor)
cpu2: starting
cpu2: Intel(R) Xeon(R) CPU            5130  @ 2.00GHz, 2000.00 MHz
cpu2: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu2: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,B21,MMXX,MMX>
cpu2: features: bffbfbff<FXSR,SSE,SSE2,B27,HTT,LONG,3DNOW>
cpu3 at mainbus0: apid 7 (application processor)
cpu3: starting
cpu3: Intel(R) Xeon(R) CPU            5130  @ 2.00GHz, 2000.00 MHz
cpu3: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu3: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,B21,MMXX,MMX>
cpu3: features: bffbfbff<FXSR,SSE,SSE2,B27,HTT,LONG,3DNOW>
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 20, 24 pins
ioapic1 at mainbus0 apid 3 (I/O APIC)
ioapic1: pa 0xfec80000, version 20, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
PNP0C04 [Math Coprocessor] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
PNP0800 [AT-style speaker sound] at acpi0 not configured
PNP0100 [AT Timer] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
INT0800 [Intel FWH Random Number Generator] at acpi0 not configured
PNP0A05 [Generic Container Device] at acpi0 not configured
PNP0303 [IBM Enhanced (101/102-key, PS/2 mouse support)] at acpi0 not configured
PNP0F13 [PS/2 Port for PS/2-style Mice] at acpi0 not configured
PNP0501 [16550A-compatible COM port] at acpi0 not configured
PNP0501 [16550A-compatible COM port] at acpi0 not configured
PNP0700 [PC standard floppy disk controller] at acpi0 not configured
PNP0C0C [ACPI power button device] at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel product 0x25d8 (rev. 0xb1)
ppb0 at pci0 dev 2 function 0: Intel product 0x25f7 (rev. 0xb1)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci1 dev 0 function 0: Intel 63xxESB PCI Express Upstream Port (rev. 0x01)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci2 dev 0 function 0: Intel 63xxESB PCI Express Downstream Port #1 (rev. 0x01)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ppb3 at pci2 dev 2 function 0: Intel 63xxESB PCI Express Downstream Port #3 (rev. 0x01)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
wm0 at pci4 dev 0 function 0: i80003 dual 1000baseT Ethernet, rev. 1
wm0: interrupting at ioapic0 pin 18 (irq 11)
wm0: Ethernet address 00:30:48:7a:1d:42
ikphy0 at wm0 phy 1: i82563 10/100/1000 media interface, rev. 2
wm0: MDIC write timed out: phy 1 reg 22
wm0: MDIC read timed out: phy 1 reg 1
ikphy0: no media present
ifmedia_set: no match for 0x20/0xfffffff
wm1 at pci4 dev 0 function 1: i80003 dual 1000baseT Ethernet, rev. 1
wm1: interrupting at ioapic0 pin 19 (irq 10)
wm1: Ethernet address 00:30:48:7a:1d:43
ikphy1 at wm1 phy 1: i82563 10/100/1000 media interface, rev. 2
wm1: MDIC write error: phy 1 reg 22
wm1: MDIC write error: phy 1 reg 22
ikphy1: no media present
ifmedia_set: no match for 0x20/0xfffffff
ppb4 at pci1 dev 0 function 3: Intel 63xxESB PCI Express to PCI-X Bridge (rev. 0x01)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
ppb5 at pci0 dev 4 function 0: Intel product 0x25f8 (rev. 0xb1)
pci6 at ppb5 bus 6
pci6: i/o space, memory space enabled, rd/line, wr/inv ok
ppb6 at pci6 dev 0 function 0: Intel 6700PXH PCI Express-to-PCI Bridge #0 (rev. 0x09)
pci7 at ppb6 bus 7
pci7: i/o space, memory space enabled, rd/line, wr/inv ok
ppb7 at pci6 dev 0 function 2: Intel 6700PXH PCI Express-to-PCI Bridge #1 (rev. 0x09)
pci8 at ppb7 bus 8
pci8: i/o space, memory space enabled, rd/line, wr/inv ok
ppb8 at pci0 dev 6 function 0: Intel product 0x25f9 (rev. 0xb1)
pci9 at ppb8 bus 9
pci9: i/o space, memory space enabled, rd/line, wr/inv ok
ppb9 at pci9 dev 0 function 0: Intel 6700PXH PCI Express-to-PCI Bridge #0 (rev. 0x09)
pci10 at ppb9 bus 10
pci10: i/o space, memory space enabled, rd/line, wr/inv ok
ppb10 at pci9 dev 0 function 2: Intel 6700PXH PCI Express-to-PCI Bridge #1 (rev. 0x09)
pci11 at ppb10 bus 11
pci11: i/o space, memory space enabled, rd/line, wr/inv ok
Intel product 0x1a38 (miscellaneous system, revision 0xb1) at pci0 dev 8 function 0 not configured
pchb1 at pci0 dev 16 function 0
pchb1: Intel product 0x25f0 (rev. 0xb1)
pchb2 at pci0 dev 16 function 1
pchb2: Intel product 0x25f0 (rev. 0xb1)
pchb3 at pci0 dev 16 function 2
pchb3: Intel product 0x25f0 (rev. 0xb1)
pchb4 at pci0 dev 17 function 0
pchb4: Intel product 0x25f1 (rev. 0xb1)
pchb5 at pci0 dev 19 function 0
pchb5: Intel product 0x25f3 (rev. 0xb1)
pchb6 at pci0 dev 21 function 0
pchb6: Intel product 0x25f5 (rev. 0xb1)
pchb7 at pci0 dev 22 function 0
pchb7: Intel product 0x25f6 (rev. 0xb1)
uhci0 at pci0 dev 29 function 0: Intel 63xxESB USB UHCI Controller (rev. 0x09)
uhci0: interrupting at ioapic0 pin 17 (irq 5)
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
uhci1 at pci0 dev 29 function 1: Intel 63xxESB USB UHCI Controller (rev. 0x09)
uhci1: interrupting at ioapic0 pin 19 (irq 10)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 63xxESB USB UHCI Controller (rev. 0x09)
uhci2: interrupting at ioapic0 pin 18 (irq 11)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: Intel 63xxESB USB EHCI Controller (rev. 0x09)
ehci0: interrupting at ioapic0 pin 17 (irq 5)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb11 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0xd9)
pci12 at ppb11 bus 12
pci12: i/o space, memory space enabled
vga0 at pci12 dev 1 function 0: ATI Technologies product 0x515e (rev. 0x02)
wsdisplay0 at vga0 kbdmux 1
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 31 function 0
pcib0: Intel 63xxESB LPC Interface Bridge (rev. 0x09)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 631xESB/632xESB IDE Controller (rev. 0x09)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel ignored (disabled)
piixide1 at pci0 dev 31 function 2
piixide1: Intel 631xESB/632xESB Serial ATA Controller (rev. 0x09)
piixide1: bus-master DMA support present
piixide1: primary channel configured to native-PCI mode
piixide1: using ioapic0 pin 19 (irq 10) for native-PCI interrupt
atabus1 at piixide1 channel 0
piixide1: secondary channel configured to native-PCI mode
atabus2 at piixide1 channel 1
Intel 63xxESB SMBus Controller (SMBus serial bus, revision 0x09) at pci0 dev 31 function 3 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
pcppi0: children must have an explicit unit
midi0 at pcppi0: PC speaker (CPU-intensive output)
sysbeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
pcppi0: attached to attimer0
ioapic0: enabling
ioapic1: enabling
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Kernelized RAIDframe activated
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 1: <DV-28E-N, , 1.6A> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:0:1): using PIO mode 4, DMA mode 2 (using DMA)
wd0 at atabus1 drive 0: <ST3750640NS>
wd0: quirks 2<FORCE_LBA48>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 698 GB, 1453521 cyl, 16 head, 63 sec, 512 bytes/sect x 1465149168 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1 at atabus1 drive 1: <ST3750640NS>
wd1: quirks 2<FORCE_LBA48>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 698 GB, 1453521 cyl, 16 head, 63 sec, 512 bytes/sect x 1465149168 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(piixide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1(piixide1:0:1): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd2 at atabus2 drive 0: <ST3750640NS>
wd2: quirks 2<FORCE_LBA48>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 698 GB, 1453521 cyl, 16 head, 63 sec, 512 bytes/sect x 1465149168 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd3 at atabus2 drive 1: <ST3750640NS>
wd3: quirks 2<FORCE_LBA48>
wd3: drive supports 16-sector PIO transfers, LBA48 addressing
wd3: 698 GB, 1453521 cyl, 16 head, 63 sec, 512 bytes/sect x 1465149168 sectors
wd3: 32-bit data port
wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd2(piixide1:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd3(piixide1:1:1): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
raid0: RAID Level 1
raid0: Components: /dev/wd0a /dev/wd3a
raid0: Total Sectors: 1465148928 (715404 MB)
boot device: raid0
root on raid0a dumps on raid0b
root file system type: ffs
cpu2: CPU 1 running
cpu1: CPU 6 running
cpu3: CPU 7 running


>How-To-Repeat:
	ifconfig both wm0 and wm1 up, and do network-intensive stuff.

>Fix:

	None given.

>Audit-Trail:
From: Jeff Rizzo <riz@tastylime.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/36347: i80003 dual 1000baseT Ethernet problems with wm driver
Date: Wed, 16 May 2007 09:40:19 -0700

 I just had this same problem happen without both interfaces up, so
 perhaps it's just easier to trigger the problem with both interfaces.

From: Jeff Rizzo <riz@tastylime.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/36347
Date: Sat, 31 Dec 2011 11:40:59 -0800

 I no longer have access to this hardware;  it's *likely* that changes to 
 wm(4) have improved this, but I have no way of checking.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.