From owner-freebsd-current@FreeBSD.ORG Tue Sep 16 06:22:31 2003 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 C2C9B16A4B3 for ; Tue, 16 Sep 2003 06:22:31 -0700 (PDT) Received: from melusine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [62.212.105.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CD5143F75 for ; Tue, 16 Sep 2003 06:22:30 -0700 (PDT) (envelope-from thomas@FreeBSD.ORG) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id 203D52C3D3; Tue, 16 Sep 2003 15:22:28 +0200 (CEST) Date: Tue, 16 Sep 2003 15:22:28 +0200 From: Thomas Quinot To: Guillaume Message-ID: <20030916132228.GG52463@melusine.cuivre.fr.eu.org> References: <1062861719.2761.35.camel@guillaume.multiweb.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <1062861719.2761.35.camel@guillaume.multiweb.ca> User-Agent: Mutt/1.4i X-message-flag: WARNING! Using Outlook can damage your computer. cc: current@freebsd.org Subject: Re: acd0 vs cd0 (ATAPICAM) 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: Tue, 16 Sep 2003 13:22:31 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le 2003-09-06, Guillaume =E9crivait : > I'm running FreeBSD 5-CURRENT (Aug. 28 2003) on a P3 733MHz, 768MB ram > with a LG DVD-RW/DVD-RAM burner. I would like to know why ATAPICAM is so > slow with my system. Maybe because ATAPI/CAM does not actually enable DMA. Can you try the following patch? Thomas. Index: atapi-cam.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/dev/ata/atapi-cam.c,v retrieving revision 1.22 diff -u -r1.22 atapi-cam.c --- atapi-cam.c 11 Sep 2003 17:34:47 -0000 1.22 +++ atapi-cam.c 16 Sep 2003 13:20:18 -0000 @@ -227,6 +227,11 @@ 2 * device_get_unit(atp->channel->dev) + (atp->unit =3D=3D ATA_MASTER) ? 0 : 1); atp->softc =3D (void *)scp; + if (atapi_dma && atp->channel->dma && + (atp->param->config & ATA_DRQ_MASK) !=3D ATA_DRQ_INTR) + atp->setmode(atadev, ATA_DMA_MAX); + else + atp->setmode(atadev, ATA_PIO_MAX); } } =20 --=20 Thomas.Quinot@Cuivre.FR.EU.ORG --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/Zw6TAE1UuDk9JGkRAipOAJwLrHCRaUUmlgwCEuKQbWVTMaNiIACeOfUK 4lSB9L0SE/y+vcYHbQi1TuA= =DMTN -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--