From owner-freebsd-current Thu Dec 9 8:46:25 1999 Delivered-To: freebsd-current@freebsd.org Received: from mojave.sitaranetworks.com (mojave.sitaranetworks.com [199.103.141.157]) by hub.freebsd.org (Postfix) with ESMTP id 705DF14FFB for ; Thu, 9 Dec 1999 08:46:21 -0800 (PST) (envelope-from grog@mojave.sitaranetworks.com) Message-ID: <19991209114541.59531@mojave.sitaranetworks.com> Date: Thu, 9 Dec 1999 11:45:41 -0500 From: Greg Lehey To: Soren Schmidt , "Richard Seaman Jr." Cc: current@FreeBSD.ORG Subject: Re: Breaking DMA support for multiple chipsets? (was: HEADSUP: wd driver will be retired!) Reply-To: Greg Lehey References: <19991209093436.A782@tar.com> <199912091542.QAA90420@freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <199912091542.QAA90420@freebsd.dk>; from Soren Schmidt on Thu, Dec 09, 1999 at 04:42:01PM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday, 9 December 1999 at 16:42:01 +0100, Soren Schmidt wrote: > It seems Richard Seaman Jr. wrote: >>> >>> It already being tested, and it works, but at the same tike I found >>> out that the code in the old driver for the sis is schizofrenic, it >>> has one way of setting things up, and another way of reporting how >>> it is set :(, that way it is difficult to compare results from >>> the two drivers.. >> >> I think the old wd code was broken on reporting. The reporting >> was changed from the original submission, when it was committed. > > Yep, but it does mean that people _belive_ they are running UDMA > where in fact they aren't, and now they blaim the ata driver > for doing worse :( Well, the wd driver definitely ran DMA on the 5591. And the fix Richard reports is not normally output; IIRC it's only on a verbose boot. On my machine, the driver reports: ide_pci0: irq 14 at device 0.1 on pci0 ... wdc0 at port 0x1f0-0x1f7 irq 14 flags 0xb0ffb0ff on isa0 wdc0: unit 0 (wd0): , LBA, DMA, 32-bit, multi-block-32 wd0: 1223MB (2504880 sectors), 621 cyls, 64 heads, 63 S/T, 512 B/S wdc1 at port 0x170-0x177 irq 15 flags 0xb0ffb0ff on isa0 wdc1: unit 0 (wd2): , LBA, DMA, 32-bit, multi-block-16 wd2: 6197MB (12692736 sectors), 790 cyls, 255 heads, 63 S/T, 512 B/S wdc1: unit 1 (wd3): , LBA, DMA, 32-bit, multi-block-16 wd3: 8063MB (16514064 sectors), 1027 cyls, 255 heads, 63 S/T, 512 B/S DMA is definitely enabled. There's no mistaking the difference between DMA and no DMA. > I'm not sure the other values reported are valid either as they > are reported differently from what they are set to.... I took a look at this a while back and never got round to committing the changes. I believe most of the discrepancies were minor. I'll take charge of fixing that if you like. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message