NetBSD Problem Report #23341

Received: (qmail 19894 invoked by uid 605); 2 Nov 2003 08:28:30 -0000
Message-Id: <200311020826.hA28Qi500281@phantom.mit.edu>
Date: Sun, 2 Nov 2003 08:26:44 GMT
From: sly@mit.edu
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: sly@mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: panic: ifmedia_set with MII xcvr on ultra2 built-in hme
X-Send-Pr-Version: 3.95

>Number:         23341
>Category:       kern
>Synopsis:       panic: ifmedia_set with MII xcvr on ultra2 built-in hme
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    martin
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 02 08:29:00 +0000 2003
>Closed-Date:    
>Last-Modified:  Sat Nov 29 20:39:01 +0000 2003
>Originator:     Angie Kelic
>Release:        NetBSD 1.6.1
>Organization:

>Environment:


System: NetBSD phantom.mit.edu 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Mon Apr 7 10:27:16 UTC 2003 autobuild@cs20.apochromatic.org:/autobuilder/build/netbsd-1-6/sparc64/OBJ/autobuilder/build/netbsd-1-6/src/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64
>Description:
The machine panics on boot if an MII->AUI transceiver is connected.
The MII connector is part of the built-in hme. The machine itself
is an Ultra2 Creator 3D.

console is keyboard/display
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6ZD (GENERIC) #0: Sat Oct 18 15:36:21 UTC 2003
	autobuild@cs20.apochromatic.org:/autobuilder/build/HEAD/sparc64/OBJ/autobuilder/build/HEAD/src/sys/arch/sparc64/compile/GENERIC
total memory = 320 MB
avail memory = 285 MB
using 2060 buffers containing 16480 KB of memory
bootpath: /sbus@1f,0/SUNW,fas@e,8800000/sd@0,0
mainbus0 (root): SUNW,Ultra-2
cpu0 at mainbus0: SUNW,UltraSPARC @ 167.995 MHz, version 0 FPU
cpu0: 32K instruction (32 b/l), 16K data (32 b/l), 512K external (64 b/l)
timer0 at mainbus0 addr 0xfffc3c00 irq vectors 7f0 and 7f1
sbus0 at mainbus0 addr 0xfffc8000: clock = 25 MHz
DVMA map: ff800000 to ffffe000
IOTSB: 1878000 to 187a000
audiocs0 at sbus0 slot 13 offset 0xc000000 vector 24 ipl 13: CS4231A
audio0 at audiocs0: full duplex
auxio0 at sbus0 slot 15 offset 0x1900000
flashprom at sbus0 slot 15 offset 0x0 not configured
SUNW,fdtwo at sbus0 slot 15 offset 0x1400000 vector 29 ipl 11 not configured
clock0 at sbus0 slot 15 offset 0x1200000: mk48t59: hostid 80859504
zs0 at sbus0 slot 15 offset 0x1100000 vector 28 ipl 12 softpri 6
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
zs1 at sbus0 slot 15 offset 0x1000000 vector 28 ipl 12 softpri 6
zstty2 at zs1 channel 0 (console input)
kbd0 at zstty2 (console input)
zstty3 at zs1 channel 1
ms0 at zstty3
sc at sbus0 slot 15 offset 0x1300000 not configured
SUNW,pll at sbus0 slot 15 offset 0x1304000 not configured
esp0 at sbus0 slot 14 offset 0x8800000 vector 20 ipl 3: FAS366/HME, 40MHz, SCSI ID 7
scsibus0 at esp0: 16 targets, 8 luns per target
hme0 at sbus0 slot 14 offset 0x8c00000 vector 21 ipl 6: Sun Happy Meal Ethernet (SUNW,hme)
hme0: Ethernet address 08:00:20:85:95:04
ukphy0 at hme0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x080020, model 0x0001, rev. 3
ukphy0: 10baseT, 10baseT-FDX
ifmedia_set: no match for 0x20/0xffffffff
panic: ifmedia_set
kdb breakpoint at 12ed110

>How-To-Repeat:
Boot with an MII transceiver plugged in.  Note it boots
just fine without the transceiver plugged in.

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->martin 
Responsible-Changed-By: martin 
Responsible-Changed-When: Sun Nov 2 10:57:33 UTC 2003 
Responsible-Changed-Why:  
I'll handle this. 

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: sly@mit.edu
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/23341: panic: ifmedia_set with MII xcvr on ultra2 built-in hme
Date: Sun, 2 Nov 2003 14:14:51 +0100

 On Sun, Nov 02, 2003 at 08:26:44AM +0000, sly@mit.edu wrote:
 > 
 > >Number:         23341
 > >Category:       kern
 > >Synopsis:       panic: ifmedia_set with MII xcvr on ultra2 built-in hme
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    kern-bug-people
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Sun Nov 02 08:29:00 UTC 2003
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Charlie Root
 > >Release:        NetBSD 1.6.1
 > >Organization:
 > 	
 > >Environment:
 > 	
 > 	
 > System: NetBSD phantom.mit.edu 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Mon Apr 7 10:27:16 UTC 2003 autobuild@cs20.apochromatic.org:/autobuilder/build/netbsd-1-6/sparc64/OBJ/autobuilder/build/netbsd-1-6/src/sys/arch/sparc64/compile/GENERIC sparc64
 > Architecture: sparc64
 > Machine: sparc64
 > >Description:
 > The machine panics on boot if an MII->AUI transceiver is connected.
 > The MII connector is part of the built-in hme. The machine itself
 > is an Ultra2 Creator 3D.
 > 
 > console is keyboard/display
 > Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
 >     The NetBSD Foundation, Inc.  All rights reserved.
 > Copyright (c) 1982, 1986, 1989, 1991, 1993
 >     The Regents of the University of California.  All rights reserved.
 > 
 > NetBSD 1.6ZD (GENERIC) #0: Sat Oct 18 15:36:21 UTC 2003
 > 	autobuild@cs20.apochromatic.org:/autobuilder/build/HEAD/sparc64/OBJ/autobuilder/build/HEAD/src/sys/arch/sparc64/compile/GENERIC
 > total memory = 320 MB
 > avail memory = 285 MB
 > using 2060 buffers containing 16480 KB of memory
 > bootpath: /sbus@1f,0/SUNW,fas@e,8800000/sd@0,0
 > mainbus0 (root): SUNW,Ultra-2
 > cpu0 at mainbus0: SUNW,UltraSPARC @ 167.995 MHz, version 0 FPU
 > cpu0: 32K instruction (32 b/l), 16K data (32 b/l), 512K external (64 b/l)
 > timer0 at mainbus0 addr 0xfffc3c00 irq vectors 7f0 and 7f1
 > sbus0 at mainbus0 addr 0xfffc8000: clock = 25 MHz
 > DVMA map: ff800000 to ffffe000
 > IOTSB: 1878000 to 187a000
 > audiocs0 at sbus0 slot 13 offset 0xc000000 vector 24 ipl 13: CS4231A
 > audio0 at audiocs0: full duplex
 > auxio0 at sbus0 slot 15 offset 0x1900000
 > flashprom at sbus0 slot 15 offset 0x0 not configured
 > SUNW,fdtwo at sbus0 slot 15 offset 0x1400000 vector 29 ipl 11 not configured
 > clock0 at sbus0 slot 15 offset 0x1200000: mk48t59: hostid 80859504
 > zs0 at sbus0 slot 15 offset 0x1100000 vector 28 ipl 12 softpri 6
 > zstty0 at zs0 channel 0
 > zstty1 at zs0 channel 1
 > zs1 at sbus0 slot 15 offset 0x1000000 vector 28 ipl 12 softpri 6
 > zstty2 at zs1 channel 0 (console input)
 > kbd0 at zstty2 (console input)
 > zstty3 at zs1 channel 1
 > ms0 at zstty3
 > sc at sbus0 slot 15 offset 0x1300000 not configured
 > SUNW,pll at sbus0 slot 15 offset 0x1304000 not configured
 > esp0 at sbus0 slot 14 offset 0x8800000 vector 20 ipl 3: FAS366/HME, 40MHz, SCSI ID 7
 > scsibus0 at esp0: 16 targets, 8 luns per target
 > hme0 at sbus0 slot 14 offset 0x8c00000 vector 21 ipl 6: Sun Happy Meal Ethernet (SUNW,hme)
 > hme0: Ethernet address 08:00:20:85:95:04
 > ukphy0 at hme0 phy 0: Generic IEEE 802.3u media interface
 > ukphy0: OUI 0x080020, model 0x0001, rev. 3
 > ukphy0: 10baseT, 10baseT-FDX
 > ifmedia_set: no match for 0x20/0xffffffff
 > panic: ifmedia_set
 > kdb breakpoint at 12ed110
 > 
 > >How-To-Repeat:
 > Boot with an MII transceiver plugged in.  Note it boots
 > just fine without the transceiver plugged in.

 Can you also post the dmesg for a successul boot without the transceiver ?

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

