From owner-freebsd-current Mon Jan 27 14:11:29 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 115AD37B401 for ; Mon, 27 Jan 2003 14:11:28 -0800 (PST) Received: from mail.rdslink.ro (mail.rdslink.ro [193.231.236.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 93C1343F1E for ; Mon, 27 Jan 2003 14:11:26 -0800 (PST) (envelope-from enache@rdslink.ro) Received: (qmail 19700 invoked from network); 27 Jan 2003 22:10:31 -0000 Received: from unknown (HELO ratsnest.hole) (81.196.245.166) by mail.rdslink.ro with SMTP; 27 Jan 2003 22:10:31 -0000 Received: from ratsnest.hole (localhost [127.0.0.1]) by ratsnest.hole (8.12.5/8.12.5) with ESMTP id h0RMJ5v0000981 for ; Tue, 28 Jan 2003 00:19:13 +0200 Received: (from adi@localhost) by ratsnest.hole (8.12.5/8.12.5/Submit) id h0RMIP3k000963 for current@freebsd.org; Tue, 28 Jan 2003 00:18:25 +0200 Date: Tue, 28 Jan 2003 00:18:25 +0200 From: Enache Adrian To: current@freebsd.org Subject: boot delay when testing for ata devices Message-ID: <20030127221825.GA903@ratsnest.hole> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i 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 FreeBSD used to have an irritating boot delay in 4.4. It was gone in ~4.6, never reappeared in -STABLE, but is there in -CURRENT. (I've seen it also mentioned in some vmware documentation). Applying this patch fixes it: --- /arc/freebsd/src/sys/dev/ata/ata-all.c Sun Jan 19 23:54:13 2003 +++ sys/dev/ata/ata-all.c Mon Jan 27 21:02:34 2003 @@ -514,7 +514,7 @@ /* apparently some devices needs this repeated */ do { - if (ata_command(atadev, command, 0, 0, 0, ATA_WAIT_INTR)) { + if (ata_command(atadev, command, 0, 0, 0, ATA_IMMEDIATE)) { ata_prtdev(atadev, "%s identify failed\n", command == ATA_C_ATAPI_IDENTIFY ? "ATAPI" : "ATA"); free(ata_parm, M_ATA); I'm not familiar with the ata code, but I can't see from ata-all.c which harm this could cause. Regards Adi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message