[ltp] Enabling DMA for T41?

Konstantin linux-thinkpad@linux-thinkpad.org
Tue, 22 Jun 2004 23:21:44 +0200


On Wed, 23 Jun 2004 04:48:22 +0800
Yip Wai Peng <vanion@wah-lau.com> wrote:

> Hi,
> I would like to know whether anybody has enabled DMA for T41 yet. I can't 
> seems to do it.
> 
> root # hdparm -d1 /dev/hda
> 
> /dev/hda:
>  setting using_dma to 1 (on)
>  HDIO_SET_DMA failed: Operation not permitted
>  using_dma    =  0 (off)
> 
> kernal is already 
> CONFIG_BLK_DEV_IDEDMA=y
> CONFIG_IDEDMA_AUTO=y
> 
> HD info are as follows
> root # hdparm -i /dev/hda
> 
> /dev/hda:
> 
>  Model=FUJITSU MHT2040AH, FwRev=006C, SerialNo=NP0JT4527113
>  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
>  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
>  BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
>  CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=71123954
>  IORDY=yes, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
>  PIO modes:  pio0 pio1 pio2 pio3 pio4
>  DMA modes:  mdma0 mdma1 mdma2
>  UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
>  AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
>  Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a:
> 
> I would like to know whether anybody has gotten a working configuration, and 
> can you post the results of hdparm -Tt /dev/hda as compared to mine?
> 
> /dev/hda:
>  Timing buffer-cache reads:   1780 MB in  2.00 seconds = 888.36 MB/sec
>  Timing buffered disk reads:   22 MB in  3.14 seconds =   7.02 MB/sec
> 
> Thanks,
> Waipeng
> -- 
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

hi,

as you see the * close to the udma5 ==> *udma5
it should be enabled

But the Timing buffered disk reads: ... is too slow.

On a IBM T40:
		original 40GB HD makes on a T40 12 MB  
		and my new 80GB Fujitsu Siemens 27MB. 


hdparm -i /dev/hda

/dev/hda:

 Model=FUJITSU MHT2080AT, FwRev=0022, SerialNo=NN7CT3B13030
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156301488
 IORDY=yes, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 
 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a: 

 * signifies the current active mode

it is the same to yours, the star * is on umda5, but i can do this command

hdparm -d1 /dev/hda

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


I have this things in my kernel conf:
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECS=m
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDEPNP=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y

don't know which one you really need.

Give it a  try

Greetz

Konstantin




-----------------

Building an operating system without source code is like buying
a self-assembly Space Shuttle with no instructions.