Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2011 16:37:11 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Anton Yuzhaninov <citrin@citrin.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to enable NCQ on Intel ESB2 AHCI SATA controller/ST31000340NS
Message-ID:  <20110323213711.GH44561@dan.emsphone.com>
In-Reply-To: <im9tec$3a8$1@dough.gmane.org>
References:  <im9tec$3a8$1@dough.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <Intel ESB2 AHCI SATA controller> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110323213711.GH44561>