Subject: Re: current does not boot
To: None <port-sgimips@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sgimips
Date: 12/02/2005 20:09:05
In article <20051119232921.GE13998@drowsy.duskware.de>
martin@duskware.de wrote:

> On Sun, Nov 20, 2005 at 04:04:53AM +0900, Izumi Tsutsui wrote:
> > Powercycle will fix it, though.
> 
> Duh, indeed.

Hmm, calling crime_watchdog_reset() from ddb prompt
(which will cause soft reset) also fixes the problem.
If you can reproduce the hang, could you try the attached
patch?
---
Izumi Tsutsui


Index: dev/crime.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sgimips/dev/crime.c,v
retrieving revision 1.21
diff -u -r1.21 crime.c
--- dev/crime.c	18 Oct 2005 11:31:12 -0000	1.21
+++ dev/crime.c	2 Dec 2005 10:59:25 -0000
@@ -108,6 +108,9 @@
 	    BUS_SPACE_MAP_LINEAR, &crm_ioh))
 		panic("crime_attach: can't map I/O space");
 
+	bus_space_write_8(crm_iot, crm_ioh, CRIME_WATCHDOG, 0);
+	bus_space_write_8(crm_iot, crm_ioh, CRIME_CONTROL, 0);
+
 	crm_id = bus_space_read_8(crm_iot, crm_ioh, CRIME_REV);
 
 	aprint_naive(": system ASIC");