Subject: Re: kern/35711: NetBSD-current msk/amd64 random failures
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Tru Huynh <tru@pasteur.fr>
List: netbsd-bugs
Date: 02/20/2007 11:10:03
The following reply was made to PR kern/35711; it has been noted by GNATS.
From: Tru Huynh <tru@pasteur.fr>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: kern/35711: NetBSD-current msk/amd64 random failures
Date: Tue, 20 Feb 2007 12:06:25 +0100
On Mon, Feb 19, 2007 at 09:40:04PM +0000, Manuel Bouyer wrote:
...
>
> Strange, it's seeing 3 PHYs while only one seems to be really present.
> The 2 others PHYs seems to return nonsence.
> What happens if you tell explicitely to use phy 0:
> ifconfig msk0 media autoselect instance 0
>
here is the results from a working switch with today's kernel:
tru@woodstock [~]> uname -a
NetBSD woodstock.bis.pasteur.fr 4.99.12 NetBSD 4.99.12 (WOODSTOCK_ACPI) #4: Tue Feb 20 12:30:25 CET 2007 tru@woodstock.bis.pasteur.fr:/home/tru/NetBSD/build/amd64/home/tru/NetBSD/source/usr/src/sys/arch/amd64/compile/WOODSTOCK_ACPI amd64
tru@woodstock [usr/src]> grep -v '^#' conf-amd64/WOODSTOCK*
conf-amd64/WOODSTOCK:include "arch/amd64/conf/GENERIC"
conf-amd64/WOODSTOCK:options MULTIPROCESSOR
conf-amd64/WOODSTOCK:options DIAGNOSTIC # expensive kernel consistency checks
conf-amd64/WOODSTOCK:options LOCKDEBUG
conf-amd64/WOODSTOCK:makeoptions COPTS="-O2 -fno-omit-frame-pointer"
conf-amd64/WOODSTOCK:options DDB # in-kernel debugger
conf-amd64/WOODSTOCK:options DDB_TEE_MSGBUF=1
conf-amd64/WOODSTOCK:makeoptions DEBUG="-g" # compile full symbol table
conf-amd64/WOODSTOCK:wpi* at pci? dev ? function ? # Intel PRO/Wireless 3945ABG
conf-amd64/WOODSTOCK:agp* at pchb?
conf-amd64/WOODSTOCK:cbb* at pci? dev ? function ?
conf-amd64/WOODSTOCK:cardslot* at cbb?
conf-amd64/WOODSTOCK:cardbus* at cardslot?
conf-amd64/WOODSTOCK:pcmcia* at cardslot?
conf-amd64/WOODSTOCK:mvphy* at mii? phy ?
conf-amd64/WOODSTOCK_ACPI:include "arch/amd64/conf/WOODSTOCK"
conf-amd64/WOODSTOCK_ACPI:acpi0 at mainbus0
conf-amd64/WOODSTOCK_ACPI:no options MPBIOS_SCANPCI
conf-amd64/WOODSTOCK_ACPI:acpiacad* at acpi? # ACPI AC Adapter
conf-amd64/WOODSTOCK_ACPI:acpibat* at acpi? # ACPI Battery
conf-amd64/WOODSTOCK_ACPI:acpibut* at acpi? # ACPI Button
conf-amd64/WOODSTOCK_ACPI:acpiec* at acpi? # ACPI Embedded Controller
conf-amd64/WOODSTOCK_ACPI:acpilid* at acpi? # ACPI Lid Switch
conf-amd64/WOODSTOCK_ACPI:acpitz* at acpi? # ACPI Thermal Zone
conf-amd64/WOODSTOCK_ACPI:com* at acpi? # Serial communications interface
conf-amd64/WOODSTOCK_ACPI:fdc* at acpi? # Floppy disk controller
conf-amd64/WOODSTOCK_ACPI:joy* at acpi? # Joystick/Game port
conf-amd64/WOODSTOCK_ACPI:lpt* at acpi? # Parallel port
conf-amd64/WOODSTOCK_ACPI:mpu* at acpi? # Roland MPU-401 MIDI UART
conf-amd64/WOODSTOCK_ACPI:pckbc* at acpi? # PC keyboard controller
conf-amd64/WOODSTOCK_ACPI:attimer* at acpi? # AT Timer
conf-amd64/WOODSTOCK_ACPI:pcppi* at acpi? # AT-style speaker sound
conf-amd64/WOODSTOCK_ACPI:wss* at acpi? # NeoMagic 256AV in wss mode
conf-amd64/WOODSTOCK_ACPI:no attimer0 at isa?
conf-amd64/WOODSTOCK_ACPI:no com0 at isa?
conf-amd64/WOODSTOCK_ACPI:no com1 at isa?
conf-amd64/WOODSTOCK_ACPI:no fdc0 at isa?
conf-amd64/WOODSTOCK_ACPI:no lpt0 at isa?
conf-amd64/WOODSTOCK_ACPI:no lpt1 at isa?
conf-amd64/WOODSTOCK_ACPI:no pckbc0 at isa?
conf-amd64/WOODSTOCK_ACPI:no pcppi0 at is
dmesg:
...
mskc0 at pci3 dev 0 function 0mskc0: interrupt moderation is 0 us
, Yukon-2 FE rev. A1 (0x1): ioapic0 pin 18 (irq 10)
msk0 at mskc0 port A: Ethernet address 00:13:a9:8c:78:69
mvphy0 at msk0 phy 0: Marvell 88E6060 10/100 5-port PHY switch, rev. 3
mvphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy0 at msk0 phy 3: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000800, model 0x0004, rev. 0
ukphy0: no media present
ukphy1 at msk0 phy 6: Generic IEEE 802.3u media interface
ukphy1: OUI 0x002200, model 0x0011, rev. 0
ukphy1: no media present
...
mskc0: interrupt moderation is 1000 us
tru@woodstock [usr/src]> ifconfig msk0
msk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:13:a9:8c:78:69
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 157.99.90.151 netmask 0xffffff00 broadcast 157.99.90.255
inet6 fe80::213:a9ff:fe8c:7869%msk0 prefixlen 64 scopeid 0x2
tru@woodstock [usr/src]> ifconfig -m msk0
msk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:13:a9:8c:78:69
media: Ethernet autoselect (100baseTX full-duplex)
status: active
supported Ethernet media:
media none
media 10baseT
media 10baseT mediaopt full-duplex
media 100baseTX
media 100baseTX mediaopt full-duplex
media autoselect
inet 157.99.90.151 netmask 0xffffff00 broadcast 157.99.90.255
inet6 fe80::213:a9ff:fe8c:7869%msk0 prefixlen 64 scopeid 0x2
tru@woodstock [usr/src]> sudo ifconfig msk0 media autoselect instance 0
tru@woodstock [usr/src]> ifconfig -m msk0
msk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:13:a9:8c:78:69
media: Ethernet autoselect (100baseTX full-duplex)
status: active
supported Ethernet media:
media none
media 10baseT
media 10baseT mediaopt full-duplex
media 100baseTX
media 100baseTX mediaopt full-duplex
media autoselect
inet 157.99.90.151 netmask 0xffffff00 broadcast 157.99.90.255
inet6 fe80::213:a9ff:fe8c:7869%msk0 prefixlen 64 scopeid 0x2
tru@woodstock [usr/src]> ifconfig msk0
msk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:13:a9:8c:78:69
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 157.99.90.151 netmask 0xffffff00 broadcast 157.99.90.255
inet6 fe80::213:a9ff:fe8c:7869%msk0 prefixlen 64 scopeid 0x2
I will report after changing building on a "non-working" switch.
Thanks,
Tru
--
Dr Tru Huynh | http://www.pasteur.fr/recherche/unites/Binfs/
mailto:tru@pasteur.fr | tel/fax +33 1 45 68 87 37/19
Institut Pasteur, 25-28 rue du Docteur Roux, 75724 Paris CEDEX 15 France