-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2006-03-15 at 14:31 -0000, David Bolt wrote:
If you have a look at /etc/init.d/boot.idedma, which is the script that sets the DMA modes, you'll see these lines inside the function idedma_main():
# The setting e.g. "/dev/hda:69:-c1:-m16:-u1:-W1:-A1" should be # expanded as "hdparm -d 1 -X 69 -c1 -m16 -u1 -W1 -A1 /dev/hda"
which shows the exact format to use. A few lines further down, there's this part where the DMA modes are actually set:
I see. Nice. Then Mr. Ladislav Slezak (the programmer) forgot to document this. There is no mention at all of this syntax in the /etc/sysconfig/ide file - at least, not in SuSE 9.3 Umm! What if I don't want to set -X (xfermode) to anything at all? The -X parameter is implicit. I tried DEVICES_FORCE_IDE_DMA="/dev/hdd:-c1:-m16:-u1 " and it says: /dev/hdd: setting 32-bit IO_support flag to 1 setting multcount to 16 setting unmaskirq to 1 (on) setting using_dma to 1 (on) setting xfermode to 0 (default PIO mode) <=== multcount = 16 (on) IO_support = 1 (32-bit) unmaskirq = 1 (on) using_dma = 1 (on) The drive reports it is using udma5, as it should, but... I'd prefer it not touching that. UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEGC6ZtTMYHG2NR9URAps0AJ9XuQcHtzxUnayYu6UL0XrwXZcr7wCeNNAz 3Nz76s6ecw7ml7wSZ6i9WXM= =hdqz -----END PGP SIGNATURE-----