From walter@pelissero.de  Wed Oct  1 09:58:53 2003
Return-Path: <walter@pelissero.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9DA9C16A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Oct 2003 09:58:53 -0700 (PDT)
Received: from webmail.tiscali.de (relay1.tiscali.de [62.26.116.129])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BBCDA43FE0
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Oct 2003 09:58:50 -0700 (PDT)
	(envelope-from walter@pelissero.de)
Received: from daemon.home.loc (62.246.45.127) by webmail.tiscali.de (6.7.019)
        id 3F59EB2900A1549E for FreeBSD-gnats-submit@freebsd.org; Wed, 1 Oct 2003 18:58:49 +0200
Received: from hyde.home.loc (hyde.home.loc [10.0.0.2])
	by daemon.home.loc (8.12.9/8.12.8) with ESMTP id h91GhBHC000356
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Oct 2003 18:43:11 +0200 (CEST)
	(envelope-from wcp@hyde.home.loc)
Received: from hyde.home.loc (localhost [127.0.0.1])
	by hyde.home.loc (8.12.9/8.12.8) with ESMTP id h91GhAWh000868
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Oct 2003 18:43:10 +0200 (CEST)
	(envelope-from wcp@hyde.home.loc)
Received: (from wcp@localhost)
	by hyde.home.loc (8.12.9/8.12.6/Submit) id h91GhA8e000867;
	Wed, 1 Oct 2003 18:43:10 +0200 (CEST)
	(envelope-from wcp)
Message-Id: <200310011643.h91GhA8e000867@hyde.home.loc>
Date: Wed, 1 Oct 2003 18:43:10 +0200 (CEST)
From: "Walter C. Pelissero" <walter@pelissero.de>
Reply-To: walter@pelissero.de
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Quirk for Quantum LPS540S
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57468
>Category:       kern
>Synopsis:       [patch] Quirk for Quantum LPS540S
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-scsi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 01 10:00:35 PDT 2003
>Closed-Date:    Thu Apr 14 04:05:28 GMT 2005
>Last-Modified:  Thu Apr 14 04:05:28 GMT 2005
>Originator:     Walter C. Pelissero
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD hyde.home.loc 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: Sat Sep 27 18:56:22 CEST 2003 root@hyde.home.loc:/.amd_mnt/daemon/host/usr/warehouse/src/sys/compile/PCG-XG9 i386


	
>Description:
	Quantum LPS540S doesn't implement cache flushes.
>How-To-Repeat:
	Simply shutting down the system will expose the error short
	before the expected "System is halted" message.
>Fix:

	A quirk in scsi_da.c is in order.  Adding something like this
	will do:

	{	{T_DIRECT, SIP_MEDIA_FIXED, quantum, "LPS540S", "*"},
		DA_Q_NO_SYNC_CACHE },

	BTW, I suspect all the LPS line from Quantum suffers of the
	same problem.  If this is confirmed, simply changing the
	already existing quirk for the LPS525S (lines 201-207) will do:

	{
		/*
		 * Doesn't like the synchronize cache command.
		 */
		{T_DIRECT, SIP_MEDIA_FIXED, quantum, "LPS*", "*"},
		/*quirks*/ DA_Q_NO_SYNC_CACHE
	},

	Note the more general matcher for the product name.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Sep 11 22:13:09 GMT 2004 
Responsible-Changed-Why:  
This is about a SCSI disk. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57468 
State-Changed-From-To: open->closed 
State-Changed-By: mjacob 
State-Changed-When: Thu Apr 14 04:05:12 GMT 2005 
State-Changed-Why:  
Applied conservative suggested quirk. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57468 
>Unformatted:
