Subject: port-sparc/36396: sparc mutex_spin_{exit,enter}() hang with MULTIPROCESSOR
To: None <port-sparc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 05/28/2007 23:00:01
>Number:         36396
>Category:       port-sparc
>Synopsis:       hang with MULTIPROCESSOR
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 28 23:00:01 +0000 2007
>Originator:     matthew green
>Release:        NetBSD 4.99.20
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
System: NetBSD russian-intervention.eterna23.net 4.99.20 NetBSD 4.99.20 (_russian_.mp) #19: Mon May 28 15:39:20 PDT 2007  mrg@traumvogel.eterna23.net:/home/obj/sparc/usr/src/sys/arch/sparc/compile/_russian_.mp sparc
Architecture: sparc
Machine: sparc
>Description:

	MULTIPROCESSOR sparc kernels since newlock2 merge have not
	worked with the assembler verions of mutex_spin_enter() and
	mutex_spin_exit().  for now, i have disabled them so that
	MULTIPROCESSOR kernels can function.

>How-To-Repeat:

	re-enable __HAVE_MUTEX_SPIN_STUBS in
	sys/arch/sparc/include/mutex.h and the functions in
	sys/arch/sparc/sparc/lock-stubs.s

	and see kernel hang.

>Fix:

	yes please.