Skip to contentSkip to conversation

HPT374 RAID bus controller SATA, only UDMA 33

DISCUSSION Lukas Postupa 2 participants 3 messages Dec 15, 2005 – Jan 7, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

my SAMSUNG 250GB drive connected to HPT374 RAID bus controller (SATA) is only working at UDMA 33.

I am using
HPT36X/37X chipset support (*).

And here is what dmesg says:

ide5: BM-DMA at 0xc008-0xc00f, BIOS settings: hdk:DMA, hdl:pio
hdk: SAMSUNG SP2504C, ATA DISK drive
hdk: max request size: 1024KiB
hdk: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63, UDMA(33)
hdk: cache flushes supported
hdk:

lspci:

02:05.0 RAID bus controller: Triones Technologies, Inc. HPT374 (rev 07)
Subsystem: Triones Technologies, Inc.: Unknown device 0001
Flags: bus master, 66Mhz, medium devsel, latency 120, IRQ 17 I/O ports at 9c00 [size=8]
I/O ports at a000 [size=4]
I/O ports at a400 [size=8]
I/O ports at a800 [size=4]
I/O ports at ac00 [size=256]
Expansion ROM at e0020000 [disabled] [size=128K]
Capabilities: [60] Power Management version 2

02:05.1 RAID bus controller: Triones Technologies, Inc. HPT374 (rev 07)
Subsystem: Triones Technologies, Inc.: Unknown device 0001
Flags: bus master, 66Mhz, medium devsel, latency 120, IRQ 17 I/O ports at b000 [size=8]
I/O ports at b400 [size=4]
I/O ports at b800 [size=8]
I/O ports at bc00 [size=4]
I/O ports at c000 [size=256]
Capabilities: [60] Power Management version 2

Trying to set UDMA 3-5 directly doesn't work:

dmesg:

hdk: Speed warnings UDMA 3/4/5 is not functional.

hdparm -t /dev/hdk

/dev/hdk:
Timing buffered disk reads: 42 MB in 3.06 seconds = 13.74 MB/sec

Does anyone have a solution to fix this bottleneck?

regards,

Lukas

Signature · 2 lines
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++
#1 lore raw
Quoted 4 lines · Lukas Postupa

Hi,

my SAMSUNG 250GB drive connected to HPT374 RAID bus controller (SATA) is only working at UDMA 33.

The HPT37x driver in the old IDE code assumes cable detection support. If someone uses a SATA bridge that gets this wrong then you don't get over 33Mhz.

Quoted 1 line

Does anyone have a solution to fix this bottleneck?

Force ata66 support on. See Documentation/ide.txt

#2 lore raw
Quoted 1 line · Alan Cox
Quoted 1 line

my SAMSUNG 250GB drive connected to HPT374 RAID bus > > controller

(SATA) is only working at UDMA 33.

Quoted 4 lines

Force ata66 support on. See Documentation/ide.txt

I tried to force ata66 but this doesn't work.
Drive still remains at UDMA 33.

But setting CONFIG_IDEDMA_PCI_AUTO to [ n ] (kernel 2.6.14.4) skips UDMA 33 detection and leads to this output:

hdk: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63 /*
before: ,UDMA(33) */

Then after booting:

$hdparm -d 1 /dev/hdk

/dev/hdk:
setting using_dma to 1 (on)
using_dma = 1 (on)

$hdparm -t /dev/hdk

/dev/hdk:
Timing buffered disk reads: 162 MB in 3.02 seconds = 53.71 MB/sec

now this looks much better :)

By the way: Is there a trick setting DMA without CONFIG_IDEDMA_PCI_AUTO = [ y ] at boot time independent from init scripts?

regards,

Lukas

Signature · 2 lines
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl