From owner-freebsd-current@FreeBSD.ORG Mon Dec 22 08:35:27 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 C42AF16A4CE for ; Mon, 22 Dec 2003 08:35:27 -0800 (PST) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C4B143D49 for ; Mon, 22 Dec 2003 08:35:26 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 23519 invoked from network); 22 Dec 2003 16:35:25 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 22 Dec 2003 16:35:25 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id hBMGZMM0045961; Mon, 22 Dec 2003 11:35:23 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Mon, 22 Dec 2003 11:35:23 -0500 (EST) From: John Baldwin To: John Polstra X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: current@freebsd.org Subject: RE: PII SMP system hangs during boot with ACPI enabled 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: Mon, 22 Dec 2003 16:35:27 -0000 On 21-Dec-2003 John Polstra wrote: > On 02-Dec-2003 John Baldwin wrote: >> >> On 23-Nov-2003 John Polstra wrote: >>> I have an old dual PII/400 system that I'm trying to set up as a >>> -current scratchbox. The motherboard is a Tyan S1836DLUAN with the >>> Intel 440BX chipset. I upgraded the BIOS to the latest from Tyan's >>> web site. It is supposed to support ACPI. I'm using -current from >>> around noon Pacific time, November 23 (today). >>> >>> The system boots and runs fine if I disable ACPI either in loader.conf >>> or in the BIOS, but if ACPI is enabled it hangs fairly late in the >>> boot, right after these messages: >>> >>> lo0: bpf attached >>> acpi_cpu0: set speed to 100.0% >>> acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0% > [...] >> Try http://www.FreeBSD.org/~jhb/patches/acpi_irq.patch > > Bingo! Looks like you nailed it. I got home from vacation, updated > to the latest -current, confirmed it was still broken, and applied > your patch (which still applied cleanly). I had to change a couple of > identifiers to make it compile: > > APIC_TRIGGER_LEVEL ==> TRIGGER_LEVEL > APIC_POLARITY_ACTIVEHI ==> POLARITY_ACTIVE_HIGH > > I assume those were just typos, and I hope I guessed the right > replacements. Anyway, now the system boots and runs fine with ACPI > enabled, and things like "shutdown -p" do the right thing. Thanks! > Your patch looks like a keeper. Well, except that it breaks other machines like my test machines here. :) I'm trying to work on making it work better though as well as not hardcode 9 for the SCI interrupt. Watch this space. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/