From nobody@FreeBSD.ORG  Fri Jun 23 03:25:29 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 9F39437C19B; Fri, 23 Jun 2000 03:25:29 -0700 (PDT)
Message-Id: <20000623102529.9F39437C19B@hub.freebsd.org>
Date: Fri, 23 Jun 2000 03:25:29 -0700 (PDT)
From: taguchi@tohoku.iij.ad.jp
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: SYNC_CHACHE PROBREM: NEWTECH NDA20128A
X-Send-Pr-Version: www-1.0

>Number:         19465
>Category:       kern
>Synopsis:       SYNC_CHACHE PROBREM: NEWTECH NDA20128A
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 23 03:30:04 PDT 2000
>Closed-Date:    Sun Jul 22 21:09:05 PDT 2001
>Last-Modified:  Sun Jul 22 21:10:58 PDT 2001
>Originator:     Taguchi, Takeshi
>Release:        FreeBSD-3.4-STABLE
>Organization:
IIJ
>Environment:
FreeBSD hoya 3.4-STABLE FreeBSD 3.4-STABLE #1: Fri Jun 23 18:56:36 JST 2000     root@hoya:/usr/src/sys/compile/TEST  i386
>Description:
NEWTECH NDA20128A is a cheep RAID 0,1 unit.

I found a following error message when shutdown is complete.
# shutdown -h now
...[snip]...
(da1:ahc0:0:0:2:0) SYNCHRONIZE CACHE CDB:35 0 0 0 0 0 0 0 0 0
(da1:ahc0:0:0:2:0) error code 27

>How-To-Repeat:
connect this RAID unit, and execute shutdown commands.

>Fix:
Following patch work fine.

BEGIN>---8<CUT HERE>8---
diff -u cam/scsi/scsi_da.c.OLD cam/scsi/scsi_da.c
--- cam/scsi/scsi_da.c.OLD	Fri Jun 23 19:11:08 2000
+++ cam/scsi/scsi_da.c	Fri Jun 23 18:55:27 2000
@@ -152,6 +152,12 @@
 	},
 	{
 		/*
+		 */
+		{T_DIRECT, SIP_MEDIA_FIXED, "NEWTECH", "NDA20128A", "*"},
+		/*quirks*/ DA_Q_NO_SYNC_CACHE
+	},
+	{
+		/*
 		 * Doesn't like the synchronize cache command.
 		 * Reported by: Blaz Zupan <blaz@gold.amis.net>
 		 */
END>---8<CUT HERE>8---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 21:21:38 PDT 2001 
State-Changed-Why:  

Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19465 
State-Changed-From-To: feedback->closed 
State-Changed-By: mike 
State-Changed-When: Sun Jul 22 21:09:05 PDT 2001 
State-Changed-Why:  

Originator is unable to test on a newer version of FreeBSD.  If 
this is still a problem in a newer release of FreeBSD, a new PR 
should be opened. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19465 
>Unformatted:
