From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199712102233.AAA10415@kaarne.cs.tut.fi> Date: Thu, 11 Dec 1997 01:45:12 +0100 From: Andreas Trottmann Subject: Re: non-DMA CMD646 driver In-Reply-To: <348EC044.4487@i6.informatik.rwth-aachen.de> On Wed, Dec 10, 1997 at 05:16:04PM +0100, Kai Schuetz wrote: > I've hacked together suppot of the CMD 646 and CMD643 chips PIO-Mode > tweaking which is especially useful for owners of PC164, SX164 or LX164 > Alpha-Boards. > > Linear-Read transfer speed rose from 1.5Mb/s to ~5Mb/s ! I tried it on my Miata (Personal Workstation 433a). It *did* boost performance (hdparm went up from 800 KB/sec to >6 MB/sec), but after I put on some IDE load it seemed to lock up something quite heavily: This is what I did: tar -cf - /mnt/cd >/dev/null & tar -cf - /usr/local/spare >/dev/null & (where the CD-ROM is an ATAPI one on /dev/hdb and /usr/local/spare is on some a Maxtor 71260 AT disk on /dev/hdc). It worked for half a minute, but then started to cause some trouble: Dec 11 01:19:02 clockwork kernel: hdc: irq timeout: status=0xd0 { Busy } Dec 11 01:19:32 clockwork kernel: ide1: reset timed-out, status=0xd0 Dec 11 01:19:32 clockwork kernel: hdc: status timeout: status=0xd0 { Busy } Dec 11 01:19:32 clockwork kernel: hdc: drive not ready for command Dec 11 01:20:02 clockwork kernel: ide1: reset timed-out, status=0xd0 Dec 11 01:20:02 clockwork kernel: hdc: status timeout: status=0xd0 { Busy } Dec 11 01:20:02 clockwork kernel: end_request: I/O error, dev 16:05, sector 32786 Dec 11 01:20:02 clockwork kernel: hdc: drive not ready for command Dec 11 01:20:02 clockwork kernel: hdc: status timeout: status=0xd0 { Busy } ... then, it went on a bit like this... Dec 11 01:31:04 clockwork kernel: ide1: reset: master: error (0x00?) Dec 11 01:31:04 clockwork kernel: hdc: status error: status=0x58 { DriveReady SeekComplete DataRequest } Dec 11 01:31:04 clockwork kernel: hdc: drive not ready for command Dec 11 01:31:04 clockwork kernel: hdc: set_geometry_intr: status=0x80 { Busy } Dec 11 01:31:13 clockwork kernel: ide1: reset: success ... here, the HD made some quite frightening sound :-) ... Dec 11 01:31:23 clockwork kernel: hdc: irq timeout: status=0xd0 { Busy } Dec 11 01:31:53 clockwork kernel: ide1: reset timed-out, status=0xd0 Dec 11 01:31:53 clockwork kernel: hdc: status timeout: status=0xd0 { Busy } Dec 11 01:31:53 clockwork kernel: hdc: drive not ready for command Both tar processes hung with status D (which means "uninterruptable sleep", IIRC), but after ten minutes or so, I was able to kill them. Both devices are still not accessible, and it still seems to be constantly resetting the dive. I think I'll reboot and look if the HD is still OK :-)) > hdparm -m16 -c1 -p5 /dev/hda > hdparm -p9 /dev/hda > hdparm -p7 /dev/hda That's exactly what I did. > Just take a 2.1.* kernel (I took linux-2.1.67-BEFORE-MEGAMERGE.tar.gz > from David Mosberger Tang) and apply the attached diff to cmd640.c in > drivers/block. Oops... I didn't even read this before trying it! I just patched it into my 2.0.32 kernel (Linus' 2.0.32 sources plus Jay's alpha-patches-2.0.32-0.1) and got only one reject concerning the changement from "cmd640" to "cmd%s" in the kprintf()s, so I thought it was safe... could this be causing the problems? > Please also not I feel not responsible for any loss of data/problems > due to the patch, Of course! And don't take this mail as a flame -- I just tried your patch and am reporting a problem, hoping it can be of help to you. Also, I'd really like to see my IDE sped up a bit. If you miss any details in this report (it's getting late and I want to have more sleep this night than the two hours I had last night...) don't hesitate to ask. -- Andreas Trottmann -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com