Re: ide-dma

From: Bernd Nottelmann (nottelm@uni-muenster.de)
Date: Tue Jan 18 2000 - 06:19:50 EST


Holluby István holluby@interware.hu wrote:

> Hi !
>
> A few days ago I bought an ide hard disk. It works, but the ide driver is
> not able to use dma.
> I have kernel 2.2.14 and a Gigabye TX motherboard. I could use ide-dma on the
> same motherboard with a quantum disk years ago. Now all other devices are scsi.
>
> I do not know what is wrong, the motherbord, the disk or the ide driver.
>

I have the same problem with a IBM DJNA. I switched to DMA and then
I started hdparm: without dma:
#hdparm -t /dev/hda
/dev/hda:
 Timing buffered disk reads: 16 MB in 4.18 seconds = 3.83 MB/sec
#hdparm -d1 /dev/hda
/dev/hda:
 setting using_dma to 1 (on)
 using_dma = 1 (on)
#hdparm -t /dev/hda
/dev/hda:
 Timing buffered disk reads: 16 MB in 0.15 seconds =106.67 MB/sec

Some seconds later dmesg gives the following output:
[...]
SB 4.02 detected OK (220)
SB16: Bad or missing 16 bit DMA channel
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: DMA disabled
ide0: reset: success

First there seem to be no problems, but when I start to use the
disk then DMA is switched off again.
Disk parameters:
#hdparm -i /dev/hda
/dev/hda:

 Model=IBM-DJNA-352030, FwRev=J58OA30K, SerialNo=GQ0GQFP7
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=34
 BuffType=3(DualPortCache), BuffSize=1966kB, MaxMultSect=16, MultSect=off
 DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=2(fast)
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=39876480
 tDMA={min:120,rec:120}, DMA modes: mword0 mword1 mword2
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, PIO modes: mode3 mode4

Maybe I should mention that I have compiled the kernel with gcc-2.95.2 (it's
also 2.2.14 with additional reiserfs-patch, but I think this does not play any
role).

  Bernd

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:17 EST