--1217812341-851401618-874382767=:23501
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.HPP.3.91.970917134515.11446I@csun1.csun.edu>
Hi,
This patch will enable Ultra DMA data transfer protocol on the IDE
interface in the Intel TX motherboard. This patch is against 2.1.55
kernel. Use the BIOS setup to enable the IDE drive for UDMA.
If all go well, look for status message in the "dmesg" output.
If UDMA is not enabled in the BIOS, then the patch will select the
normal dma transfer mode for the IDE interface.
To disable the DMA mode, use "hdparm -d0 /dev/hdx".
Note on UDMA: don't expect to see a 2x boost in the disk transfer
rate. In fact the increase is only about 5 to 10 % for the current
generation drive. The instantaneous transfer however, as seen on a logic
analyser, does meet the spec. of 60ns/word.
Kim-Hoe
--1217812341-851401618-874382767=:23501
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="udma1-2.1.55.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.HPP.3.91.970915210607.23501B@csun1.csun.edu>
Content-Description: UDMA patch 1 for 2.1.55 kernel
ZGlmZiAtcnUgbGludXgvZHJpdmVycy9ibG9jay9pZGUtZGlzay5jIGxpbnV4
LTIuMS41NS50eC9kcml2ZXJzL2Jsb2NrL2lkZS1kaXNrLmMNCi0tLSBsaW51
eC9kcml2ZXJzL2Jsb2NrL2lkZS1kaXNrLmMJVHVlIE1heSAxMyAyMjo0MTow
NCAxOTk3DQorKysgbGludXgtMi4xLjU1LnR4L2RyaXZlcnMvYmxvY2svaWRl
LWRpc2suYwlNb24gU2VwIDE1IDE5OjQ5OjA0IDE5OTcNCkBAIC02MDYsNyAr
NjA2LDcgQEANCiAJIGRyaXZlLT5uYW1lLCBpZC0+bW9kZWwsIGlkZWRpc2tf
Y2FwYWNpdHkoZHJpdmUpLzIwNDhMLCBpZC0+YnVmX3NpemUvMiwNCiAJIGRy
aXZlLT5zZWxlY3QuYi5sYmEgPyAiTEJBLCAiIDogIiIsDQogCSBkcml2ZS0+
Ymlvc19jeWwsIGRyaXZlLT5iaW9zX2hlY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