From owner-freebsd-current@FreeBSD.ORG Fri Jun 25 16:40:51 2004 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 EBB3016A4CE for ; Fri, 25 Jun 2004 16:40:51 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id C10C443D46 for ; Fri, 25 Jun 2004 16:40:51 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 6418 invoked from network); 25 Jun 2004 16:40:08 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 25 Jun 2004 16:40:07 -0000 Received: from 10.50.41.233 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i5PGduSG080795; Fri, 25 Jun 2004 12:39:56 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@FreeBSD.org Date: Fri, 25 Jun 2004 12:40:57 -0400 User-Agent: KMail/1.6 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406251240.57658.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: kris@FreeBSD.org cc: Gerrit Nagelhout cc: Julian Elischer Subject: Re: STI, HLT in acpi_cpu_idle_c1 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: Fri, 25 Jun 2004 16:40:52 -0000 On Friday 25 June 2004 12:25 pm, Gerrit Nagelhout wrote: > John Baldwin wrote: > > This is why it isn't receiving interrupts. It thinks one is > > still being > > serviced and is waiting on the EOI. That is IPI_HARDCLOCK again. > > Hmm, try this hack (you can turn idle_hlt back on if you want > > since it doesn't > > seem to have an effect): > > > > Index: intr_machdep.c > > =================================================================== > > RCS file: /usr/cvs/src/sys/i386/i386/intr_machdep.c,v > > retrieving revision 1.6 > > diff -u -r1.6 intr_machdep.c > > --- intr_machdep.c 28 May 2004 17:50:07 -0000 1.6 > > +++ intr_machdep.c 25 Jun 2004 15:42:00 -0000 > > @@ -184,6 +184,10 @@ > > clkintr_pending = 1; > > > > if (ih != NULL && ih->ih_flags & IH_FAST) { > > +#if 1 > > + isrc->is_pic->pic_disable_source(isrc); > > + isrc->is_pic->pic_eoi_source(isrc); > > +#endif > > /* > > * Execute fast interrupt handlers directly. > > * To support clock handlers, if a handler registers > > @@ -202,7 +206,11 @@ > > else > > ih->ih_handler(ih->ih_argument); > > } > > +#if 0 > > isrc->is_pic->pic_eoi_source(isrc); > > +#else > > + isrc->is_pic->pic_disable_source(isrc); > > +#endif > > error = 0; > > critical_exit(); > > } else { > > > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > > "Power Users Use the Power to Serve" = http://www.FreeBSD.org > > This patch seems to have broken something with the aac driver. > I get the following message over and over on bootup: > > aac0: COMMAND 0xca593a14 TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593a8c TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593b04 TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593b7c TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593bf4 TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593c6c TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593ce4 TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593d5c TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593dd4 TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593e4c TIMEOUT AFTER 40 SECONDS > aac0: COMMAND 0xca593ec4 TIMEOUT AFTER 40 SECONDS Odd, all it does is eoi fast interrupts earlier. Oh, there's a bug. :( In the second hunk, change 'pic_disable_source' to 'pic_enable_source'. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org