From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 21:37:27 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 444DF1065672 for ; Wed, 23 Mar 2011 21:37:27 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id E6D038FC08 for ; Wed, 23 Mar 2011 21:37:26 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id p2NLbCKh040954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Mar 2011 16:37:12 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.4/8.14.4) with ESMTP id p2NLbCQB002578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Mar 2011 16:37:12 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.4/8.14.4/Submit) id p2NLbBgL002577; Wed, 23 Mar 2011 16:37:11 -0500 (CDT) (envelope-from dan) Date: Wed, 23 Mar 2011 16:37:11 -0500 From: Dan Nelson To: Anton Yuzhaninov Message-ID: <20110323213711.GH44561@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 8.2-PRERELEASE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Wed, 23 Mar 2011 16:37:12 -0500 (CDT) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: freebsd-questions@freebsd.org Subject: Re: how to enable NCQ on Intel ESB2 AHCI SATA controller/ST31000340NS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 21:37:27 -0000 In the last episode (Mar 22), Anton Yuzhaninov said: > How to enable NCQ on this controller: > ahci0@pci0:0:31:2: class=0x010601 card=0x808015d9 chip=0x26818086 rev=0x09 hdr=0x00 > vendor = 'Intel Corporation' > device = 'LSI LOGIC, 62089A2, LSISAS1068 B0, T 0620, WE 119200.1 (62089A2)' > class = mass storage > subclass = SATA > bar [10] = type I/O Port, range 32, base 0x18a0, size 8, enabled > bar [14] = type I/O Port, range 32, base 0x1874, size 4, enabled > bar [18] = type I/O Port, range 32, base 0x1878, size 8, enabled > bar [1c] = type I/O Port, range 32, base 0x1870, size 4, enabled > bar [20] = type I/O Port, range 32, base 0x1880, size 32, enabled > bar [24] = type Memory, range 32, base 0xd8700400, size 1024, enabled > cap 01[70] = powerspec 2 supports D0 D3 current D0 > cap 12[a8] = SATA Index-Data Pair > > dmesg: > ahci0: port 0x18a0-0x18a7,0x1874-0x1877,0x1878-0x187f,0x1870-0x1873,0x1880-0x189f mem 0xd8700400-0xd87007ff irq 19 at device 31.2 on pci0 > ahci0: [ITHREAD] > ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier supported If you do a verbose boot, you should get a couple more lines printed: ahci0: Caps: 64bit NCQ SNTF AL CLO 3Gbps PM PMD SSC PSC 32cmd CCC EM 6ports ahci0: Caps2: ahci0: EM Caps: ALHD XMT SMB LED If you see NCQ in your Caps line, then queueing should be supported by the controller. Looking at the ahci.c source, there is a quirk "AHCI_Q_NONCQ" that disables NCQ, but it it only used for VIA VT8251 chips. -- Dan Nelson dnelson@allantgroup.com