Well, I sure would like to know what the kernel configuration is, and what any other hoops people have jumped throught to get SATA working [properly] . Doesn't matter the distro or kernel, or hdparms- I have tried them all.
Trying to enable DMA (via hdparm) only starts off a chaing of errors mostly filled with errors like "dma_timer_expiry" and "dma_status=0x21". Try to set it in /etc/sys/config/harddisks and you are in for a little journey to get back to where you where, but , alas, no DMA. Disabling 'framebuffers' in the kernel, was suggested by one disk-doctor (related to witch doctors), but that did nothing either.
I started with RH9 plain vanilla distro, then ran the rpm kernel update to 2.4.20-13.9, then got really brave and just dl'd the vanilla source from kernel.org for 2.4.20 then installed the patch to 2.4.21-rc3 (rc4 just appeared but doesn't look like the answer either). Oh, yes - enabled the various SII3112 kernel options, and lot's of enable DMA options as well.
Finally, I have read long interchanges between Linux Torvalds and others concerning the future drivers for ide-scsi... I thought maybe the companies selling the SATA products would care.. well both SEAGATE and ASUS support have been dead ends-- invariably pointing fingers at each other, and sending me windows drivers. Oh, and the link on SII (who I haven't managed to contact yet).. just goes to
http://www.linux-ide.org/ where are kernel patches that look to be many months out of date (so let me know if you really installed them and the really worked, but I am not so brave)
.
So at the end of the day (or the week monkeying with this).. I was able to improve my transfer rate up from 1.7 to 3.2 MB/s!! Yee hah! (added idebus=66 to my grub.conf so that the ide drivers don't default to 33).
So, it is now firmly my belief that it may be a long time before SATA works on Linux (those earlier in this post who said it was working .. really you should do "hdparm -tT /dev/hdx" and see your speed".
I would be really really interested in learning if anyone actauly has got there sata drives to perform like they should! Until then, I guess my recommendation is to save the money and not by SATA drives or controllers if you are looking for an immediate working solutions....
aghhh.. all that said.. HELP!
*********hdparm -tT for my Seagate 120 *********
/dev/hde:
Timing buffer-cache reads: 128 MB in 0.25 seconds =512.00 MB/sec
Timing buffered disk reads: 64 MB in 19.43 seconds = 3.29 MB/sec
***Compared to my old standard IDE drive:
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.25 seconds =512.00 MB/sec
Timing buffered disk reads: 64 MB in 1.73 seconds = 36.99 MB/sec
********************My computer: ******************************
Asus P4G8X Deluxe (onboard SII 3112) / P4 2.4 / 1 GB DDR400 / Bios 1005G
********************SATA info: ************
/dev/hde:
multcount = 16 (on)
IO_support = 3 (32-bit w/sync)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 232581/16/63, sectors = 234441648, start = 0
***********info galore: *****************
hdparm -I /dev/hde
/dev/hde:
ATA device, with non-removable media
Model Number: ST3120023AS
Serial Number: 3KA1FB98
Firmware Revision: 3.01
Standards:
Used: ATA/ATAPI-6 T13 1410D revision 2
Supported: 6 5 4 3
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 234441648
device size with M = 1024*1024: 114473 MBytes
device size with M = 1000*1000: 120034 MBytes (120 GB)
Capabilities:
LBA, IORDY(can be disabled)
bytes avail on r/w long: 4 Queue depth: 1
Standby timer values: spec'd by Standard
R/W multiple sector transfer: Max = 16 Current = 16
Recommended acoustic management value: 128, current value: 0
DMA: *mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=240ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* READ BUFFER cmd
* WRITE BUFFER cmd
* Host Protected Area feature set
* Look-ahead
* Write cache
* Power Management feature set
Security Mode feature set
* SMART feature set
* Mandatory FLUSH CACHE command
* Device Configuration Overlay feature set
Automatic Acoustic Management feature set
SET MAX security extension
* DOWNLOAD MICROCODE cmd
* SMART self-test
* SMART error logging
Security:
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
HW reset results:
CBLID- above Vih
Device num = 0