Skip to contentSkip to conversation

SATA II NCQ and multi-port support for ICH7

DISCUSSION [email protected] 6 participants 6 messages Jul 22, 2009 – Jul 24, 2009 libata

lore
Share & tools
lore
#0 lore raw

I have recently purchased an Areca ARC-5020 external eSATA II RAID to connect to my system. This unit supports ICH NCQ and multi-port for multiple volumes. I have connected it to my Intel DG41TY mainboard, which has the Intel 82801GB I/O Controller Hub (ICH7), but I find I am only seeing the first volume and the unit shows NCQ is inactive.

Looking at udev for the SATA-II port I see the following:

KERNEL[1247932822.419400] add /devices/pci0000:00/0000:00:1f.2 (pci)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1f.2
SUBSYSTEM=pci
DRIVER=ata_piix
PCI_CLASS=1018F
PCI_ID=8086:27C0
PCI_SUBSYS_ID=8086:D612
PCI_SLOT_NAME=0000:00:1f.2 MODALIAS=pci:v00008086d000027C0sv00008086sd0000D612bc01sc01i8f SEQNUM=1221

syslog shows the following:

ata_piix 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19 ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ata_piix 0000:00:1f.2: setting latency timer to 64
scsi2 : ata_piix
scsi3 : ata_piix
ata3: SATA max UDMA/133 cmd 0xf0e0 ctl 0xf0d0 bmdma 0xf0a0 irq 19 ata4:
SATA max UDMA/133 cmd 0xf0c0 ctl 0xf0b0 bmdma 0xf0a8 irq 19 ata3.00:
ATA-6: Areca ARC-5020-VOL#00, 0100 AX, max UDMA/133 ata3.00: 1052732928
sectors, multi 16: LBA48 NCQ (depth 0/32) ata3.00: configured for UDMA/133
scsi 2:0:0:0: Direct-Access ATA Areca ARC-5020 0100 PQ: 0 ANSI:
5 sd 2:0:0:0: [sda] 1052732928 512-byte hardware sectors: (538 GB/501 GiB) sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

So NCQ is detected on the RAID unit but is not enabled and only one of the two volumes is being seen. Am I missing something that needs to be enabled for the driver to support the advanced features? Is my configuration loading the proper driver? If not, how can I load it?

-- Dave
-----------------------------------------------------------
[email protected]
-----------------------------------------------------------

#1 lore raw
Quoted 38 lines · [email protected] wrote:

I have recently purchased an Areca ARC-5020 external eSATA II RAID to connect to my system. This unit supports ICH NCQ and multi-port for multiple volumes. I have connected it to my Intel DG41TY mainboard, which has the Intel 82801GB I/O Controller Hub (ICH7), but I find I am only seeing the first volume and the unit shows NCQ is inactive.

Looking at udev for the SATA-II port I see the following:

KERNEL[1247932822.419400] add /devices/pci0000:00/0000:00:1f.2 (pci)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1f.2
SUBSYSTEM=pci
DRIVER=ata_piix
PCI_CLASS=1018F
PCI_ID=8086:27C0
PCI_SUBSYS_ID=8086:D612
PCI_SLOT_NAME=0000:00:1f.2 MODALIAS=pci:v00008086d000027C0sv00008086sd0000D612bc01sc01i8f SEQNUM=1221

syslog shows the following:

ata_piix 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19 ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ata_piix 0000:00:1f.2: setting latency timer to 64
scsi2 : ata_piix
scsi3 : ata_piix
ata3: SATA max UDMA/133 cmd 0xf0e0 ctl 0xf0d0 bmdma 0xf0a0 irq 19 ata4:
SATA max UDMA/133 cmd 0xf0c0 ctl 0xf0b0 bmdma 0xf0a8 irq 19 ata3.00:
ATA-6: Areca ARC-5020-VOL#00, 0100 AX, max UDMA/133 ata3.00: 1052732928
sectors, multi 16: LBA48 NCQ (depth 0/32) ata3.00: configured for UDMA/133
scsi 2:0:0:0: Direct-Access ATA Areca ARC-5020 0100 PQ: 0 ANSI:
5 sd 2:0:0:0: [sda] 1052732928 512-byte hardware sectors: (538 GB/501 GiB) sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

Quoted 4 lines

So NCQ is detected on the RAID unit but is not enabled and only one of the two volumes is being seen. Am I missing something that needs to be enabled for the driver to support the advanced features? Is my configuration loading the proper driver? If not, how can I load it?

ata_piix is loaded for legacy IDE emulation, and is limited by IDE interface in number of supported ports. NCQ is not supported by this interface.

ahci driver supports "native mode", with full NCQ and all ports.

ICH7 chip usually supports both legacy IDE and native AHCI modes.

Jeff

#5 lore raw
In reply to [email protected]
Quoted 5 lines · On 07/22/2009 07:15 AM, [email protected] wrote:

I have recently purchased an Areca ARC-5020 external eSATA II RAID to connect to my system. This unit supports ICH NCQ and multi-port for multiple volumes. I have connected it to my Intel DG41TY mainboard, which has the Intel 82801GB I/O Controller Hub (ICH7), but I find I am only seeing the first volume and the unit shows NCQ is inactive.

...

Quoted 4 lines

So NCQ is detected on the RAID unit but is not enabled and only one of the two volumes is being seen. Am I missing something that needs to be enabled for the driver to support the advanced features? Is my configuration loading the proper driver? If not, how can I load it?

The SATA controller is in the legacy PIIX mode which doesn't support most SATA-specific features. You need to switch it into AHCI mode (should be a BIOS setting for it somewhere) and then the ahci driver will get used instead of ata_piix.

#2 lore raw
In reply to Jeff Garzik
Quoted 7 lines · Jeff Garzik

ata_piix is loaded for legacy IDE emulation, and is limited by IDE interface in number of supported ports. NCQ is not supported by this interface.

ahci driver supports "native mode", with full NCQ and all ports.

ICH7 chip usually supports both legacy IDE and native AHCI modes.

Also, IIRC, ich7 ahci doesn't support PMP.

Signature · 1 line
tejun
#3 lore raw
In reply to Jeff Garzik
Quoted 1 line · Jeff Garzik

ICH7 chip usually supports both legacy IDE and native AHCI modes.

No. Only the ICH7DH, ICH7R and ICH7-M variants support AHCI. See
http://www.intel.com/design/chipsets/datashts/307013.htm

http://www.intel.com/support/chipsets/imst/sb/cs-012304.htm lists the Intel controller hubs with AHCI support. Please note that this list does *not* include ICH7, ICH8, ICH9 or ICH10 (i.e. the "plain" desktop variants).

This has been discussed here a number of times before. See e.g.
http://www.mail-archive.com/[email protected]/msg02213.html

Note that you may be lucky and able to work around the problem. It seems that this is mostly a license restriction, preventing the motherboard manufacturers from providing an AHCI mode in the BIOS setup.

Matthew Garret has made an AHCI force quirking patch for those lacking an AHCI option: http://mjg59.livejournal.com/85504.html
I don't know if this will work with a plain ICH7.

Another option is fixing the BIOS. I'm successfully running an ICH9 in AHCI mode by using a BIOS meant for an identical motherboard with an ICH9R (The motherboards in question are Asus P5K and P5KR). But that sort of flashing experiments are of course risky and not recommended... It's probably better to buy a new motherboard without destroying the old one first :-)

Just remember to pay the extra 10 dollars for the "R".

Bjørn

#4 lore raw
Quoted 6 lines · Bjørn Mork
Quoted 1 line · Jeff Garzik

ICH7 chip usually supports both legacy IDE and native AHCI modes.

No. Only the ICH7DH, ICH7R and ICH7-M variants support AHCI. See
http://www.intel.com/design/chipsets/datashts/307013.htm

I was speaking generically about the ICH7-ish family, which includes all those variants you listed.

Because, as you aptly demonstrated, it is pedantic to simply repeat a long list of ICH7 chips...

Jeff