From: Angie Kelic <sly@MIT.EDU>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/23341: panic: ifmedia_set with MII xcvr on ultra2 built-in
 hme
Date: Sun, 2 Nov 2003 12:13:44 -0500 (EST)

 On Sun, 2 Nov 2003, Manuel Bouyer wrote:

 > Can you also post the dmesg for a successul boot without the transceiver ?

 Here it is:

 console is keyboard/display
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

 NetBSD 1.6.1 (GENERIC) #0: Mon Apr  7 10:27:16 UTC 2003

 autobuild@cs20.apochromatic.org:/autobuilder/build/netbsd-1-6/sparc64/OBJ/autobuilder/build/netbsd-
 1-6/src/sys/arch/sparc64/compile/GENERIC
 total memory = 320 MB
 avail memory = 287 MB
 using 2060 buffers containing 16480 KB of memory
 bootpath: /sbus@1f,0/SUNW,fas@e,8800000/sd@0,0
 mainbus0 (root): SUNW,Ultra-2
 cpu0 at mainbus0: SUNW,UltraSPARC @ 167.992 MHz, version 0 FPU
 cpu0: physical 32K instruction (32 b/l), 16K data (32 b/l), 512K external
 (64 b/l)
 timer0 at mainbus0 addr 0xfffc3c00 irq vectors 7f0 and 7f1
 sbus0 at mainbus0 addr 0xfffc8000: clock = 25 MHz
 DVMA map: ff800000 to ffffe000
 IOTSB: 179c000 to 179e000
 audiocs0 at sbus0 slot 13 offset 0xc000000 vector 24 ipl 13: CS4231A
 audio0 at audiocs0: full duplex
 auxio0 at sbus0 slot 15 offset 0x1900000
 flashprom at sbus0 slot 15 offset 0x0 not configured
 SUNW,fdtwo at sbus0 slot 15 offset 0x1400000 vector 29 ipl 11 not
 configured
 clock0 at sbus0 slot 15 offset 0x1200000: mk48t59: hostid 80859504
 zs0 at sbus0 slot 15 offset 0x1100000 vector 28 ipl 12 softpri 6
 zstty0 at zs0 channel 0
 zstty1 at zs0 channel 1
 zs1 at sbus0 slot 15 offset 0x1000000 vector 28 ipl 12 softpri 6
 zstty2 at zs1 channel 0 (console input)
 kbd0 at zstty2 (console input)
 zstty3 at zs1 channel 1
 ms0 at zstty3
 sc at sbus0 slot 15 offset 0x1300000 not configured
 SUNW,pll at sbus0 slot 15 offset 0x1304000 not configured
 esp0 at sbus0 slot 14 offset 0x8800000 vector 20 ipl 3: FAS366/HME, 40MHz,
 SCSI ID 7
 scsibus0 at esp0: 16 targets, 8 luns per target
 hme0 at sbus0 slot 14 offset 0x8c00000 vector 21 ipl 6: Sun Happy Meal
 Ethernet (SUNW,hme)
 hme0: Ethernet address 08:00:20:85:95:04
 bpp0 at sbus0 slot 14 offset 0xc800000 vector 22 ipl 2: dma rev unknown
 (0x20000000)
 dma0 at sbus0 slot 2 offset 0x81000: dma rev esc
 esp1 at dma0 slot 2 offset 0x80000 vector 3 ipl 3: ESP200, 40MHz, SCSI ID
 7
 scsibus1 at esp1: 8 targets, 8 luns per target
 lebuffer0 at sbus0 slot 2 offset 0x40000: 128K memory
 le0 at lebuffer0 slot 2 offset 0x60000 vector 4 ipl 6: address
 08:00:20:85:95:04
 le0: 64 receive buffers, 16 transmit buffers
 SUNW,ffb at mainbus0 addr 0xfec00000 not configured
 pcons at mainbus0 not configured
 scsibus0: waiting 2 seconds for devices to settle...
 sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST34572WC, 0876> SCSI2 0/direct
 fixed
 sd0: 4340 MB, 6300 cyl, 8 head, 176 sec, 512 bytes/sect x 8888924 sectors
 esp0: wide mode 1
 sd0: sync (100.0ns offset 15), 16-bit (20.000MB/s) transfers, tagged
 queueing
 cd0 at scsibus0 target 6 lun 0: <TOSHIBA, XM6201TASUN32XCD, 1103> SCSI2
 5/cdrom removable
 cd0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers
 scsibus1: waiting 2 seconds for devices to settle...
 Kernelized RAIDframe activated
 root on sd0a dumps on sd0b
 root file system type: ffs


