Subject: kern/14029: panic("ifmedia_set") a little too brutal
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 09/21/2001 12:55:05
>Number:         14029
>Category:       kern
>Synopsis:       panic("ifmedia_set") a little too brutal
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 20 19:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Simon Burge
>Release:        -current, June 2, 2001
>Organization:
Wasabi Systems
>Environment:

>Description:
	I have a box with an (unused!) netgear (sip driver) card that
	occasionally fails to initialise properly.  What I see is:

	sip1 at pci0 dev 3 function 0: NatSemi DP83815 10/100 Ethernet
	sip1: interrupting at irq 2
	sip1: Ethernet address 00:02:e3:02:30:51
	ukphy1 at sip1 phy 0: Generic IEEE 802.3u media interface
	ukphy1: OUI 0x1000e8, model 0x0002, rev. 1
	ukphy1: 10baseT-FDX, 100baseTX, 100baseTX-FDX
	ifmedia_set: no match for 0x20/0xffffffff
	panic: ifmedia_set
	Stopped in pid 0 (swapper) at   cpu_Debugger+0x10:      lwz r0, r1, 0x14,

	I think it's a little too brutal just to call panic here, the
	card should just fail to configure.

>How-To-Repeat:
	Not sure.  Reboot a walnut with a sip card often?!

>Fix:
	None given.
>Release-Note:
>Audit-Trail:
>Unformatted: