From: Guido Guenther Subject: acpi sci polarity Date: Thu, 3 Jan 2008 19:14:15 +0100 Message-ID: <20080103181415.GB1077@bogon.ms20.nix> References: <20080103181132.GA1077@bogon.ms20.nix> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: Content-Disposition: inline In-Reply-To: <20080103181132.GA1077-DVvpyRRQz99DDGxTMhc9XQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Thu, Jan 03, 2008 at 07:11:32PM +0100, Guido Guenther wrote: > simulate the pressing of a fixed feature acpi power button. The patch > has one issue though, it currently needs --no-kvm-irqchip (see my other > mail). Please apply if appropriate. When running without --no-kvm-irqchip the ACPI irq never gets delivered, the ACPI interrupt always stays at zero in /proc/interrupt. However I can hack around this with: --- a/kernel/ioapic.c +++ b/kernel/ioapic.c @@ -248,6 +253,8 @@ void kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level) if (irq >= 0 && irq < IOAPIC_NUM_PINS) { entry = ioapic->redirtbl[irq]; + if(irq == 10) /* ACPI interrupt */ + entry.fields.polarity = 0; level ^= entry.fields.polarity; if (!level) ioapic->irr &= ~mask; If I understand the docs correctly the ACPI SCI should be an (active low not active high) leveled interrupt. Where would be the proper place to fix this? -- Guido ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/