Subject: Re: E250 support?
To: None <eeh@netbsd.org, mark.blackman@netscalibur.co.uk>
From: None <eeh@netbsd.org>
List: port-sparc64
Date: 02/03/2001 00:20:56
	Below is output of boot, followed by trace, then prtconf -pv at the
	very bottom.

	Resetting ...


	Sun (TM) Enterprise 250 (2 X UltraSPARC-II 400MHz), Keyboard Present
	OpenBoot 3.16, 1024 MB memory installed, Serial #15128240.
	Ethernet address 8:0:20:e6:d6:b0, Host ID: 80e6d6b0.

[...]
	flashprom at ebus0 addr 0-fffff addr 0-fffff not configured
	SUNW,envctrltwo at ebus0 addr 600000-600003 ipl 40 ipl 37 not configured
	hme1 at pci0 dev 1 function 1: address 08:00:20:e6:d6:b0
	nsphy0 at hme1 phy 1: DP83840 10/100 media interface, rev. 1
	nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
	panic: psycho_intr_map: line line < 0 || line > 0x32
	kdb breakpoint at 1262dd0
	1 tt=1ff tstate=0 tpc=0x0 tnpc=0x0
	Stopped in pid 0 (swapper) at   cpu_Debugger+0x4:       nop
	db> trace
	psycho_intr_map(900, 0, ef, 180922c, 0, 0) at psycho_intr_map+0x18
	pci_intr_map(0, 180922c, 0, 2733b68, e0030000, 2733bc8) at pci_intr_map+0x84
	hmeattach_pci(2707a80, 2733800, 1809490, 1224ee0, 2729d10, 2729d18) at hmeattach
	_pci+0x130
	config_attach(2733800, 140b248, 1809490, 0, 140fc00, 140a000) at config_attach+0
	x3b4
	config_found_sm(2707a80, 1809490, 1217db0, 1217f88, 50a00ef, 0) at config_found_
	sm+0x24
	pci_probe_bus(2707a80, 8, ffff, 2, 2707d00, 2707c80) at pci_probe_bus+0x234

It looks like it had some difficulty tracking down how the interrupts
were wired in your hme NIC.  Is that hme on-board or in a card?  I think
it's strange that this is hme1 but you don't seem to have any hme0.

The code that associates interrupts with devices is rather
convoluted.  The Sun PCI devices do not set the PCI interrupt
register, so the psycho attach code does.  It appears that
something went wrong and that register may not have been 
properly set.  To generate a bit more output, could you
break into DDB and set `sparc_pci_debug' to 0xff?

Eduardo