From owner-freebsd-bugs Tue Jan 28 17:58:56 2003 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A840C37B401 for ; Tue, 28 Jan 2003 17:58:55 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id B487143F3F for ; Tue, 28 Jan 2003 17:58:54 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h0T1wrNt002320; Tue, 28 Jan 2003 17:58:53 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h0T1wqBZ002319; Tue, 28 Jan 2003 17:58:52 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Tue, 28 Jan 2003 17:58:52 -0800 From: David Schultz To: jjramsey@pobox.com Cc: ohir@sec.pl, freebsd-bugs@FreeBSD.ORG Subject: Re: Revisiting the semirandom bug/issue in FreeBSD's ATA querying Message-ID: <20030129015852.GB1989@HAL9000.homeunix.com> Mail-Followup-To: jjramsey@pobox.com, ohir@sec.pl, freebsd-bugs@FreeBSD.ORG References: <20030127111911.B15251@sec.pl> <20030128202338.66923.qmail@web10703.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii:iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030128202338.66923.qmail@web10703.mail.yahoo.com> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thus spake James J. Ramsey : > --- "Wojciech S. Czarnecki" wrote: > > James J. Ramsey wrote: > > [on Thu, Jan 23, 2003 at 05:01:05PM -0800] > > (>) Owego dnia James J. Ramsey napisał(a): > > > ad0: 8866663634010175MB > > > > > > [16955114026566160/17/63] at ata0-master PIO4 > > Check cables twice. > > For the test: change cable to ATA33 (40wire) cable. > > I did this and could not get FreeBSD to fail. The > kernel messages were nice and healthy-looking: > > ad0: DMA limited to UDMA33, non-ATA66 cable or device > ad0: 19595MB [39813/16/63] > at ata0-master UDMA33 > > (The hard drive was primary master, and my CD-ROM > primary slave.) That's absolutely bizarre. So the problem happens *only* on FreeBSD, and only when you use bad cables *and* have two devices on the controller. Well, thanks for being patient about it. It's probably a moot point, but if you want to see what effect adding some 50ms delays to the detection code has, you can try the kernel at http://www.csua.berkeley.edu/~das/kernel-atafix . That's a mostly GENERIC -CURRENT kernel with a few other patches that don't concern you. If you have a running FreeBSD system, you can probably just copy it over and load it from the boot loader. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message