Subject: kern/29177: pullups needed to fix esp(4) in netbsd-1-6
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 01/31/2005 22:32:00
>Number:         29177
>Category:       kern
>Synopsis:       pullups needed to fix esp(4) in netbsd-1-6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 31 22:32:00 +0000 2005
>Originator:     Greg A. Woods
>Release:        NetBSD 1.6.2_STABLE
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 1.6.2_STABLE
Architecture: sparc
Machine: sparc
>Description:

	The esp(4) driver, and any others that also use ncr53c9x.c,
	suffers a lock-up whenever the scsi bus is reset, even if by
	itself.

	This is the infamous "esp0: invalid state: 6" bug that's since
	been fixed in -current.  (thank you _very_ much!) 

>How-To-Repeat:

	Try to use, or even try to debug, slightly flaky drives on a Sun
	SS20, for example.

>Fix:

$ cd src/sys/dev/ic
$ cvs diff -r 1.104 -r 1.111 ncr53c9x.c | patch ncr53c9x.c
$ cvs diff -r 1.39 -r 1.45 ncr53c9xvar.h | patch ncr53c9xvar.h