From owner-freebsd-stable@FreeBSD.ORG Sat Apr 2 09:40:41 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25651106566C for ; Sat, 2 Apr 2011 09:40:41 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta02.westchester.pa.mail.comcast.net (qmta02.westchester.pa.mail.comcast.net [76.96.62.24]) by mx1.freebsd.org (Postfix) with ESMTP id E1C038FC14 for ; Sat, 2 Apr 2011 09:40:40 +0000 (UTC) Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19]) by qmta02.westchester.pa.mail.comcast.net with comcast id SZgf1g0030QuhwU52Zghlh; Sat, 02 Apr 2011 09:40:41 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta02.westchester.pa.mail.comcast.net with comcast id SZgf1g00h1t3BNj3NZggsG; Sat, 02 Apr 2011 09:40:41 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 7B4E69B429; Sat, 2 Apr 2011 02:40:38 -0700 (PDT) Date: Sat, 2 Apr 2011 02:40:38 -0700 From: Jeremy Chadwick To: "Patrick M. Hausen" Message-ID: <20110402094038.GA3521@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Stable Subject: Re: ahci.ko in RELENG_8_2, what about atacontrol cap? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2011 09:40:41 -0000 On Sat, Apr 02, 2011 at 11:34:32AM +0200, Patrick M. Hausen wrote: > Hi, all, > > On my system using the "old" ATA driver, I can use a command like this > to get useful information about my disk drives: > > ------------------------------------------------------------ > nas-pmh# atacontrol cap ad4 > > Protocol SATA revision 2.x > device model ST32000542AS > serial number 5XW251QF > firmware revision CC34 > cylinders 16383 > heads 16 > sectors/track 63 > lba supported 268435455 sectors > lba48 supported 3907029168 sectors > dma supported > overlap not supported > > Feature Support Enable Value Vendor > write cache yes yes > read ahead yes yes > Native Command Queuing (NCQ) yes - 31/0x1F > Tagged Command Queuing (TCQ) no no 31/0x1F > SMART yes yes > microcode download yes yes > security yes no > power management yes yes > advanced power management yes yes 49344/0xC0C0 > automatic acoustic management yes yes 254/0xFE 254/0xFE > ------------------------------------------------------------ > > When I switch to the new AHCI driver the drives are connected to > the CAM subsystem: > > ------------------------------------------------------------ > nas-pmh# camcontrol devlist > at scbus0 target 0 lun 0 (ada0,pass0) > at scbus1 target 0 lun 0 (ada1,pass1) > at scbus2 target 0 lun 0 (ada2,pass2) > at scbus3 target 0 lun 0 (ada3,pass3) > at scbus4 target 0 lun 0 (da0,pass4) > ------------------------------------------------------------ > > But: > > ------------------------------------------------------------ > nas-pmh# camcontrol inquiry ada0 > nas-pmh# camcontrol readcap ada0 > (pass0:ahcich0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 > (pass0:ahcich0:0:0:0): CAM status: CCB request was invalid > ------------------------------------------------------------ > > > Obvious question: is there a way to get the same information (NCQ support, > write cache status, ...) with the new driver? You want "camcontrol identify adaX". DO NOT confuse this with "camcontrol inquiry adaX" (this won't work). identify = for ATA inquiry = for SCSI See camcontrol(8) man page for specifics. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB |