[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-bugs
Subject:    Re: kern/16346: pcn driver panics on startup in IBM PC/325
From:       "Greg A. Woods" <woods () weird ! com>
Date:       2003-08-30 23:14:11
[Download RAW message or body]

I can confirm that rev. 1.9.4.3 of sys/dev/pci/if_pcn.c definitely still
does not work on an IBM PC 325:

	pcn0 at pci1 dev 5 function 0: AMD PCnet-PCI Ethernet
	pcn0: Am79c971 PCnet-FAST rev 5, Ethernet address 00:06:29:05:cf:8d
	pcn0: interrupting at irq 10
	nsphy0 at pcn0 phy 1: NS DP83840 10/100 media interface, rev. 1
	nsphy0: no media present
	ifmedia_set: no match for 0x20/0xfffffff
	panic: ifmedia_set
	Stopped in pid 0 (swapper) at   cpu_Debugger+0x4:       movl    %ebp,%esp
	db> 

Booting with the cable unplugged does work, as has been reported:

	pcn0 at pci1 dev 5 function 0: AMD PCnet-PCI Ethernet
	pcn0: Am79c971 PCnet-FAST rev 5, Ethernet address 00:06:29:05:cf:8d
	pcn0: interrupting at irq 10
	nsphy0 at pcn0 phy 1: NS DP83840 10/100 media interface, rev. 1
	nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

During one of my tests I booted successfully with the cable plugged in
but before the switch had completed auto-negotiation.  I guess that's
pretty much equivalent to having the cable unplugged though.

I also tried using Eric's rev 1.15 changes to use IFM_IMASK in the call
to ifmedia_init(), but that didn't make any difference either.

Is there some easy way to do the equivalent to "ifconfig down" before
checking the media status in the attach routine?  I.e. turn off the
interface completely.  That seems to be what's necessary for nsphy to
report the available media types.

-- 
						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic