From owner-freebsd-current Wed Jul 21 7:11: 4 1999 Delivered-To: freebsd-current@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.42.68.2]) by hub.freebsd.org (Postfix) with ESMTP id EABA014E5E for ; Wed, 21 Jul 1999 07:10:58 -0700 (PDT) (envelope-from sobomax@altavista.net) Received: from vega. (dialup2-45.iptelecom.net.ua [212.42.68.236]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id RAA29560 for ; Wed, 21 Jul 1999 17:15:16 +0300 (EEST) Received: from altavista.net (big_brother [192.168.1.1]) by vega. (8.9.3/8.9.3) with ESMTP id RAA10116 for ; Wed, 21 Jul 1999 17:09:14 +0300 (EEST) (envelope-from sobomax@altavista.net) Message-ID: <3795D441.170481E4@altavista.net> Date: Wed, 21 Jul 1999 17:08:01 +0300 From: Maxim Sobolev Reply-To: sobomax@altavista.net Organization: Vega International Capital X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: ru,uk,en MIME-Version: 1.0 To: current@freebsd.org Subject: VIA Appolo IDE controller handling in new ata driver Content-Type: multipart/mixed; boundary="------------A04ED3844B4A94E309A531C7" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------A04ED3844B4A94E309A531C7 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Currently VIA Apollo IDE controller in the new ata driver handled as "Generic UDMA" controller, but AFAIK this controller was designed to be fully compatible with the Intel PIIX4 chip. To test if I'm right I made a minor change in dma initialisation code to initialise it exactly as PIIX4 controller and made some benchmarks using bonnie disk benchmarking program. I found that while transfer rates changes insignificantly (probably my HDD imposes limit here - Quantum FB 2.1ST is not a very fast one) but CPU utilisation drops drastically. Maybe it would make sense to initialise VIA Apollo like PIIX4 at least until someone will write "native" code? Any opinions? You can find my benchmarks at: http://homepages.go.com/~sobomax/piix4_vs_generic.pdf Sincerely, Maxim -- "We believe in the Power and the Might!" (Manowar, 1996) ---------------------------------------- Maxim V. Sobolev, Financial Analyst, Vega International Capital Phone: +380-(44)-246-6396 Fax: +380-(44)-220-8715 E-mail: sobomax@altavista.net ICQ: #42290709 ---------------------------------------- --------------A04ED3844B4A94E309A531C7 Content-Type: text/plain; charset=koi8-r; name="ata.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ata.diff" --- ata-dma.c.orig Wed Jul 21 15:59:34 1999 +++ ata-dma.c Wed Jul 21 15:58:11 1999 @@ -83,6 +83,8 @@ type = pci_get_devid(scp->dev); switch(type) { + case 0x05711106: + printf("ata%d: %s\n", scp->lun, "VIA Apolo IDE controller (PIIX4 mode)"); case 0x71118086: /* Intel PIIX4 */ if (udmamode >= 2) { --- ata-all.c.orig Wed Jul 21 15:59:23 1999 +++ ata-all.c Wed Jul 21 15:58:12 1999 @@ -186,9 +186,9 @@ return "Promise Ultra/33 IDE controller"; case 0x522910b9: return "AcerLabs Aladdin IDE controller"; -#if 0 case 0x05711106: return "VIA Apollo IDE controller"; +#if 0 case 0x06401095: return "CMD 640 IDE controller"; case 0x06461095: --------------A04ED3844B4A94E309A531C7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message