From aw1@stade.co.uk Tue Mar  9 21:51:02 1999
Return-Path: <aw1@stade.co.uk>
Received: from stade.demon.co.uk (stade.demon.co.uk [158.152.29.164])
	by hub.freebsd.org (Postfix) with ESMTP id 6A270150A8
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  9 Mar 1999 21:50:42 -0800 (PST)
	(envelope-from aw1@stade.co.uk)
Received: (from aw1@localhost)
	by stade.demon.co.uk (8.9.3/8.9.1) id FAA01337;
	Wed, 10 Mar 1999 05:36:59 GMT
	(envelope-from aw1)
Message-Id: <199903100536.FAA01337@stade.demon.co.uk>
Date: Wed, 10 Mar 1999 05:36:59 GMT
From: Adrian Wontroba <aw1@stade.co.uk>
Reply-To: aw1@stade.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: CAM - disable sync cache on Fujitsu M2622 drive
X-Send-Pr-Version: 3.2

>Number:         10521
>Category:       kern
>Synopsis:       CAM - disable sync cache on Fujitsu M2622 drive
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ken
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar  9 22:00:00 PST 1999
>Closed-Date:    Sat Mar 13 16:19:35 PST 1999
>Last-Modified:  Sat Mar 13 16:20:46 PST 1999
>Originator:     Adrian Wontroba
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Yes, some would be nice!
>Environment:

	Recent -current

>Description:

	The elderly Fujitsu M2622 drive is another which doesn't like
	the syncronise cache command on closedown.

>How-To-Repeat:

	Find such a drive (8-) and use it.

>Fix:
	
	Add another quirk ....

Index: scsi_da.c
===================================================================
RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v
retrieving revision 1.21
diff -u -r1.21 scsi_da.c
--- scsi_da.c	1999/03/05 23:20:20	1.21
+++ scsi_da.c	1999/03/10 05:07:49
@@ -134,6 +134,15 @@
 	},
 	{
 		/*
+		 * nor does this old Fujitsu drive like the
+		 * synchronize cache command.
+		 * Reported by: Adrian Wontroba <aw1@stade.co.uk>
+		 */
+		{T_DIRECT, SIP_MEDIA_FIXED, "FUJITSU", "M2622*", "*"},
+		/*quirks*/ DA_Q_NO_SYNC_CACHE
+	},
+	{
+		/*
 		 * This drive doesn't like the synchronize cache command
 		 * either.  Reported by: Matthew Jacob <mjacob@feral.com>
 		 * in NetBSD PR kern/6027, August 24, 1998.


>Release-Note:
>Audit-Trail:

From: "Kenneth D. Merry" <ken@plutotech.com>
To: aw1@stade.co.uk
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/10521: CAM - disable sync cache on Fujitsu M2622 drive
Date: Wed, 10 Mar 1999 09:48:18 -0700 (MST)

 Adrian Wontroba wrote...
 > 
 > >Number:         10521
 > >Category:       kern
 > >Synopsis:       CAM - disable sync cache on Fujitsu M2622 drive
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          change-request
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Tue Mar  9 22:00:00 PST 1999
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Adrian Wontroba
 > >Release:        FreeBSD 4.0-CURRENT i386
 > >Organization:
 > Yes, some would be nice!
 > >Environment:
 > 
 > 	Recent -current
 > 
 > >Description:
 > 
 > 	The elderly Fujitsu M2622 drive is another which doesn't like
 > 	the syncronise cache command on closedown.
 > 
 
 You'll have to be a little more specific.  What happens when the drive gets
 a cache sync command?
 
 Ken
 -- 
 Kenneth Merry
 ken@plutotech.com
 
State-Changed-From-To: open->closed 
State-Changed-By: ken 
State-Changed-When: Sat Mar 13 16:19:35 PST 1999 
State-Changed-Why:  
PR submitter reports that he can no longer reproduce the problem.  This 
was likely fixed by a recent checkin to the da driver that elminates 
error messages from the cache sync command when the sense key is illegal 
request. 


Responsible-Changed-From-To: freebsd-bugs->ken 
Responsible-Changed-By: ken 
Responsible-Changed-When: Sat Mar 13 16:19:35 PST 1999 
Responsible-Changed-Why:  
I'm closing the PR. 
>Unformatted:
