From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752149AbZHLWFh (ORCPT ); Wed, 12 Aug 2009 18:05:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751982AbZHLWFg (ORCPT ); Wed, 12 Aug 2009 18:05:36 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:18661 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930AbZHLWFe (ORCPT ); Wed, 12 Aug 2009 18:05:34 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :x-enigmail-version:content-type:content-transfer-encoding; b=qzd3Q4fU5lI2nr5L2ulLhsarHOyQQUwO5cRqqj7GALoN4HElPJJxS74uiu/6YTxLE1 5XNCKv8wW0WwReiv0U2nTWne3v7QgAwRkxy3djncXkcUb+Cr9MXjeTP1EUJx2aGmTz4M BhD/SuOCXv8fQuoPxUjzqwy24WQB5d9NK0/Vo= Message-ID: <4A833CAD.5050209@gmail.com> Date: Thu, 13 Aug 2009 00:05:33 +0200 From: Jiri Slaby User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.9.1.1) Gecko/20090715 SUSE/3.0b3-7.4 Thunderbird/3.0b3 MIME-Version: 1.0 To: "Rafael J. Wysocki" CC: "Brown, Len" , linux-pm@lists.linux-foundation.org, LKML Subject: hibernate causes nobody cared on acpi irq X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, with current mmotm I get this while trying to hibernate from a system in qemu: PM: Syncing filesystems ... done. Freezing user space processes ... (elapsed 0.00 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.03 seconds) done. PM: Preallocating image memory... done (allocated 7986 pages) PM: Allocated 31944 kbytes in 0.01 seconds (3194.40 MB/s) ACPI: Preparing to enter system sleep state S4 PM: Saving platform NVS memory Disabling non-boot CPUs ... Cannot set affinity for irq 0 CPU 1 is now offline SMP alternatives: switching to UP code CPU1 is down PM: Creating hibernation image: PM: Need to copy 7687 pages PM: Hibernation image created (7687 pages copied) Enabling non-boot CPUs ... SMP alternatives: switching to SMP code Booting processor 1 APIC 0x1 ip 0x6000 Initializing CPU#1 Calibrating delay using timer specific routine.. 5985.37 BogoMIPS (lpj=11970749) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 2048K mce: CPU supports 32 MCE banks CPU1: Intel QEMU Virtual CPU version 0.10.50 stepping 03 checking TSC synchronization [CPU#0 -> CPU#1]: passed. Switched to high resolution mode on CPU 1 CPU1 is up ACPI: Waking up from system sleep state S4 irq 9: nobody cared (try booting with the "irqpoll" option) Pid: 497, comm: sh Tainted: G W 2.6.31-rc5-mm1_64 #668 Call Trace: [] __report_bad_irq+0x26/0xa0 [] note_interrupt+0x190/0x1d0 [] ? acpi_irq+0x11/0x2c [] handle_fasteoi_irq+0xb7/0xe0 [] handle_irq+0x1d/0x30 [] do_IRQ+0x67/0xe0 [] ret_from_intr+0x0/0xa [] ? __do_softirq+0x5f/0x130 [] ? ack_apic_level+0x7d/0x1e0 [] ? call_softirq+0x1c/0x30 [] ? do_softirq+0x4d/0x80 [] ? irq_exit+0x7d/0x90 [] ? do_IRQ+0x70/0xe0 [] ? ret_from_intr+0x0/0xa [] ? _spin_unlock_irqrestore+0x8/0x10 [] ? resume_device_irqs+0x73/0x90 [] ? dpm_resume_noirq+0xb1/0xc0 [] ? hibernation_snapshot+0x12a/0x230 [] ? hibernate+0xd4/0x1a0 [] ? state_store+0xec/0x100 [] ? kobj_attr_store+0x17/0x20 [] ? sysfs_write_file+0xe0/0x160 [] ? vfs_write+0xb8/0x1a0 [] ? do_page_fault+0x185/0x350 [] ? sys_write+0x4c/0x80 [] ? sys_fcntl+0x150/0x410 [] ? system_call_fastpath+0x16/0x1b handlers: [] (acpi_irq+0x0/0x2c) Disabling IRQ #9 I use this hunk to prevent bh enablement btw.: diff --git a/kernel/hw_breakpoint.c b/kernel/hw_breakpoint.c index c1f64e6..bc5368d 100644 --- a/kernel/hw_breakpoint.c +++ b/kernel/hw_breakpoint.c @@ -80,17 +80,15 @@ void load_debug_registers(void) unsigned long flags; struct task_struct *tsk = current; - spin_lock_bh(&hw_breakpoint_lock); + spin_lock_irqsave(&hw_breakpoint_lock, flags); /* Prevent IPIs for new kernel breakpoint updates */ - local_irq_save(flags); arch_update_kernel_hw_breakpoint(NULL); - local_irq_restore(flags); if (test_tsk_thread_flag(tsk, TIF_DEBUG)) arch_install_thread_hw_breakpoint(tsk); - spin_unlock_bh(&hw_breakpoint_lock); + spin_unlock_irqrestore(&hw_breakpoint_lock, flags); } /*