Subject: port-sparc/12885: sparc/autoconf.c:bus_compatible() does not recognize SUNW,fas as esp
To: None <gnats-bugs@gnats.netbsd.org>
From: john heasley <heas@shrubbery.net>
List: netbsd-bugs
Date: 05/09/2001 20:36:14
>Number:         12885
>Category:       port-sparc
>Synopsis:       sparc/autoconf.c:bus_compatible() does not recognize SUNW,fas as esp
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 09 13:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     john heasley
>Release:        <NetBSD-current source date>
>Organization:
	
>Environment:
	
System: NetBSD guelah 1.5V NetBSD 1.5V (guelah2) #1: Wed May 2 15:04:50 PDT 2001 root@guelah:/u5/current/src/sys/arch/sparc/compile/guelah2 sparc


>Description:
	sparc/autoconf.c:bus_compatible() does not recognize SUNW,fas as esp;
	thus booting off a SUNW,fas disk will cause bootpath[] to have a NULL
	pointer for *dev and the kernel will prompt for the root and dump
	devices in kern/kern_subr.c:setroot().
>How-To-Repeat:
	boot a sparc off a disk on a SUNW,fas/hme (scsi fast-wide + FE)
	sbus controller.

	my ultrasparc 2 (with built-in fast-wide constroller, same chip) also
	prompt for the root/dump device, but i have not tested or even looked
	at this fix for sparc64 yet.
>Fix:
	bus_compatible() needs to return "esp" as the compatible bus so that
	device_register will continue and assign the *dev in bootpath[]
	properly.

	Index: autoconf.c
	===================================================================
	RCS file: /cvsroot/syssrc/sys/arch/sparc/sparc/autoconf.c,v
	retrieving revision 1.146
	diff -r1.146 autoconf.c
	1452a1453
	> 	{ "SUNW,fas",	"esp" },
>Release-Note:
>Audit-Trail:
>Unformatted: