From owner-freebsd-current Wed Nov 12 21:18:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA14956 for current-outgoing; Wed, 12 Nov 1997 21:18:23 -0800 (PST) (envelope-from owner-freebsd-current) Received: from cheddar.netmonger.net (cheddar.netmonger.net [209.54.21.140]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA14944 for ; Wed, 12 Nov 1997 21:18:16 -0800 (PST) (envelope-from chris@cheddar.netmonger.net) Received: (from chris@localhost) by cheddar.netmonger.net (8.8.8/8.8.8) id AAA26122; Thu, 13 Nov 1997 00:17:49 -0500 (EST) Message-ID: <19971113001748.54297@netmonger.net> Date: Thu, 13 Nov 1997 00:17:48 -0500 From: Christopher Masto To: john hood Cc: freebsd-current@freebsd.org Subject: Re: IDE performance - benchmark numbers References: <646co4$n3l$1@schenectady.netmonger.net> <199711110444.XAA09046@smoke.marlboro.vt.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.87.4 In-Reply-To: <199711110444.XAA09046@smoke.marlboro.vt.us>; from john hood on Mon, Nov 10, 1997 at 11:44:52PM -0500 Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, Nov 10, 1997 at 11:44:52PM -0500, john hood wrote: > [Moved to -current, where it now belongs.] > > You've got a motherboard based on the Triton I chipset. I see that it > didn't enable DMA. Thanks to some braindeadness in its IDE > controller, the driver doesn't enable DMA unless both drives on the > controller are Mode4 and programmed that way. And even then it might > not work-- I didn't have a Triton I motherboard to check this code on. > > Can you do a boot -v with flags 0xa0ffa0ff and send me the spew? > > [5 minutes pass] > > Oh dear, I see a bug (no, no, not a Bug from another planet-- rest > easy). Try this patch: > > --- pci/ide_pci.c Sat Nov 8 02:22:48 1997 > +++ /tmp/ide_pci.c Mon Nov 10 23:35:00 1997 > @@ -714,7 +714,7 @@ > u_long word40; > > /* can drive do PIO 4 and MW DMA 2? */ > - if (!(mwdma_mode(wp) >= 4 && pio_mode(wp) >= 4)) > + if (!(mwdma_mode(wp) >= 2 && pio_mode(wp) >= 4)) > return 0; > > word40 = pci_conf_read(cookie->tag, 0x40); > > After you patch and update your kernel, can you do a boot -v with > flags 0xa0ffa0ff and send me the spew? By George I think he's got it! The patch allowed DMA to be enabled on my system, improving write performance a little and read performance quite a bit. The boot spew is long, so I'll spare the mailing list from it. Just wanted to thank John publically. As they say, the art is knowing where to look. -- = Christopher Masto = chris@netmonger.net = http://www.netmonger.net/ = = NetMonger Communications = finger for PGP key = $19.95/mo unlimited access = = Director of Operations = (516) 221-6664 = mailto:info@netmonger.net = "... who'd want a lossy TIFF?" -- Kibo