Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 1997 20:02:56 -0700 (PDT)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        dufault@hda.com
Cc:        scsi@freebsd.org
Subject:   Re: NOT READY
Message-ID:  <199708050302.UAA21425@silvia.HIP.Berkeley.EDU>
In-Reply-To: <199708011056.GAA06673@hda.hda.com> (message from Peter Dufault on Fri, 1 Aug 1997 06:56:52 -0400 (EDT))

next in thread | previous in thread | raw e-mail | index | archive | help
 * Something like that - I think you want to return SCSIRET_DO_RETRY and
 * not SCSIRET_CONTINUE, and you may need to delay in there somehow because
 * it is going to take a while to spin up.

Ok, here's another one.

===
Index: sd.c
===================================================================
RCS file: /usr/cvs/src/sys/scsi/sd.c,v
retrieving revision 1.95.2.2
diff -u -r1.95.2.2 sd.c
--- sd.c	1997/02/05 19:02:22	1.95.2.2
+++ sd.c	1997/08/04 22:26:13
@@ -855,7 +855,17 @@
 
 	/* Retry all disk errors.
 	 */
+
 	scsi_sense_print(xs);
+	/* Try to restart if drive says not ready.
+	 */
+	if ((sense->error_code & SSD_ERRCODE_VALID) == 0x2) {
+		scsi_start_unit(xs->sc_link, SCSI_ERR_OK | SCSI_SILENT);
+		DELAY(5000000);
+		printf(", sent start unit command\n");
+		return SCSIRET_DO_RETRY;
+	}
+
 	if (xs->retries)
 		printf(", retries:%d\n", xs->retries);
 	else
===

I've been running the machines with the above patch since this
afternoon.  I'll let you know if I see my message in the log.

Satoshi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708050302.UAA21425>