From owner-freebsd-questions Thu Apr 20 12: 5:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from corinth.bossig.com (corinth.bossig.com [208.26.239.66]) by hub.freebsd.org (Postfix) with ESMTP id 912AB37B88F for ; Thu, 20 Apr 2000 12:05:26 -0700 (PDT) (envelope-from kstewart@3-cities.com) Received: from 3-cities.com (unverified [208.26.241.194]) by corinth.bossig.com (Rockliffe SMTPRA 4.2.1) with ESMTP id ; Thu, 20 Apr 2000 12:16:28 -0700 Message-ID: <38FF54F1.F6CC270C@3-cities.com> Date: Thu, 20 Apr 2000 12:05:21 -0700 From: Kent Stewart Organization: Columbia Basin Virtual Community Project X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Arcady Genkin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Selectively enable/disable DMA for an ata driver References: <87og74d9j6.fsf@tea.thpoon.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Do a "man ata" and in the middle is a section on the sysctl options that you can use to set ad0 to PCI. You now have a /etc/sysctl.conf for saving options such as this one. Kent Arcady Genkin wrote: > > I have two HD: one supports DMA, the other doesn't. When I was running > 3.4, I used to selectively turn on such features for each drive with > flags. Now it seems like there is only "options ATA_ENABLE_ATAPI_IDE", > which is global. > > How would I work around that? > > ,----[ Currently I have ] > | device ata0 at isa? port IO_WD1 irq 14 > | device ata1 at isa? port IO_WD2 irq 15 > | device ata > | device atadisk > | options ATA_STATIC_ID #Static device numbering > | options ATA_ENABLE_ATAPI_DMA > `---- > ,----[ I used to have ] > | controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0x90ff90ff > | disk wd0 at wdc0 drive 0 > | controller wdc1 at isa? port "IO_WD2" bio irq 15 flags 0xb0ffb0ff > | disk wd2 at wdc1 drive 0 > `---- > > It seems like both drives are initialized in DMA mode: > ,----[ dmesg ] > | ad0: 2014MB [4092/16/63] at ata0-master using WDMA2 > | ad2: 18366MB [37317/16/63] at ata1-master using WDMA2 > `---- > > I know for sure that ad0 does not support DMA, and has a habbit of > slowing down considerably if used with DMA (I remember from the time > when I experimented with different flags for the `wdc' driver). > > Thanks for any insight! > -- > Arcady Genkin http://www.thpoon.com > Nostalgia isn't what it used to be. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Kent Stewart Richland, WA mailto:kstewart@3-cities.com http://www.3-cities.com/~kstewart/index.html FreeBSD News http://daily.daemonnews.org/ SETI(Search for Extraterrestrial Intelligence) @ HOME http://setiathome.ssl.berkeley.edu/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message