From owner-freebsd-questions@FreeBSD.ORG Wed Oct 20 15:45:44 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1B9F16A4CE for ; Wed, 20 Oct 2004 15:45:44 +0000 (GMT) Received: from ranger.systems.pipex.net (ranger.systems.pipex.net [62.241.162.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id B784843D46 for ; Wed, 20 Oct 2004 15:45:43 +0000 (GMT) (envelope-from mark.cullen@dsl.pipex.com) Received: from [10.0.0.247] (81-178-71-222.dsl.pipex.com [81.178.71.222]) by ranger.systems.pipex.net (Postfix) with ESMTP id 7443EE0003C7; Wed, 20 Oct 2004 16:45:38 +0100 (BST) Message-ID: <41768918.6070802@dsl.pipex.com> Date: Wed, 20 Oct 2004 16:49:44 +0100 From: Mark Cullen User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nathan Kinkade References: <4175849A.5080606@dsl.pipex.com> <20041020152623.GK3633@gentoo-npk.bmp.ub> In-Reply-To: <20041020152623.GK3633@gentoo-npk.bmp.ub> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: "freebsd-questions@freebsd.org" Subject: Re: WDMA mode won't enable? Old machine... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 15:45:44 -0000 Nathan Kinkade wrote: > On Tue, Oct 19, 2004 at 10:18:18PM +0100, Mark Cullen wrote: > >>I have a rather old machine acting as a home server. According to dmesg >>it has a: >> >>-- >>atapci0: port >>0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0 >>-- >> >>However, both hard disks attached are running in PIO mode. >> >>-- >>ad0: 4103MB [8894/15/63] at ata0-master BIOSPIO >>ad2: 6194MB [13424/15/63] at ata1-master BIOSPIO >>-- >> >>I tried running the following, but as you can see the end result is that >>they are still running BIOSPIO. >> >>-- >>(root|bone)/home/mrboo# atacontrol mode 0 WDMA2 WDMA2 >>Master = BIOSPIO >>Slave = BIOSPIO >>-- >> >>Any suggestions as to how I might enable some sort of DMA on these >>drives? Since the machine is rather slow (133MHz) and it's currently >>using polled IO I am sure it will likely benefit me, even if it isn't >>quite UDMA :) > > > You should check out the following sysctl variables: Good call! > > hw.ata.ata_dma > hw.ata.atapi_dma > > These are readonly at runtime, so need to be set at boot in the file > /boot/loader.conf. You can add the them like so: Unfortuantly... (mrboo|bone)/home/mrboo$ sysctl hw.ata. hw.ata.ata_dma: 1 hw.ata.wc: 0 hw.ata.atapi_dma: 0 ATAPI is just CD drives isn't it? Mainly? If that's the case 0 is ok for that one, as it doesn't have a CD drive anymore. > > hw.ata.ata_dma=1 > hw.ata.atapi_dma=1 > > Also, as I understand it, 80 conductor ribbon cables were only > recommended at UDMA modes <=2, but perhaps you might consider using one > just to be safe. Well I can't use a newer cable on one of the drives as it is a laptop drive, using one of those 'special' laptop cable things :-) Thanks, but any other ideas as to why it won't enable? I don't seem to get any messages out of it, just doesn't want to do anything by the looks of it! > > Nathan -- Internet Explorer? Try FireFox at http://www.mozilla.org/products/firefox/ Outlook Express? Try ThunderBird at http://www.mozilla.org/products/thunderbird/