From owner-freebsd-current Thu Feb 6 23:20:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6288A37B405 for ; Thu, 6 Feb 2003 23:20:13 -0800 (PST) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id F382D43FAF for ; Thu, 6 Feb 2003 23:20:11 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.5/8.12.6) id h177K9dG030735; Fri, 7 Feb 2003 08:20:09 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200302070720.h177K9dG030735@spider.deepcore.dk> Subject: Re: ATA code is buggy and slower In-Reply-To: <3E43248F.2030303@plan9.bell-labs.com> To: Dong Lin Date: Fri, 7 Feb 2003 08:20:09 +0100 (CET) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems Dong Lin wrote: > > My 5.0R kernel complains about "READ timeout" and "resetting" when I try > to dd the disk. But everything *works* if I boot the same equipment with > 4.5R and 4.7R. It seems that the error can occur on any sector I pick as > long as I keep reading it inside a loop, a sign of timing problems. > > The 5.0 ATA code is so different that I am not sure where to start. If > someone can show me a way to run the 4.7 ATA code under 5.0, I am > willing to debug it. > > My equipment: Promise ATA66 controller(0x4d38105a r01), WDC WD400BB > ATA/100, ATA66 cable. > > Also, my simple dd measurements show that performance is going down: > > dd if=/dev/ad4 of=/dev/null bs=8m > 4.5R: 49 MB/s > 4.7R: 39 MB/s > 5.0R: does not finish Grap the ATA driver (sys/dev/ata) from -currrent, there is a bug in the 48bit support code for old promises thats not fixed in 5.0. -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message