From owner-freebsd-acpi@FreeBSD.ORG Thu Dec 14 23:39:19 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFC7016A47C for ; Thu, 14 Dec 2006 23:39:19 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (uriah.heep.sax.de [213.240.137.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6ACDD43CA6 for ; Thu, 14 Dec 2006 23:23:34 +0000 (GMT) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (localhost [127.0.0.1]) by uriah.heep.sax.de (Postfix) with ESMTP id 843D4164 for ; Fri, 15 Dec 2006 00:25:05 +0100 (MET) Received: from uriah.heep.sax.de (localhost [127.0.0.1]) by uriah.heep.sax.de (Postfix) with ESMTP for ; Fri, 15 Dec 2006 00:25:05 +0100 (MET) Received: (from j@localhost) by uriah.heep.sax.de (8.13.4/8.13.1/Submit) id kBENP5Hs022495 for freebsd-acpi@freebsd.org; Fri, 15 Dec 2006 00:25:05 +0100 (MET) (envelope-from j) Date: Fri, 15 Dec 2006 00:25:05 +0100 From: Joerg Wunsch To: freebsd-acpi@freebsd.org Message-ID: <20061214232504.GA20454@uriah.heep.sax.de> References: <20061213221550.GA67376@uriah.heep.sax.de> <200612141053.10344.jhb@freebsd.org> <20061214162947.GA6287@uriah.heep.sax.de> <200612141156.46852.jhb@freebsd.org> <20061213221550.GA67376@uriah.heep.sax.de> <20061214084319.3ca09dec.ariff@FreeBSD.org> <200612141053.10344.jhb@freebsd.org> <20061214162947.GA6287@uriah.heep.sax.de> <20061215021844.417330dd.ariff@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200612141156.46852.jhb@freebsd.org> <20061215021844.417330dd.ariff@FreeBSD.org> X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-GPG-Fingerprint: 5E84 F980 C3CA FD4B B584 1070 F48C A81B 69A8 5873 User-Agent: Mutt/1.5.11 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on uriah.heep.sax.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=6.5 tests=none autolearn=failed version=3.0.2 Subject: Re: Interrupt routing issue on Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joerg Wunsch List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2006 23:39:19 -0000 As John Baldwin wrote: > > What in particular caught my eye in the Linux messages is: > > Dec 12 23:33:26 remi kernel: ENABLING IO-APIC IRQs > > Dec 12 23:33:26 remi kernel: ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1 > > Dec 12 23:33:26 remi kernel: ..MP-BIOS bug: 8254 timer not connected to IO-APIC > > Dec 12 23:33:26 remi kernel: ...trying to set up timer (IRQ0) through the 8259A ... failed. > > Dec 12 23:33:26 remi kernel: ...trying to set up timer as Virtual Wire IRQ... works. > > I didn't quite follow the referred to discussion of the Linux > > kernel hackers, is the above their workaround, or is that > > something entirely different? > That's something different because of the way IRQ0 doesn't > consistently work when using APIC. Ah OK. > I thought you meant that you had a problem with PCI devices not > working (i.e. an "interrupt routing problem"). As disabling the APIC made the machine work, together with that Linux messages, I thought of an interrupt routing problem. Turns out it's rather a weird CPU problem then. (But still, Linux gets around that.) As Ariff Abdullah wrote: (power consumption) > Just ignore large part of it. Most of the workarounds (disabling > hlt, selective hlt) there does not applicable anymore with my above > patch which: > 1) HLT enabled, 2) APIC enabled 3) Piggybacking APIC > timer through RTC interrupt (hw.apic.idle_cpu=1) OK, that's what I'm using now. The machine has been working for the entire day quite fine, but when I came back at night, it had lost about half an hour of system time. I seen Bruce reported it losing one second per lid switch activation, but in my case, the machine was left untouched physically. It has only been used for heavy compile jobs (JDK, OpenOffice) remotely, but with the lid closed. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)