From: Martin Husemann <martin@duskware.de>
To: Angie Kelic <sly@MIT.EDU>
Cc: Manuel Bouyer <bouyer@antioche.eu.org>, gnats-bugs@gnats.netbsd.org,
  netbsd-bugs@netbsd.org
Subject: Re: kern/23341: panic: ifmedia_set with MII xcvr on ultra2 built-in hme
Date: Mon, 3 Nov 2003 02:14:27 +0100

 On Sun, Nov 02, 2003 at 12:13:44PM -0500, Angie Kelic wrote:
 > NetBSD 1.6.1 (GENERIC) #0: Mon Apr  7 10:27:16 UTC 2003

 Could you also try booting a GENERIC -current kernel (from 
 ftp://releng.netbsd.org)?

 Both hme and the MII layer have changed quite a bit and it would be interesting
 to know if this problem is already solved.

 Martin

From: Angie Kelic <sly@MIT.EDU>
To: Martin Husemann <martin@duskware.de>
Cc: Manuel Bouyer <bouyer@antioche.eu.org>, gnats-bugs@gnats.netbsd.org,
  netbsd-bugs@netbsd.org
Subject: Re: kern/23341: panic: ifmedia_set with MII xcvr on ultra2 built-in
 hme
Date: Sun, 2 Nov 2003 20:16:15 -0500 (EST)

 I tried the October 17th sparc64 snapshot (newest one I could find)
 -- same failure.

 --Angie

 On Mon, 3 Nov 2003, Martin Husemann wrote:

 > On Sun, Nov 02, 2003 at 12:13:44PM -0500, Angie Kelic wrote:
 > > NetBSD 1.6.1 (GENERIC) #0: Mon Apr  7 10:27:16 UTC 2003
 >
 > Could you also try booting a GENERIC -current kernel (from
 > ftp://releng.netbsd.org)?
 >
 > Both hme and the MII layer have changed quite a bit and it would be interesting
 > to know if this problem is already solved.
 >
 > Martin
 >

From: Allen Briggs <briggs@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/23341 CVS commit: src/sys/net
Date: Mon,  3 Nov 2003 14:43:32 +0000 (UTC)

 Module Name:	src
 Committed By:	briggs
 Date:		Mon Nov  3 14:43:32 UTC 2003

 Modified Files:
 	src/sys/net: if_media.c

 Log Message:
 ifmedia_set() should not panic, nor can it really fail.  So if there is
 some problem setting the media to the requested value (usually IFM_AUTO),
 we now force the media selection to IFM_NONE.
 This addresses PR/14029 ``panic("ifmedia_set") a little too brutal''
 and may address to some degree PR/19504 and PR/23341.


 To generate a diff of this commit:
 cvs rdiff -r1.19 -r1.20 src/sys/net/if_media.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Angie Kelic <sly@MIT.EDU>
To: gnats-bugs@netbsd.org
Cc:  
Subject: Re: kern/23341: panic: ifmedia_set with MII xcvr on ultra2 built-in
 hme
Date: Sat, 29 Nov 2003 15:38:28 -0500 (EST)

 I tried building a kernel with the patch to src/sys/net/if_media.c

 This does in fact allow the machine to boot without panicking,
 however, it doesn't fix the fact that the MII transceiver
 doesn't worok.

 --Angie

>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.