From owner-freebsd-current@FreeBSD.ORG Fri Jun 8 17:22:19 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 18B1A16A41F for ; Fri, 8 Jun 2007 17:22:19 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id ADF8713C45A for ; Fri, 8 Jun 2007 17:22:18 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id l58HMEvG047579; Fri, 8 Jun 2007 11:22:15 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <46699045.6080003@samsco.org> Date: Fri, 08 Jun 2007 11:22:13 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070509 SeaMonkey/1.1.2 MIME-Version: 1.0 To: Tom Evans References: <1181319706.48432.33.camel@localhost> In-Reply-To: <1181319706.48432.33.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Fri, 08 Jun 2007 11:22:15 -0600 (MDT) X-Spam-Status: No, score=-1.4 required=5.5 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org 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: Fri, 08 Jun 2007 17:22:19 -0000 Is this device attached via SATA or IDE? If it's SATA, then no, the driver doesn't support SATA-ATAPI + DMA. Scott 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. > > I tried tracing through the DMA initialisation in sys/dev/ata/ata-pci.c, > but I got lost I'm afraid. > > Here is pertinent information: > > uname -a: > FreeBSD zoot.mintel.co.uk 7.0-CURRENT FreeBSD 7.0-CURRENT #1: > 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 > > dvd device: > acd0: DVDR at ata0-master > > ata controller: > atapci0@pci0:31:1: class=0x01018a card=0x30aa103c chip=0x27df8086 > rev=0x01 hdr=0x00 > device = '82801G (ICH7 Family) Ultra ATA Storage Controller' > > dmesg.boot: attached (sorry, not verbose, can get verbose if reqd) > > pciconf -lv: attached > > sysctl hw.ata: > hw.ata.wc: 1 > hw.ata.atapi_dma: 1 > hw.ata.ata_dma: 1 > (Set via /boot/loader.conf) > > atacontrol cap acd0: > > Protocol ATA/ATAPI revision 6 > device model MATSHITADVD-RAM UJ-840S > serial number > firmware revision 1.11 > cylinders 0 > heads 0 > sectors/track 0 > lba supported > lba48 not supported > dma supported > overlap not supported > > 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 > > TIA > > Tom >