Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 1997 00:17:48 -0500
From:      Christopher Masto <chris@netmonger.net>
To:        john hood <cgull@smoke.marlboro.vt.us>
Cc:        freebsd-current@freebsd.org
Subject:   Re: IDE performance - benchmark numbers
Message-ID:  <19971113001748.54297@netmonger.net>
In-Reply-To: <199711110444.XAA09046@smoke.marlboro.vt.us>; from john hood on Mon, Nov 10, 1997 at 11:44:52PM -0500
References:  <646co4$n3l$1@schenectady.netmonger.net> <199711110444.XAA09046@smoke.marlboro.vt.us>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971113001748.54297>