From owner-freebsd-current@FreeBSD.ORG Sat Sep 25 15:13:16 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B11016A4CE for ; Sat, 25 Sep 2004 15:13:16 +0000 (GMT) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 654A043D49 for ; Sat, 25 Sep 2004 15:13:15 +0000 (GMT) (envelope-from q@uni.de) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 33DECD3FC4; Sat, 25 Sep 2004 17:13:14 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id 12B77A741D; Sat, 25 Sep 2004 17:13:14 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id CE229A589B; Sat, 25 Sep 2004 17:13:13 +0200 (CEST) Received: from coyote.q.local (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id B3558D3FC4; Sat, 25 Sep 2004 17:13:13 +0200 (CEST) Date: Sat, 25 Sep 2004 17:13:11 +0200 From: Ulrich Spoerlein To: =?iso-8859-15?Q?S=F8ren?= Schmidt Message-ID: <20040925151311.GA9651@galgenberg.net> Mail-Followup-To: =?iso-8859-15?Q?S=F8ren?= Schmidt , current@freebsd.org References: <200409191627.19011.michaelnottebrock@gmx.net> <414DA31E.3090506@DeepCore.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <414DA31E.3090506@DeepCore.dk> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) cc: current@freebsd.org Subject: Re: regression in ata/atapi wrt dma? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2004 15:13:16 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 19.09.2004 at 17:17:50 +0200, S=F8ren Schmidt wrote: > This is the "new worldorder" for ATAPI devices. The default is now to=20 > enable DMA if the device claims to support at least UDMA33, if not its=20 > left in PIO mode. This is to avoid all the (old) sucky devices that=20 > claims DMA but really doesn't work. >=20 > If you need any modes beyond this, please use atacontrol. I guess something like this is needed then... --- ata.4.orig Wed Sep 22 10:34:19 2004 +++ ata.4 Wed Sep 22 11:11:32 2004 @@ -86,7 +86,7 @@ .It Va hw.ata.ata_dma set to 1 for DMA access, 0 for PIO (default is DMA). .It Va hw.ata.atapi_dma -set to 1 for DMA access, 0 for PIO (default is PIO). +set to 1 for DMA access, 0 for PIO (default is DMA, if the drive supports = at least UDMA33). .It Va hw.ata.wc set to 1 to enable Write Caching, 0 to disable (default is enabled). .Em WARNING : @@ -161,8 +161,10 @@ or that one of the devices on the channel only accepts up to UDMA2/ATA33. .Pp -ATAPI devices are set to PIO mode by default because severe DMA problems a= re -common even if the device capabilities indicate support. +ATAPI devices are set to DMA mode only if they claim to support at least U= DMA33. +Older devices claiming DMA or WDMA support get set to PIO by default becau= se +severe DMA problems are common even if the device capabilities indicate +support. You can always try to set DMA mode on an ATAPI device using .Xr atacontrol 8 , but be aware that your hardware might Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Get it while it's hot! PGP Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBVYsHmArGtfDbn0QRAvCWAKDsniUX8ntkU0/q6TyZT2Tfi+MRNgCfaT64 CAATgnvnNRfrJsD1Lw69kB0= =0vfo -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--