From owner-freebsd-current@FreeBSD.ORG Mon Dec 20 23:31:59 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB9F410656BB; Mon, 20 Dec 2010 23:31:59 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 48DAC8FC13; Mon, 20 Dec 2010 23:31:58 +0000 (UTC) Received: by wyf19 with SMTP id 19so3342849wyf.13 for ; Mon, 20 Dec 2010 15:31:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=W3zaWeY7ioufNt0dbcrrKEgPJB/mzpIC4DgWcaACcu0=; b=XWd9Xczbp+uk8MBayC7Pfp/D3fcTvkIp3WYHL971uE5igIUhTzh2/EjZdLkDiFT96Q aUJPm0+fSDuRLcJhFSH6ZyZgE3f71r3KzTl711cf0AOF/jA/pUsClkDhQcUvJt2YTMbO l4l1bBjNfLmpsi+VEfEuOWpGRt/cLT5OCacAk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=OHEAfhMAOoLjCaCCl0lSnSO8HUhN9QZ2Xe9hE3I2q/EL5eRGvRSCVc9qTJLfTRSd6l xntY0htX6lHAx6teu9W+u8ltrV56ucX8zQPq5Xi3EVNb4Jv432baiQArDxetS2k+C8ln Sq6nXkVeY4fZTCenKUCnSnoC2xlCd61oDCaHg= MIME-Version: 1.0 Received: by 10.216.154.140 with SMTP id h12mr3518672wek.46.1292887918188; Mon, 20 Dec 2010 15:31:58 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.254.226 with HTTP; Mon, 20 Dec 2010 15:31:58 -0800 (PST) In-Reply-To: <3B3E7B72-C7C6-46F4-9DD9-0D82194FE068@mac.com> References: <20101220231005.GA68477@freebsd.org> <3B3E7B72-C7C6-46F4-9DD9-0D82194FE068@mac.com> Date: Mon, 20 Dec 2010 15:31:58 -0800 X-Google-Sender-Auth: nMpzV-WcdASMDAYrlTi20uJfGpA Message-ID: From: Garrett Cooper To: Chuck Swiger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Alexander Best , freebsd-current@freebsd.org Subject: Re: two ata write chaching request X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2010 23:31:59 -0000 On Mon, Dec 20, 2010 at 3:29 PM, Chuck Swiger wrote: > On Dec 20, 2010, at 3:10 PM, Alexander Best wrote: >> 1) write caching to be turned on and off for individual hdds >> =A0 (i.e. hw.ata.X.wc) and >> 2) to be able to turn write chaching on and off on the fly. > > NetBSD's dkctl allows one to enable and disable read or write caches on a= per-device basis, on the fly. =A0Presumably atacontrol or whatever the new= ada / ACHI driver uses for control would be the FreeBSD equivalent.... atacontrol doesn't work with ahci. Some changes to this code should be coming soon, so I don't advise investing too much in hacking the driver for this support (unless you talk to mav@ first)... Thanks, -Garrett