dma pio4 support problems with opti 82C621

From: narancs1@externet.hu
Date: Mon Jul 24 2000 - 13:55:53 EST


Dear all!

I am sorry to forward this letter to the kernel list, however it is partly
kernel-related, as the below named IDE chipset is partly supported in the Linux
kernel.

The main writer of that driver has moved, so I could'nt reach him.
Others did not answered either.

-------------------------------------------------------
I am very glad, that linux has support for this ide chip.
But the problem is, it doesn't support dma and pio mode4 for me.
When turning on dma by hdparm or kernel setting, the hard disk dies and
the whole system freezes, expect the magick sysrq keys (2.4.0-test4)
version 2.2.16 does the same.

Is it possible that these hws don't even know what dma is?
I mean, that you talk about pio modes 1-3 only.
There is no support for dma in the hd or the chip?
How could I speed up my system?

My config is:
lspci:
>00:14.0 IDE interface: OPTi Inc. 82C621 (rev 12)
>00:00.0 Host bridge: OPTi Inc. 82C557 [Viper-M] (rev 14)
>00:01.0 ISA bridge: OPTi Inc. 82C558 [Viper-M ISA+IDE] (rev 02)
>...

laptop computer:
pentium mmx 233
16 mb ram
floppy/atapi cd on hdb
built in soundcard,
2 pcmcia cards , etc
Maybe there is no free dma channel for it?

dmesg:
>...
>ide: assuming 33mhz system bus speed for pio modes
should I change it ?
>OPTI621: IDE controler on PCI bus 00 dev a0
>OPTI621: chipset revision 18
well, lspci said, it is rev 12 !!
>OPTI621: not 100% native ...
> ide0: BM-DMA at 0x8000-0x8007, BIOS settings: hda:pio, hdb:pio
>hda: FUJITSU M2724TA, ATA DISK drive
...

hdparm -p /dev/hda:
>hda: Selected PIO mode 3

hdparm -i
>Model=FUJITSU M2724TA, FwRev=7029, SerialNo=06016075
> Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
> RawCHS=3162/16/63, TrkSize=0, SectSize=0, ECCbytes=4
> BuffType=0(?), BuffSize=0kB, MaxMultSect=16, MultSect=16
> DblWordIO=no, OldPIO=2, DMA=yes, OldDMA=0
                                                  ^^^^^^^^^
> CurCHS=3162/16/63, CurSects=3187296, LBA=yes, LBAsects=3187836
> tDMA={min:120,rec:120}, DMA modes: mword0 mword1 *mword2
> IORDY=yes, tPIO={min:240,w/IORDY:120}, PIO modes: mode3 mode4
                                                                         mode4!!
it seems to support DMA and pio mode 4
How should I tune this drive for the fastest performance?
Is pio mode 4 faster than pio mode 3?
Trying hdparm -p 4 /dev/hda makes no sense, as it says, that hda selects pio
mode 3

in the setup , there is a choice of pio modes on/off and multisector on/off
I may switch those to any combination, the freeze comes.

 * problems) and Seagate 1GB (as slave, WD as master). My experiences
 * with the third, 1GB drive: I got 3MB/s (hdparm), but sometimes
 * it slows to about 100kB/s! I don't know why and I have
Well, I see the same.
hdparm -t /dev/hda shows 3 mbyte/sec, but in real, it is very slow.

off:
win98 only works with protected mode 32 bit disk access off, I guess, this
means the dma. So the problem is the same with win98. With win95 there is no
such problem. So this might be a hw bug?

hdparm
drive settings:
readahead is on
io support = 0 (16 bit), I can set it to 32 bit.
dma=0 off, turning it on freezes the system
keepsettings=0 off, I guess it is good against misconfig.
multcount is on
nowerr is off
pio mode is 3
unmaskirq is off, what's this? may i change?

I've read the hdparm manual.

Thanks for your great work on OSS.
Narancs v1

-
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 : Mon Jul 31 2000 - 21:00:17 EST