From owner-freebsd-questions Fri Feb 15 10:59:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 1678C37B428 for ; Fri, 15 Feb 2002 10:58:52 -0800 (PST) Received: from [212.238.194.207] (helo=mailhost.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16bnZL-000Plu-00 for freebsd-questions@FreeBSD.ORG; Fri, 15 Feb 2002 18:58:51 +0000 Received: from angel.raggedclown.net (angel.raggedclown.intra [192.168.1.7]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [buffy]) with ESMTP id C34B313040 for ; Fri, 15 Feb 2002 19:58:50 +0100 (CET) Received: by angel.raggedclown.net (Ragged Clown Host [angel], from userid 1001) id 203D1225BC; Fri, 15 Feb 2002 19:58:50 +0100 (CET) Date: Fri, 15 Feb 2002 19:58:50 +0100 From: Cliff Sarginson To: freebsd-questions@FreeBSD.ORG Subject: Re: DMA on ATAPI CD's [ Was Re: About printers ] Message-ID: <20020215185850.GC1394@raggedclown.net> References: <20020214214657.GB347@raggedclown.net> <20020215182516.EA9995D09@ptavv.es.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020215182516.EA9995D09@ptavv.es.net> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 15, 2002 at 10:25:16AM -0800, Kevin Oberman wrote: > > Date: Thu, 14 Feb 2002 22:46:58 +0100 > > From: Cliff Sarginson > > Sender: owner-freebsd-questions@FreeBSD.ORG > > > > On Sat, Jan 09, 1999 at 05:09:35PM +0300, vanya wrote: > > > > (Best to keep unrelated questions in seperate posts). > > > > > And one question about DMA for EIDE disks and ATAPI CD. Is DMA automatically > > > enabled or user must turn on this option? > > > > I believe DMA is not enabled on ATAPI CD devices, I believe it is > > considered a source of possible instability in certain cases (I know > > of no proof for this..) .. you can forceably re-enable it by an entry > > in sysctl.conf. I have 2 IDE i/faces, with a hard drive and a CD/DVD > > on one slave and a CD R/W on another. My line looks as follows: > > > > hw.atamodes=dma,dma,dma,dma > > > > You will need to adjust this according to your actual IDE setup, > > (i.e. how your ide's are actually configured)... > > > > "man 8 sysctl.conf" may help. > > On almost all systems you really want to add hw.ata.atapi_dma="1" to > /boot/loader.conf to enable DMA on ATAPI devices. > > The reason it is disabled by default is that some early ATAPI > controllers did not work correctly (at all) in DMA mode. Since it is > considered critical that CDs be accessible from the GENERIC kernel to > do the initial installation, all ATAPI access had to default to PIO. > > The only way to be sure about this is to turn on DMA and see of the CD > works. (It almost certainly will.) > > This is a parameter that must be set before the ATA driver is started, > so it cannot be put in sysctl.conf. It must be in /boot/loader.conf. > I think this is incorrect, it can be put in sysctl.conf, and I believe it works if you do it as I stated. -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message