From owner-freebsd-drivers@FreeBSD.ORG Tue Nov 19 19:20:30 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F350A4B6 for ; Tue, 19 Nov 2013 19:20:29 +0000 (UTC) Received: from am1outboundpool.messaging.microsoft.com (am1ehsobe003.messaging.microsoft.com [213.199.154.206]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 54FE625B2 for ; Tue, 19 Nov 2013 19:20:28 +0000 (UTC) Received: from mail107-am1-R.bigfish.com (10.3.201.245) by AM1EHSOBE026.bigfish.com (10.3.207.148) with Microsoft SMTP Server id 14.1.225.22; Tue, 19 Nov 2013 19:20:26 +0000 Received: from mail107-am1 (localhost [127.0.0.1]) by mail107-am1-R.bigfish.com (Postfix) with ESMTP id 3F50C1000AB for ; Tue, 19 Nov 2013 19:20:26 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.240.101; KIP:(null); UIP:(null); IPV:NLI; H:BL2PRD0510HT001.namprd05.prod.outlook.com; RD:none; EFVD:NLI X-SpamScore: 5 X-BigFish: VPS5(z5c5oz1b0aLc85fhzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz18c673hz2fh109h2a8h839hd24hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1bceh224fh1d07h1d0ch1d2eh1d3fh1dc1h1de9h1dfeh1dffh1e1dh1fe8h1ff5h20f0h2216h22d0h9a9j1155h) Received-SPF: pass (mail107-am1: domain of juniper.net designates 157.56.240.101 as permitted sender) client-ip=157.56.240.101; envelope-from=jelliott@juniper.net; helo=BL2PRD0510HT001.namprd05.prod.outlook.com ; .outlook.com ; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(69224002)(199002)(189002)(80022001)(46102001)(2656002)(31966008)(83322001)(74662001)(56776001)(66066001)(19580395003)(50986001)(65816001)(47446002)(74502001)(47976001)(54316002)(87936001)(81342001)(87266001)(74366001)(4396001)(47736001)(74316001)(49866001)(81816001)(81686001)(80976001)(81542001)(56816003)(76176001)(51856001)(76576001)(77982001)(79102001)(54356001)(76796001)(74876001)(76786001)(74706001)(15975445006)(76482001)(83072001)(53806001)(15202345003)(63696002)(77096001)(69226001)(59766001)(33646001)(85306002)(14773001)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR05MB192; H:BY2PR05MB190.namprd05.prod.outlook.com; CLIP:66.129.239.12; FPR:; RD:InfoNoRecords; A:1; MX:1; LANG:en; Received: from mail107-am1 (localhost.localdomain [127.0.0.1]) by mail107-am1 (MessageSwitch) id 1384888823284139_16050; Tue, 19 Nov 2013 19:20:23 +0000 (UTC) Received: from AM1EHSMHS004.bigfish.com (unknown [10.3.201.230]) by mail107-am1.bigfish.com (Postfix) with ESMTP id 412DF380151 for ; Tue, 19 Nov 2013 19:20:23 +0000 (UTC) Received: from BL2PRD0510HT001.namprd05.prod.outlook.com (157.56.240.101) by AM1EHSMHS004.bigfish.com (10.3.207.104) with Microsoft SMTP Server (TLS) id 14.16.227.3; Tue, 19 Nov 2013 19:20:23 +0000 Received: from BY2PR05MB192.namprd05.prod.outlook.com (10.242.39.149) by BL2PRD0510HT001.namprd05.prod.outlook.com (10.255.100.36) with Microsoft SMTP Server (TLS) id 14.16.383.1; Tue, 19 Nov 2013 19:20:21 +0000 Received: from BY2PR05MB190.namprd05.prod.outlook.com (10.242.39.139) by BY2PR05MB192.namprd05.prod.outlook.com (10.242.39.149) with Microsoft SMTP Server (TLS) id 15.0.820.5; Tue, 19 Nov 2013 19:20:19 +0000 Received: from BY2PR05MB190.namprd05.prod.outlook.com ([169.254.7.215]) by BY2PR05MB190.namprd05.prod.outlook.com ([169.254.7.229]) with mapi id 15.00.0820.005; Tue, 19 Nov 2013 19:20:18 +0000 From: Jay Elliott To: "freebsd-drivers@freebsd.org" Subject: usage of the standby immediate command in the ATA driver Thread-Topic: usage of the standby immediate command in the ATA driver Thread-Index: Ac7lXGFKyOPB1j98Sy6U2b+jbA3SCw== Date: Tue, 19 Nov 2013 19:20:18 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [66.129.239.12] x-forefront-prvs: 0035B15214 MIME-Version: 1.0 X-OriginatorOrg: juniper.net X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.16 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 19:20:30 -0000 Hi freebsd-drivers, I'm looking into some issues regarding filesystem corruption with my employ= er's FreeBSD6-based kernel. We've consulted with the vendor that supplies = our SSDs, and they've told us to make sure that our ATA driver is sending t= he ATA_STANDBY_IMMEDIATE command to the drive during shutdown after sending= the ATA_FLUSHCACHE command. I've looked into the FreeBSD9.2-version of th= e ata driver to see if this behavior has been changed, but as far as I can = tell it also does not send the ATA_STANDBY_IMMEDATE command from ad_shutdow= n. Does anybody know if this is intentional? I'm inclined to trust newer vers= ions of FreeBSD more than my hardware vendor, but I want to make sure this = isn't a mistake. Also, does anybody know if this behavior has changed in FreeBSD 10? I've b= een looking into it myself, but the new version of the ATA driver has chang= ed a lot from the 9.2 version and I'm having some difficulties understandin= g it. Thanks for all your help, Jay