Subject: kern/16346: pcn driver panics on startup in IBM PC/325
To: None <gnats-bugs@gnats.netbsd.org>
From: Jim Wise <jwise@draga.com>
List: netbsd-bugs
Date: 04/14/2002 01:12:23
>Number:         16346
>Category:       kern
>Synopsis:       pcn driver panics on startup in IBM PC/325
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 13 22:13:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jim Wise
>Release:        NetBSD 1.5ZA
>Organization:
				Jim Wise
				jwise@draga.com
>Environment:
System: NetBSD himring.draga.com 1.5ZA NetBSD 1.5ZA (HIMRING) #6: Sun Feb 24 15:18:05 EST 2002 jwise@himring.draga.com:/home/NetBSD/src/sys/arch/i386/compile/HIMRING i386
Architecture: i386
Machine: i386
>Description:
The controller is the onboard AMD PCnet-FAST in an IBM PC/Server
325.  Using the le driver, it works fine with one quirk:  ifconfig
-m only lists 10baseT and 10base5 (there is no 10base5 connector
present, btw) as media options, and consequently it cannot be
explicitly set to 100baseTX.  If set to `media autoselect', however,
it correctly selects 100baseTX, and runs fine.

Kernel config includes pcn at pci, and all phy variants.  With the
pcn driver, here's what I get.  This is hand-copied, so forgive
typos...

On console:

...
pcn0 at pci1 dev 5 function 0: AMD PCnet-PCI Ethernet
pcn0: Am79c971 PCnet-FAST rev 5, Ethernet address 00:06:29:05:8c:91
pcn0: interrupting at irq 15
nsphy0 at pcn0 phy 1: DP83840 media interface, rev 1
nsphy0: no media present
ifmedia_set: no match for 0x20/0xffffffff
panic: ifmedia_set
...

Relevant part of traceback is:

...
panic(...)
ifmedia_set(...)
pcn_79c971_mediainit(...)
pcn_attach(...)
config_attach(...)
...

>How-To-Repeat:
	configure a kernel with pcn0 instead of le0 in an IBM PC Server 325
>Fix:
	no idea
>Release-Note:
>Audit-Trail:
>Unformatted: