From owner-freebsd-scsi@FreeBSD.ORG Tue Jan 31 11:39:34 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4A8A16A420 for ; Tue, 31 Jan 2006 11:39:34 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40A7E43D46 for ; Tue, 31 Jan 2006 11:39:34 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 654821172F; Tue, 31 Jan 2006 12:39:26 +0100 (CET) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 57592-01; Tue, 31 Jan 2006 12:39:16 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id 33058114B1; Tue, 31 Jan 2006 12:39:15 +0100 (CET) From: Florent Thoumie To: Matthew Jacob Date: Tue, 31 Jan 2006 12:38:59 +0100 User-Agent: KMail/1.8.2 References: <20060130202806.DCC7916A4CA@hub.freebsd.org> <43DEF43A.6090804@root.org> <20060130213338.H79194@ns1.feral.com> In-Reply-To: <20060130213338.H79194@ns1.feral.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3005303.P7i632OuBW"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601311239.10248.flz@xbsd.org> X-Virus-Scanned: amavisd-new at xbsd.org Cc: freebsd-scsi@freebsd.org, Nate Lawson Subject: Re: cvs commit: src/sys/cam/scsi scsi_da.c src/sys/dev/usb umass.c usbdevs X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 11:39:34 -0000 --nextPart3005303.P7i632OuBW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 31 January 2006 06:33, Matthew Jacob wrote: > >> Linux only sends the SYNCHRONIZE_CACHE command if the WCE (Write Cache > >> Enable) bit of the disk is set. I can't seem to find something > >> equivalent to this in our CAM framework. I have no particular SCSI > >> knowledge but I guess I can have a look at this tomorrow. > >> > >> I'm forwarding this to freebsd-scsi@ (keep me CC'ed, as I'm not > >> subscribed to this list, yet). > > > > Hmm, is WCE part of the inquiry response? [moving to scsi@ list] > > Yes. Hum, reading Linux source and SCSI standard [1], I'm not so sure, but I mig= ht=20 be wrong. We need to request the caching page in scsi_mode_sense_{6,10}. I'll try to write something today, but I guess someone having already worke= d=20 on scsi will only need 10 minutes to DTRT. [1] http://www.danbbs.dk/~dino/SCSI/SCSI2-09.html (table 156) =2D-=20 =46lorent Thoumie flz@FreeBSD.org =46reeBSD Committer --nextPart3005303.P7i632OuBW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD30xeMxEkbVFH3PQRAh5hAJ41awguZx4xg/Mec2huUjS0BNQxjQCfYPHY zo1mPzWax9DpJISLF9IwFU0= =asgn -----END PGP SIGNATURE----- --nextPart3005303.P7i632OuBW--