Re: how to enable NCQ on Intel ESB2 AHCI SATA?controller/ST31000340NS

2011-03-24 Thread Anton Yuzhaninov
On Wed, 23 Mar 2011 16:37:11 -0500, Dan Nelson wrote:
DN> If you do a verbose boot, you should get a couple more lines printed:
DN> 
DN> ahci0: Caps: 64bit NCQ SNTF AL CLO 3Gbps PM PMD SSC PSC 32cmd CCC EM 6ports
DN> ahci0: Caps2:
DN> ahci0: EM Caps: ALHD XMT SMB LED
DN> 
DN> If you see NCQ in your Caps line, then queueing should be supported by the
DN> controller.  Looking at the ahci.c source, there is a quirk "AHCI_Q_NONCQ"
DN> that disables NCQ, but it it only used for VIA VT8251 chips.

It seems to be NCQ not supported by this controller:
ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier supported
ahci0: Caps: 64bit ALP AL 3Gbps PM SSC PSC 32cmd 6ports
ahci0: Caps2:

-- 
WBR,
 Anton Yuzhaninov

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: how to enable NCQ on Intel ESB2 AHCI SATA controller/ST31000340NS

2011-03-23 Thread Dan Nelson
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
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


how to enable NCQ on Intel ESB2 AHCI SATA controller/ST31000340NS

2011-03-22 Thread Anton Yuzhaninov
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
...
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0:  ATA-8acd0: DVDROM  at
ata0-slave UDMA33
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1:  ATA-8 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)


There is no lines "Command Queueing enabled"

# camcontrol tags ada0
(pass0:ahcich0:0:0:0): device openings: 2
camcontrol identify ada0
pass0:  ATA-8 SATA 2.x device
pass0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)

protocol  ATA/ATAPI-8 SATA 2.x
device model  ST31000340NS
firmware revision SN05
serial number 9QJ1L67B
WWN   5000c500d902ea3
cylinders 16383
heads 16
sectors/track 63
sector size   logical 512, physical 512, offset 0
LBA supported 268435455 sectors
LBA48 supported   1953525168 sectors
PIO supported PIO4
DMA supported WDMA2 UDMA6
media RPM 7200

Feature  Support  Enabled   Value   Vendor
read ahead yes  yes
write cacheyes  yes
flush cacheyes  yes
overlapno
Tagged Command Queuing (TCQ)   no   no
Native Command Queuing (NCQ)   yes  32 tags


# uname -srp
FreeBSD 8.2-STABLE-20110315 amd64

-- 
WBR,
 Anton Yuzhaninov

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"