Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2018 21:37:34 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341769 - head/sys/cam/scsi
Message-ID:  <201812092137.wB9LbYp8027330@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sun Dec  9 21:37:34 2018
New Revision: 341769
URL: https://svnweb.freebsd.org/changeset/base/341769

Log:
  Send a START UNIT command when a disk responds with an ASC of 04/1C.
  This will hopefully spin up a disk that's in low-power mode.
  
  Sponsored by: Netflix
  Submitted by: scottl@

Modified:
  head/sys/cam/scsi/scsi_all.c

Modified: head/sys/cam/scsi/scsi_all.c
==============================================================================
--- head/sys/cam/scsi/scsi_all.c	Sun Dec  9 21:11:15 2018	(r341768)
+++ head/sys/cam/scsi/scsi_all.c	Sun Dec  9 21:37:34 2018	(r341769)
@@ -1165,7 +1165,7 @@ static struct asc_table_entry asc_table[] = {
 	{ SST(0x04, 0x1B, SS_RDEF,	/* XXX TBD */
 	    "Logical unit not ready, sanitize in progress") },
 	/* DT     MAEB    */
-	{ SST(0x04, 0x1C, SS_RDEF,	/* XXX TBD */
+	{ SST(0x04, 0x1C, SS_START | SSQ_DECREMENT_COUNT | ENXIO,
 	    "Logical unit not ready, additional power use not yet granted") },
 	/* D              */
 	{ SST(0x04, 0x1D, SS_RDEF,	/* XXX TBD */



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