Subject: Re: SCSI probs on spork 10
To: NetBSD list <netbsd@mrynet.com>
From: Andrey Petrov <petrov@netbsd.org>
List: port-sparc
Date: 07/18/2001 18:43:21
On Wed, Jul 18, 2001 at 07:46:00PM -0500, NetBSD list wrote:
> Andrey, et al,
> 
> I have tried on many attempts to debug the kernel as below.
> However, I was unsuccessful.  I tried to netboot and test
> the problem, no to avail.  Running the console through a 
> serial port when booted from disk was also not accomplishing
> anything (the amount of data logged simply bogged the OS
> down as it tried to display the messages serially to the
> console port).

Scott,

I appreciate your attemts, really do. 
If you still want to continue then you need to find a way
to reproduce the problem without any logging first. I'd go
with netboot (you don't need serial console in this case)
and have your root and swap mounted from NFS.
Then testcase: dd, mount, cvs, bonnie ... whatever which can case hanging
or other failure.
Then try to get the same with ncr53c9x_debug set.
You'll get /var/run/dmesg.boot and /var/log/messages on your server.

> 
> I can, however, say that I have had success by purchasing and
> installing a SCSI/NIC board and booting from this device.
> When I boot the system using this SBUS board, I have no more
> problems with the kernel hanging when tagged queuing is 
> enabled.

Is that also esp/fas based? Do you use the same disk?

Regards,
	Andrey

> 
> I don't know what else I can do to help debug this problem
> now.  I do, however, have a system running with tagged queuing now
> on my sparc 10 (and it works properly this way on the sparc 5
> as well).
> 
> Let me know if I can provide any more information on this
> (now seemingly old) problem.
> 
> Regards,
> -scott
> 
> > On Wed, Jun 20, 2001 at 07:49:29AM -0500, NetBSD list wrote:
> > > 
> > > Turning off TQING here has indeed resolved the hangs for me on
> > > the Sparc 10.  Thanks.
> > > 
> > > Let me know if I can help debug and modifications to try to get
> > > Tagged queueing working on the Sparc 5 or 10 for you.
> > > 
> > 
> > O'k let's try. First you need to set ncr53c9x_debug to 0x3ff,
> > do not set it at the beginning unless you boot from other then
> > esp device. Set it just before you start cvs or whatever causes
> > a problem.
> > So you need to break to ddb <Stop-A>, then 
> > 
> > write ncr53c9x_debug 0x3ff
> > c
> > 
> > Then the hard part, I need that log that will  be printed to console.
> > That should be big. Serial console might help, or console redirection
> > which I've never tried and don't know how to set up. First thing
> > that comes is xconsole.
> > 
> > Regards,
> > 	Andrey
>