Subject: Re: kern/35711: NetBSD-current msk/amd64 random failures
To: None <gnats-bugs@NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 02/19/2007 22:34:57
On Mon, Feb 19, 2007 at 03:50:01PM +0000, tru@pasteur.fr wrote:
> >Number:         35711
> >Category:       kern
> >Synopsis:       NetBSD-current msk/amd64 random failures
> >Confidential:   no
> >Severity:       serious
> >Priority:       medium
> >Responsible:    kern-bug-people
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   net
> >Arrival-Date:   Mon Feb 19 15:50:01 +0000 2007
> >Originator:     tru
> >Release:        4.99.11 Mon Feb 19 00:45:31 CET 2007
> >Organization:
> >Environment:
> GENERIC+SMP+ACPI+WPI enabled
> 
> arch: amd64
> 
> hardware: Sony laptop SZ3XP (core duo2)
> 
> 
> >Description:
> msk0 initialisation failure?
> 
> 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
> 
> ifconfig -m msk0:
> msk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>   address: 00:13:a9:8c:78:69
>   media: Ethernet autoselect (none)
>   status: no carrier
>   supported Ethernet media:
>     media none
>     media 10baseT
>     media 10baseT mediaopt full-duplex
>     media 100baseTX
>     media 100baseTX mediaopt full-duplex
>     media autoselect
>   inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
>   inet6 fe80::213:a9ff:fe8c:7869%msk0 prefixlen 64 scopeid 0x2

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

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--