Subject: port-sparc/7559: panic: kernel fault (see also PR 7442)
To: None <gnats-bugs@gnats.netbsd.org, pk@netbsd.org>
From: Hubert Feyrer <hubertf@channel.regensburg.org>
List: netbsd-bugs
Date: 05/11/1999 21:20:55
>Number:         7559
>Category:       port-sparc
>Synopsis:       panic: kernel fault (see also PR 7442)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sparc-maintainer (NetBSD/sparc Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 11 21:20:01 1999
>Last-Modified:
>Originator:     Hubert Feyrer
>Organization:
Hubert Feyrer <hubertf@channel.regensburg.org>
>Release:        1.4
>Environment:
	
System: NetBSD smaug 1.4 NetBSD 1.4 (RFHS8028) #0: Mon May 10 20:05:03 PDT 1999 feyrer@rfhs8028:/amd/jabberwocky/usr/cvs/src-1.4/sys/arch/sparc/compile/RFHS8028 sparc


>Description:
	It seems the problem described in PR 7442 still exists in 1.4:

(gdb) target kcore netbsd.0.core
panic: kernel fault
#0  0xf00891f8 in mi_switch ()
(gdb) bt
#0  0xf00891f8 in mi_switch ()
#1  0xf0088b68 in tsleep ()
#2  0xf013a990 in uvm_scheduler ()
#3  0xf0079474 in main ()


>How-To-Repeat:
	Take a Sun SparcStation 5 (85MHz), 64MB RAM, try to set up a
	RAID w/ RaidFrame.

	Setting up the raid seems to trigger the fault. 

	The setup for the raid is:
	sd1	 - 2GB disk	
	sd2 	 - 4GB disk
	sd3	 - 2GB disk

	raid0	 - sd1 & sd3 (see raid0dev.conf below)
	raid1	 - raid0 and sd2 (see raid1dev.conf below)


	Set up the raid:
	 - create appropriate partitions sd1e and sd3e, and sd2e
	 - raidctl -C raid0dev.conf raid0
	 - raidctl -I 12345 raid0
	 - raidctl -i raid0
	 - Everything works fine so far, create a raid0e
	 - raidctl -C raid1dev.conf raid1
	 - raidctl -I 54321 raid1		<--- BOOM


smaug# cat /etc/raid0dev.conf 
START array
1 2 0

START disks
/dev/sd1e
/dev/sd3e

START layout
128 1 1 0

START queue
fifo 100

smaug# cat /etc/raid1dev.conf
START array
1 2 0

START disks
/dev/raid1e
/dev/sd2e

START layout
128 1 1 0

START queue
fifo 100


>Fix:
	Please.
>Audit-Trail:
>Unformatted: