From owner-freebsd-bugs Sat Feb 1 15:17: 1 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 1B44437B405 for ; Sat, 1 Feb 2003 15:16:59 -0800 (PST) Received: from web10708.mail.yahoo.com (web10708.mail.yahoo.com [216.136.130.216]) by mx1.FreeBSD.org (Postfix) with SMTP id C2A7443F43 for ; Sat, 1 Feb 2003 15:16:58 -0800 (PST) (envelope-from jjramsey_6x9eq42@yahoo.com) Message-ID: <20030201231658.13218.qmail@web10708.mail.yahoo.com> Received: from [66.219.135.59] by web10708.mail.yahoo.com via HTTP; Sat, 01 Feb 2003 15:16:58 PST Date: Sat, 1 Feb 2003 15:16:58 -0800 (PST) From: "James J. Ramsey" Reply-To: jjramsey@pobox.com Subject: Re: Revisiting the semirandom bug/issue in FreeBSD's ATA querying To: freebsd-bugs@freebsd.org In-Reply-To: <20030201161730.64166.qmail@web10702.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 --- "James J. Ramsey" wrote: > > --- David Schultz > wrote: > > Thus spake James J. Ramsey > > > > > > I guess the next question is whether FreeBSD has > a > > > delay between probing of master and slave as > Linux > > > does. > > > > No, it doesn't, although the kernel image I sent > you > > a link to > > earlier does. Alternatively, you can add one > > yourself. The patch > > below won't apply cleanly on -CURRENT, but it's > easy > > enough to add > > the lines manually. > > > > Index: ata-all.c > > > =================================================================== > > RCS file: /home/ncvs/src/sys/dev/ata/ata-all.c,v > > retrieving revision 1.50.2.42 > > diff -p -u -r1.50.2.42 ata-all.c > > --- src/sys/dev/ata/ata-all.c 2002/11/01 22:04:06 > > 1.50.2.42 > -- rest of patch not shown -- > > I've tried the patch and it seems to work. I've had > no > luck getting my patched kernel to fail to identify > my > hard drive, and I've tried repeatedly to do so. > However, getting the GENERIC kernel to fail has not > been so easy. To reproduce the failure, I've had to > do > my little trick of starting an install from a floppy > and rebooting before committing, then booting the > GENERIC kernel. That said, I haven't been able to > trip > the patched kernel the way I've been able to trip up > the GENERIC one. So far, so good. > > Any ideas on how to test if the patch really works > or > if I've just been lucky so far? I think I'm going to have to cut my time as a FreeBSD ATA guinea pig short. I found that FreeBSD does not seem to handle my USB scanner well. (It's recognized, and SANE is properly configured and can find it, but doing a preview causes it to hang.) Judging from my perusing of the newsgroups and mailing lists, it is 1) not an uncommon problem and 2) not a problem that is a high enough priority to be fixed all that soon. While I don't use the scanner that much, I also don't want to hold my breath waiting for a fix. I've done a lot of rebooting just to reawaken usbd (since killing it and restarting it doesn't help), so I daresay that the ATA patch's apparent effectiveness is probably not a matter of luck, and you probably should integrate it into FreeBSD proper. So long and thanks for the fish. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message