From owner-freebsd-current@FreeBSD.ORG Tue Jun 12 08:31:11 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 760A216A46C for ; Tue, 12 Jun 2007 08:31:11 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id D869113C457 for ; Tue, 12 Jun 2007 08:31:10 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id u2so108737uge for ; Tue, 12 Jun 2007 01:31:09 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=HLUdtXXtEF06U79JlLKZGdp7bgTzNKutti3sYvRikNIfAnGIa06Kpwb8hbn7g/zbGCXlTe9AHzpE4PPEaauw/KZ8BVYARLBPLgoq5gtBwph9CHPyZD0R660uvZcn1DrYcn3MARNtiJMcd+OUrk/4B8oIyiF7sCtu1qMFoO4jlRs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=B9UzReZmSGprvjrhNKWRVZILr3gbt7b5cuWdqIAQICgY55qRPGkYJ1jLpPPm4CZa8OUh7pSI72tSZcLSnzncIBuk3j1ZeYVYztj/zRHkD2bxGYwzbWcxw4DzXrm3h4BnfsxP3iaAjFmDyzQYTs6AVGkOvp2S959dP7wWcSi5N2A= Received: by 10.82.170.2 with SMTP id s2mr12750818bue.1181637069289; Tue, 12 Jun 2007 01:31:09 -0700 (PDT) Received: from ?IPv6:::ffff:127.0.0.1%709424384? ( [217.206.187.79]) by mx.google.com with ESMTP id 2sm5741732nfv.2007.06.12.01.31.08 (version=SSLv3 cipher=RC4-MD5); Tue, 12 Jun 2007 01:31:08 -0700 (PDT) From: Tom Evans To: Scott Long In-Reply-To: <46699045.6080003@samsco.org> References: <1181319706.48432.33.camel@localhost> <46699045.6080003@samsco.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-E81LMhilE72iX+TMGduh" Date: Tue, 12 Jun 2007 09:31:03 +0100 Message-Id: <1181637063.1284.1.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: freebsd-current@freebsd.org Subject: Re: ATAPI DVD writer wont operate in DMA mode X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 12 Jun 2007 08:31:11 -0000 --=-E81LMhilE72iX+TMGduh Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2007-06-08 at 11:22 -0600, Scott Long wrote: > Is this device attached via SATA or IDE? If it's SATA, then no, the=20 > driver doesn't support SATA-ATAPI + DMA. >=20 > Scott >=20 >=20 > Tom Evans wrote: > > Hi was hoping someone could help me get my DVD writer operating in DMA. > > Trying to set the mode with atacontrol succeeds, but only sets the mode > > to WDMA, which is hardly better than PIO. > >=20 > > I tried tracing through the DMA initialisation in sys/dev/ata/ata-pci.c= , > > but I got lost I'm afraid. > >=20 > > Here is pertinent information: > >=20 > > uname -a: > > FreeBSD zoot.mintel.co.uk 7.0-CURRENT FreeBSD 7.0-CURRENT #1:=20 > > Tue Jun 5 14:39:27 BST 2007 (sources synched ~5 hrs prior to this) > > root@zoot.mintel.co.uk:/usr/obj/usr/src/sys/ZOOT i386 > >=20 > > dvd device: > > acd0: DVDR at ata0-master > >=20 > > ata controller: > > atapci0@pci0:31:1: class=3D0x01018a card=3D0x30aa103c chip=3D0x2= 7df8086 > > rev=3D0x01 hdr=3D0x00 > > device =3D '82801G (ICH7 Family) Ultra ATA Storage Controller' > >=20 > > dmesg.boot: attached (sorry, not verbose, can get verbose if reqd) > >=20 > > pciconf -lv: attached > >=20 > > sysctl hw.ata: > > hw.ata.wc: 1 > > hw.ata.atapi_dma: 1 > > hw.ata.ata_dma: 1 > > (Set via /boot/loader.conf) > >=20 > > atacontrol cap acd0: > >=20 > > Protocol ATA/ATAPI revision 6 > > device model MATSHITADVD-RAM UJ-840S > > serial number =20 > > firmware revision 1.11 > > cylinders 0 > > heads 0 > > sectors/track 0 > > lba supported =20 > > lba48 not supported =20 > > dma supported > > overlap not supported > >=20 > > Feature Support Enable Value Vendor > > write cache no no > > read ahead no no > > Tagged Command Queuing (TCQ) no no 0/0x00 > > SMART no no > > microcode download no no > > security no no > > power management no no > > advanced power management no no 0/0x00 > > automatic acoustic management no no 0/0x00 0/0x00 > >=20 > > TIA > >=20 > > Tom > >=20 >=20 It would appear not: $ dmesg | grep 'acd0\|ata0\|atapci0' atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x60a0-0x60af irq 16 at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 acd0: DVDR at ata0-master PIO4 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=3D0x24 ascq=3D0x00=20 cd0 at ata0 bus 0 target 0 lun 0 --=-E81LMhilE72iX+TMGduh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGblm/lcRvFfyds/cRAnkjAJ91+h4qWrnlbfFfGAs1MFE2K3gFUQCglYei xKq+7kQR11atbrL7nztYB4Q= =FdQa -----END PGP SIGNATURE----- --=-E81LMhilE72iX+TMGduh--