From owner-freebsd-current@FreeBSD.ORG Sat Oct 11 10:30:17 2003 Return-Path: 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 24BBA16A4B3 for ; Sat, 11 Oct 2003 10:30:17 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48A4B43F75 for ; Sat, 11 Oct 2003 10:30:16 -0700 (PDT) (envelope-from sam@errno.com) Received: from 66.127.85.91 ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h9BHUE0x041572 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 11 Oct 2003 10:30:16 -0700 (PDT) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: Antony T Curtis , freebsd-current@freebsd.org Date: Sat, 11 Oct 2003 10:31:19 -0700 User-Agent: KMail/1.5.3 References: <1065864899.426.7.camel@pcgem.rdg.cyberkinetica.com> <1065867620.426.9.camel@pcgem.rdg.cyberkinetica.com> In-Reply-To: <1065867620.426.9.camel@pcgem.rdg.cyberkinetica.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310111031.19437.sam@errno.com> Subject: Re: Locks up with CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2003 17:30:17 -0000 On Saturday 11 October 2003 03:20 am, Antony T Curtis wrote: > On Sat, 2003-10-11 at 10:36, Antony T Curtis wrote: > > Hi, I cvsuped at about 10/10/03 11PM GMT and rebuilt world and kernel. > > > > It locks up after displaying: > > > > GEOM: create disk ad0 dp=0xc456d370 > > ad0: 28615MB [58140/16/63] at ata0-master UDMA100 > > ata1: resetting devices .. > > done > > > > System is a Toshiba Satellite 2455 notebook. > > Removing the CDRW drive allowed it to boot I suspect this is the same problem I've encountered with a Toshiba DVD/CDRW drive on a ServerWorks CSB5 controller. The following change re-enables some code to workaround a missed interrupt and allows my system to boot:: diff ./ata-queue.c /data/devel/netperf/dev/ata/ata-queue.c 319c319 < #if 0 --- > #if 1 However the Toshiba drive is not recognized. If after booting I do: atacontrol reinit 1 I sometimes get the drive properly probed. sos sent me the following change to try but I still haven't gotten to it. Beware that it's probably out of date wrt current source: Index: ata-lowlevel.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v retrieving revision 1.16 diff -u -r1.16 ata-lowlevel.c --- ata-lowlevel.c 20 Sep 2003 08:38:33 -0000 1.16 +++ ata-lowlevel.c 26 Sep 2003 06:50:29 -0000 @@ -527,7 +527,8 @@ ATA_IDX_OUTB(ch, ATA_ALTSTAT, ATA_A_IDS | ATA_A_RESET); DELAY(10000); ATA_IDX_OUTB(ch, ATA_ALTSTAT, ATA_A_IDS); - DELAY(10000); + DELAY(100000); + ATA_IDX_INB(ch, ATA_ERROR); /* wait for BUSY to go inactive */ for (timeout = 0; timeout < 310; timeout++) { Sam