From owner-freebsd-current@FreeBSD.ORG Wed Nov 18 16:38:34 2009 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 5D01D106566B for ; Wed, 18 Nov 2009 16:38:34 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id DFD5E8FC12 for ; Wed, 18 Nov 2009 16:38:33 +0000 (UTC) Received: by fxm27 with SMTP id 27so1436893fxm.3 for ; Wed, 18 Nov 2009 08:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=129II1XXZ3wEMUbfZszAacfmeyNx7pYCdFyMZSc48vQ=; b=qljd1nfrKs9phwGO4VN+MtK1XfjdHXfHt9rR8jJe2tdbbQnVxzhedgKFUNS4NWcgqN 3zFK9R/Fgi22K9J2+6rPL25dqQ/7TN9vkF1qlxtKkf+Q5dbhEqcwY34CPZLAJYdXRtS1 5VHA0mHRMiPni8kY738TU6O5w5yNwRGr+312o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=oiSBWgw6kXYKu0OHfjujrDHPbnNt98/3Vh7zApIyS2GcBLmexNIBM9nr4ZBtEwL92O fAeFX3GNUWVYkzCaEOU2lsX4WKj8fwHbNEPKEN4e1mWBuUa35SuQ1ubxIuEWboJB2Vs8 t3J1Syhh4yqSPWJJ2bVEHkpAmy0ZXtw2bsIm8= Received: by 10.204.15.16 with SMTP id i16mr7147287bka.72.1258562312260; Wed, 18 Nov 2009 08:38:32 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm107152fxm.6.2009.11.18.08.38.31 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 08:38:31 -0800 (PST) Sender: Alexander Motin Message-ID: <4B042304.8060807@FreeBSD.org> Date: Wed, 18 Nov 2009 18:38:28 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: Norikatsu Shigemura References: <20091119004651.7432a6e4.nork@FreeBSD.org> In-Reply-To: <20091119004651.7432a6e4.nork@FreeBSD.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org Subject: Re: How do I use NCQ of Intel X25-E(SSD) on ahci(4)? 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: Wed, 18 Nov 2009 16:38:34 -0000 Hi. Norikatsu Shigemura wrote: > I have a Intel 64GB SSD(X25-E) and a Western Digital Caviar Green > 1TB HDD (WD10EADS), and use them on ahci(4). ahci(4) can use NCQ > of WD10EADS, but doesn't use NCQ of X25-E. > > # camcontrol identify ada0 > pass0: ATA/ATAPI-7 SATA 2.x device > pass0: 300.000MB/s transfers > > Native Command Queuing (NCQ) yes 30/0x1E Here is the reason ^^^ This drive support less tags (31) then your AHCI controller does (32). Support for such case is not implemented yet. As temporary solution you may limit controller to use only 31 tag, then NCQ will be used. All you need is to go to ahci.c and change line ch->numslots = ...; to ch->numslots = min(31, ...); -- Alexander Motin