From owner-freebsd-questions@FreeBSD.ORG Wed Oct 20 15:31:43 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 8D77916A4E5 for ; Wed, 20 Oct 2004 15:31:43 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1742543D5C for ; Wed, 20 Oct 2004 15:31:42 +0000 (GMT) (envelope-from nkinkade@fastmail.fm) Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 833E8C32C4A; Wed, 20 Oct 2004 11:31:40 -0400 (EDT) X-Sasl-enc: GWPJXfGhl1o2naLRwXuUmg 1098286295 Received: from gentoo-npk.bmp.ub (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id 10B63247F3; Wed, 20 Oct 2004 11:31:34 -0400 (EDT) Received: from nkinkade by gentoo-npk.bmp.ub with local (Exim 4.21) id 1CKIM3-0007vE-4Q; Wed, 20 Oct 2004 09:26:23 -0600 Date: Wed, 20 Oct 2004 09:26:23 -0600 From: Nathan Kinkade To: Mark Cullen Message-ID: <20041020152623.GK3633@gentoo-npk.bmp.ub> Mail-Followup-To: Mark Cullen , "freebsd-questions@freebsd.org" References: <4175849A.5080606@dsl.pipex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XAvhOFWJb7CBzhKn" Content-Disposition: inline In-Reply-To: <4175849A.5080606@dsl.pipex.com> User-Agent: Mutt/1.5.6i Sender: 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 Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 15:31:43 -0000 --XAvhOFWJb7CBzhKn Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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= =20 > it has a: >=20 > -- > atapci0: port=20 > 0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0 > -- >=20 > However, both hard disks attached are running in PIO mode. >=20 > -- > ad0: 4103MB [8894/15/63] at ata0-master BIOSPIO > ad2: 6194MB [13424/15/63] at ata1-master BIOSPIO > -- >=20 > I tried running the following, but as you can see the end result is that= =20 > they are still running BIOSPIO. >=20 > -- > (root|bone)/home/mrboo# atacontrol mode 0 WDMA2 WDMA2 > Master =3D BIOSPIO > Slave =3D BIOSPIO > -- >=20 > Any suggestions as to how I might enable some sort of DMA on these=20 > drives? Since the machine is rather slow (133MHz) and it's currently=20 > using polled IO I am sure it will likely benefit me, even if it isn't=20 > quite UDMA :) You should check out the following sysctl variables: 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: hw.ata.ata_dma=3D1 hw.ata.atapi_dma=3D1 Also, as I understand it, 80 conductor ribbon cables were only recommended at UDMA modes <=3D2, but perhaps you might consider using one just to be safe. Nathan --=20 PGP Public Key: pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xD8527E49 --XAvhOFWJb7CBzhKn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBdoOfO0ZIEthSfkkRAqiFAJ4xwoMh+8C+n+b3bAjRHVQT0CPymgCfTNme Uy23EAhFUEiJoJff/xbX5HY= =wfsS -----END PGP SIGNATURE----- --XAvhOFWJb7CBzhKn--