Post by Angus Macka » Mon, 10 Nov 1997 04:00:00

has anyone played around with "hdparm"?

if I have a ultra-ATA drive and a TX chipset is my kernel going
to be taking advantage of it?

any info is appreciated.

cheers, Angus.



Post by Matthew James Nobl » Wed, 12 Nov 1997 04:00:00

: has anyone played around with "hdparm"?

We use hdparam to tune the harddisks on our linux machine, mainly to set
the PIO mode etc. It's also useful for setting a time out on the HDD's so
they spin down when not in use

: if I have a ultra-ATA drive and a TX chipset is my kernel going
: to be taking advantage of it?

AS far as i know the 2.0.xx kernels only support the HX and VX controller,
i dont think they do ultra-dma, i think standard dma transfer might still
work though. 2.1.62 does support ultra DMA on the TX chip, so it might me
worth looking into depending on your use of linux.



1. (u)dma and hdparm question


Since hardly anyone answered to my question, I try again...

I have a question about using hdparm to set dma/udma modes.

My system:
M7VKA, Biostar, VIA, kt133, 384 MB RAM

hdparm -i /dev/hda:

Model=SAMSUNG SV4084H, FwRev=PM100-11, SerialNo=0265J1FNA14178
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4
 BuffType=3(DualPortCache), BuffSize=426kB, MaxMultSect=16, MultSect=16
 DblWordIO=no, OldPIO=2, DMA=yes, OldDMA=2
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=79730784
 tDMA={min:120,rec:120}, DMA modes: mword0 mword1 *mword2
 IORDY=yes, tPIO={min:120,w/IORDY:120}, PIO modes: mode3 mode4
 UDMA modes: mode0 mode1 mode2 mode3 mode4 mode5
 Drive Supports : ATA/ATAPI-4 T13 1153D revision 17 : ATA-1 ATA-2 ATA-3

This is what I get after setting: hdparm -d1 -X34 /dev/hda, so I am
using mword2 dma mode for the disk.

Before, I was using udma mode4, but my system suffered from random
freezing, which are gone now, hopefully (after reducing the transfer

My question:
Is it safe to use a "normal" dma mode (mword2, for instance) for a disk
that is udma capable and with a BIOS which is set for udma?

My BIOS does only offer udma or non-udma, but no setting for simple dma!

Some people told me that setting -X34 is dangerous, because the
controller is set for udma, while the disk is now set for dma!

I also read the big fat warnings in the hdparm man page.

Is it true that I should NOT set a multiword dma mode, but either use
udma or disable it altogether?

So far, my system runs o.k. with this dma setting (-X34) AND the BIOS
being set for UDMA (I also run windows on the same machine).

Hints? Warnings?
Please reply, thanks.


2. New kernel for RH 7.2=trouble

3. Enabling DMA with hdparm...

4. mmap corrupting system -- help!

5. new version of hdparm.c anywhere?

6. Help! Segmentation fault

7. (2.4.1-ac15) Wont set using_dma = 1 with hdparm

8. Adaptec AAA-133 KIT LVD2 : RAID controller

9. hdparm and removable IDE?

10. hdparm patch not working!

11. 2.4.21-pre2 hdparm Kernel Oops

12. hdparm-1.6 uploaded

13. hdparm says "Hmm.. suspicious results"