From owner-freebsd-questions Thu Apr 20 9:26:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.rdc3.on.home.com (mail1.rdc3.on.home.com [24.2.9.40]) by hub.freebsd.org (Postfix) with ESMTP id D22E437B5B2 for ; Thu, 20 Apr 2000 09:26:29 -0700 (PDT) (envelope-from antipode@thpoon.com) Received: from tea.thpoon.com ([24.114.152.71]) by mail1.rdc3.on.home.com (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20000420162534.MFTP15824.mail1.rdc3.on.home.com@tea.thpoon.com> for ; Thu, 20 Apr 2000 09:25:34 -0700 Received: from antipode by tea.thpoon.com with local (Exim 3.12 #1 (Debian)) id 12iJll-0000o8-00 for ; Thu, 20 Apr 2000 12:25:33 -0400 To: freebsd-questions@FreeBSD.ORG Subject: Selectively enable/disable DMA for an ata driver X-Face: 0=A/O5-+sE[Tf%X>rYr?Y5LD4,:^'jaJ!4jC&UR*ZrrK2>^`g22Qeb]!:d;}2YJ|Hq"LHdF OX`jWX|AT-WVFQ(TPhFVak)0nt$aEdlOq=1~D,:\z5QlVOrZ2(H,mKg=Xr|'VlHA="r Organization: thpoon.com From: Arcady Genkin Date: 20 Apr 2000 12:25:33 -0400 Message-ID: <87og74d9j6.fsf@tea.thpoon.com> Lines: 36 User-Agent: Gnus/5.0804 (Gnus v5.8.4) XEmacs/21.1 (Bryce Canyon) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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