From owner-freebsd-current@FreeBSD.ORG Tue Apr 5 14:18:14 2005 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 2782516A4CE for ; Tue, 5 Apr 2005 14:18:14 +0000 (GMT) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD87743D45 for ; Tue, 5 Apr 2005 14:18:13 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 10480 invoked from network); 5 Apr 2005 14:18:13 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 5 Apr 2005 14:18:12 -0000 Received: from [10.50.41.231] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j35EI6Ox065409; Tue, 5 Apr 2005 10:18:07 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@FreeBSD.org Date: Tue, 5 Apr 2005 09:31:23 -0400 User-Agent: KMail/1.6.2 References: <4.3.2.7.2.20050317141121.01dcc770@mail.qconline.com> In-Reply-To: <4.3.2.7.2.20050317141121.01dcc770@mail.qconline.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <200504050931.23981.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: Harry Coin Subject: Re: atapicam hangs boot on 5.3 5.4pre1 5.4pre2 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: Tue, 05 Apr 2005 14:18:14 -0000 On Thursday 17 March 2005 03:11 pm, Harry Coin wrote: > On my P4 system with 'umass0' solid-state disk (photography chips) on the > USB port, if 'device atapicam' is included Freebsd 5.3 release, 5.4 pre1 > and 5.4 pre 2 will hang just before the SMP startup notice in the dmesg > trace. If atapicam is removed then the system boots normally. > > The message it hangs on in place of the SMP message is an > > interrupt storm on int 18: em0 and uhci2++. > > Scrolling still works, no recovery ever happens. I read somewhere back in > 4.x a developer thought the problem might be failure to restore an > interrupt level in a system fork routine, but I really have no idea what > the fix is. I've tried all the obvious boot changes, no joy. if atapicam > is included, hangs at the same spot every time. If not, then a normal > boot. That's the only variable I can twiddle that made any difference. > > System is a P4 Asus P4C800-E, no AGP video, digital camera disks on the USB > port . > > The lock occurs right after this line in the dmesg > > ata4-master SATA150 > ad10: 35304MB [71730/16/63] at ata5-master > SATA150 > > The line never seen is > > SMP: AP CPU #1 Launched! > > The error message is that an interrupt storm was detected on int18: em0 and > uhci2++. I can still use the scroll lock to scan up and down, but the > system never moves on from that point -- ever. Well, your ATA controllers and most of your USB controllers are all on IRQ 18 along with em0. Given that, I don't think this is an interrupt routing issue, but rather, atapicam has managed to make an ATA controller very upset to the point that the ATA controller is interrupting in a way that the driver isn't acknowledging somehow. Can you try some snapshots of 6.0 to see if 1) they fare better when the interrupt storm happens, and 2) if the new ATA code added to HEAD last weekend works better? Note that atapicam doesn't work with the new ATA code until last night, so you might have to install yesterday's snapshot and use cvsup to update to the latest to test atapicam. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org