From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: acpi_power_off lockdep splat Date: Sun, 19 Jun 2011 15:30:49 +0200 Message-ID: <20110619133049.GA18168@liondog.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from mail.skyhub.de ([78.46.96.112]:57651 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751879Ab1FSNay (ORCPT ); Sun, 19 Jun 2011 09:30:54 -0400 Content-Disposition: inline Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux-acpi@vger.kernel.org Cc: Len Brown , x86@kernel.org, lkml This is something I'm getting with latest Linus git. The machine is connected over serial cable and the below lockdep splat appears on the serial console. I won't be able to test patches or other stuff in the next couple of days but I've seen this on a bunch of machines so far so it should be pretty easy to reproduce on any generic setup: simply do 'halt' on the command line and stare the the serial console output coming out on another machine. I'm attaching dmesg and .config. Thanks. INIT: Switching to runINIT: Sending procUsing makefile-style concurrent boot in runlevel 0. Stopping deferred execution scheduler: atd. fuse exit Shutting down ALSA...done. Asking all remaining processes to terminate...done. All processes ended within 1 seconds....done. Stopping enhanced syslogd: rsyslogd. Saving the system clock. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. Deconfiguring network interfaces...done. Cleaning up ifupdown.... Deactivating swap...done. Unmounting local filesystems...done. Will now halt. Shutdown: hdd Shutdown: hda ACPI Exception: AE_AML_PACKAGE_LIMIT, Index (0x0000000000000007) is beyond end of object (20110413/exoparg2-418) ACPI Error: Method parse/execution failed [\_SB_.PCI0.IDE0.GTM_] (Node de04f2c0), AE_AML_PACKAGE_LIMIT (20110413/pspars) ACPI Error: Method parse/execution failed [\_SB_.PCI0.IDE0.CHN0._GTM] (Node de04f470), AE_AML_PACKAGE_LIMIT (20110413/p) ehci_hcd 0000:00:1d.7: PCI INT D disabled ACPI: Preparing to enter system sleep state S5 Disabling non-boot CPUs ... lockdep: fixing up alternatives. Power down. acpi_power_off called ============================================= [ INFO: possible recursive locking detected ] 3.0.0-rc3-00256-gde505e7 #7 --------------------------------------------- halt/2507 is trying to acquire lock: (&(lock)->rlock){......}, at: [] acpi_os_acquire_lock+0xd/0xf but task is already holding lock: (&(lock)->rlock){......}, at: [] acpi_os_acquire_lock+0xd/0xf other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&(lock)->rlock); lock(&(lock)->rlock); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by halt/2507: #0: (reboot_mutex){+.+.+.}, at: [] sys_reboot+0x80/0x140 #1: (&(lock)->rlock){......}, at: [] acpi_os_acquire_lock+0xd/0xf stack backtrace: Pid: 2507, comm: halt Not tainted 3.0.0-rc3-00256-gde505e7 #7 Call Trace: [] __lock_acquire+0x139b/0x141b [] ? _raw_spin_unlock_irqrestore+0x34/0x5e [] ? acpi_os_acquire_lock+0xd/0xf [] lock_acquire+0xb0/0xcf [] ? acpi_os_acquire_lock+0xd/0xf [] _raw_spin_lock_irqsave+0x33/0x43 [] ? acpi_os_acquire_lock+0xd/0xf [] acpi_os_acquire_lock+0xd/0xf [] acpi_ev_walk_gpe_list+0x1e/0x6e [] ? acpi_hw_enable_runtime_gpe_block+0x38/0x38 [] acpi_hw_clear_acpi_status+0x37/0x4b [] acpi_enter_sleep_state+0x87/0x1ae [] ? trace_hardirqs_off+0xb/0xd [] ? acpi_power_off+0x1d/0x29 [] acpi_power_off+0x24/0x29 [] native_machine_power_off+0x26/0x28 [] machine_power_off+0xe/0x10 [] kernel_power_off+0x40/0x43 [] sys_reboot+0xe9/0x140 [] ? do_send_sig_info+0x54/0x5f [] ? kill_pid_info+0x76/0x80 [] ? sys_kill+0xb2/0x180 [] ? vfsmount_lock_local_unlock+0x3a/0x50 [] ? mntput_no_expire+0x26/0xd8 [] ? mntput+0x1e/0x20 [] ? fput+0x17a/0x183 [] ? trace_hardirqs_on_thunk+0xc/0x10 [] ? sysenter_exit+0xf/0x18 [] ? trace_hardirqs_on_caller+0x10a/0x12b [] sysenter_do_call+0x12/0x36 -- Regards/Gruss, Boris.