Subject: if_mec stability on O2
To: None <port-sgimips@NetBSD.org>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: port-sgimips
Date: 04/11/2007 07:56:52
Heyas folks --

So far I've been netbooting my O2, with ~no load between reboots. Now  
that I have the console working, I wanted to add support to XFree86.

Checking out the xsrc tree to the NFS driver eventually caused the  
machine to lock up. Rebooted, and checked it out directly from the  
NFS server. NFS server had no problem, so time to build xsrc over NFS  
-- locked up again. Finally gave up on NFS, so I setup my hard disk,  
netbooted a kernel with root on sd0a.

This is when the real problem started happening -- I can't seem to  
bring the mec interface up. I get a strange semi-hang from doing this:

	o2# ifconfig mec0 up
	o2# ifconfig mec0 inet 192.168.10.20 netmask 255.255.255.0
	<semi-hang>

I call it a semi-hang because the keyboard still emits characters to  
the screen etc, but I can't for example switch virtual consoles,  
enter DDB, or ^C ifconfig.

Any ideas? I've switched to an ex(4) in the meantime, but that's a  
bit of a pain as arc doesn't let me tftp boot with it. dmesg follows:

	NetBSD 4.99.17 (GENERIC32_IP3x) #190: Tue Apr 10 23:16:48 EDT 2007
	        jmcneill@ptichka.invisible.ca:/Users/jmcneill/NetBSD/src/sys/ 
arch/sgimips/compile/obj/GENERIC32_IP3x
	total memory = 256 MB
	(6848 KB reserved for ARCS)
	avail memory = 238 MB
	timecounter: Timecounters tick every 10.000 msec
	mainbus0 (root): SGI-IP32 [SGI, c], 1 processor
	cpu0 at mainbus0: MIPS R5000 CPU (0x2321) Rev. 2.1 with built-in FPU  
Rev. 1.0
	cpu0: 32KB/32B 2-way set-associative L1 Instruction cache, 48 TLB  
entries
	cpu0: 32KB/32B 2-way set-associative write-back L1 Data cache
	cpu0: 512KB/32B direct-mapped write-through L2 Unified cache
	crime0 at mainbus0 addr 0x14000000: rev 1.1 (CRIME_ID: a1)
	crmfb0 at mainbus0 addr 0x16000000: SGI CRIME Graphics Display Engine
	crmfb0: allocated fb @ 0x80050000 (0xa1400000)
	crmfb0: initial resolution 1280x1024 8 bpp
	wsdisplay0 at crmfb0 kbdmux 1: console (default, vt100 emulation)
	wsmux1: connecting to wsdisplay0
	mace0 at mainbus0 addr 0x1f000000
	lpt0 at mace0 offset 0x380000 intr 4 intrmask 0xf0000
	com0 at mace0 offset 0x390000 intr 4 intrmask 0x3f00000: ns16550a,  
working fifo
	com1 at mace0 offset 0x398000 intr 4 intrmask 0xfc000000: ns16550a,  
working fifo
	macekbc0 at mace0 offset 0x320000 intr 5 intrmask 0x0: PS2 controller
	pckbd0 at macekbc0 (kbd slot)
	wskbd0 at pckbd0 mux 1
	wskbd0: connecting to wsdisplay0
	pms0 at macekbc0 (aux slot)
	wsmouse0 at pms0 mux 0
	mcclock0 at mace0 offset 0x3a0000 intrmask 0x0
	mec0 at mace0 offset 0x280000 intr 3 intrmask 0x0: MAC-110 Ethernet,  
rev 1
	mec0: Ethernet address 08:00:69:0c:5c:6c
	nsphy0 at mec0 phy 8: DP83840 10/100 media interface, rev. 1
	nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
	macepci0 at mace0 offset 0x80000 intr 7 intrmask 0x0: rev 1
	pci0 at macepci0 bus 0
	pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
	ahc0 at pci0 dev 1 function 0: Adaptec aic7880 Ultra SCSI adapter
	ahc0: interrupting at crime interrupt 8
	ahc0: Using left over BIOS settings
	ahc0: Host Adapter has no SEEPROM. Using default SCSI target parameters
	ahc0: aic7880: Wide Channel A, SCSI Id=0, 16/253 SCBs
	scsibus0 at ahc0: 16 targets, 8 luns per target
	ahc1 at pci0 dev 2 function 0: Adaptec aic7880 Ultra SCSI adapter
	ahc1: interrupting at crime interrupt 9
	ahc1: Using left over BIOS settings
	ahc1: Host Adapter has no SEEPROM. Using default SCSI target parameters
	ahc1: aic7880: Wide Channel A, SCSI Id=0, 16/253 SCBs
	scsibus1 at ahc1: 16 targets, 8 luns per target
	biomask 07 netmask 07 ttymask 07 clockmask 87
	timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
	timecounter: Timecounter "mips3_cp0_counter" frequency 90005000 Hz  
quality 100
	scsibus0: waiting 2 seconds for devices to settle...
	scsibus1: waiting 2 seconds for devices to settle...
	sd0 at scsibus0 target 1 lun 0: <COMPAQ, BB00911CA0, 3B05> disk fixed
	sd0: 8678 MB, 5273 cyl, 20 head, 168 sec, 512 bytes/sect x 17773524  
sectors
	sd0: sync (100.00ns offset 8), 16-bit (20.000MB/s) transfers, tagged  
queueing
	cd0 at scsibus0 target 4 lun 0: <TOSHIBA, CD-ROM XM-5701TA, 0167>  
cdrom removable
	cd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
	boot device: sd0
	root on mec0
	nfs_boot: trying DHCP/BOOTP
	nfs_boot: DHCP next-server: 192.168.10.254
	nfs_boot: my_name=copernicus
	nfs_boot: my_domain=invisible.ca
	nfs_boot: my_addr=192.168.10.20
	nfs_boot: my_mask=255.255.255.0
	nfs_boot: gateway=192.168.10.254
	root on 192.168.10.254:/export/netboot/o2
	wsdisplay0: screen 1 added (default, vt100 emulation)
	wsdisplay0: screen 2 added (default, vt100 emulation)
	wsdisplay0: screen 3 added (default, vt100 emulation)
	wsdisplay0: screen 4 added (default, vt100 emulation)
	wsdisplay0: screen 5 added (default, vt100 emulation)
	wsdisplay0: screen 6 added (default, vt100 emulation)
	wsdisplay0: screen 7 added (default, vt100 emulation)

Cheers,
Jared