From: Daniel Walker Subject: acpi lockdep warning. Date: Mon, 21 Jul 2008 07:22:30 -0700 Message-ID: <1216650150.2294.30.camel@dhcp32.mvista.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from gateway-1237.mvista.com ([63.81.120.158]:18611 "EHLO gateway-1237.mvista.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbYGUOWe (ORCPT ); Mon, 21 Jul 2008 10:22:34 -0400 Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux-acpi@vger.kernel.org Cc: Ingo Molnar , len.brown@intel.com, Andi Kleen , Peter Zijlstra Below is the only lockdep warning that I've seen.. I've booted a number of machines without warning displayed, but one consistently has this. I think it's due to a repeated release/re-lock of the interpreter mutex. Where the interpreter mutex can be re-locked anyplace inside an AML Mutex lock sequence. Daniel ======================================================= [ INFO: possible circular locking dependency detected ] 2.6.26 #7 ------------------------------------------------------- swapper/1 is trying to acquire lock: (key#5){--..}, at: [] acpi_os_acquire_mutex_nested+0x29/0x3f but task is already holding lock: (key#6){--..}, at: [] acpi_os_acquire_mutex_nested+0x29/0x3f which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (key#6){--..}: [] __lock_acquire+0xbba/0x10d0 [] lock_acquire+0x60/0x80 [] mutex_lock_interruptible_nested+0x93/0x340 [] acpi_os_acquire_mutex_nested+0x29/0x3f [] acpi_ex_system_wait_mutex_nested+0x11/0x3b [] acpi_ex_acquire_mutex_object+0x3f/0x5b [] acpi_ex_acquire_mutex+0x91/0xe6 [] acpi_ex_opcode_2A_0T_1R+0xb4/0x130 [] acpi_ds_exec_end_op+0xe6/0x373 [] acpi_ps_parse_loop+0x5cd/0x720 [] acpi_ps_parse_aml+0x6d/0x25b [] acpi_ps_execute_method+0x11c/0x1d7 [] acpi_ns_evaluate+0x12e/0x188 [] acpi_ut_evaluate_object+0x51/0x158 [] acpi_ut_execute_STA+0x1d/0x49 [] acpi_ns_get_device_callback+0x59/0x112 [] acpi_ns_walk_namespace+0x9a/0x110 [] acpi_get_devices+0x47/0x5d [] acpi_ec_ecdt_probe+0x97/0xf7 [] acpi_init+0x76/0x21f [] kernel_init+0x19d/0x2b1 [] kernel_thread_helper+0x7/0x14 [] 0xffffffff -> #0 (key#5){--..}: [] __lock_acquire+0xc2f/0x10d0 [] lock_acquire+0x60/0x80 [] mutex_lock_interruptible_nested+0x93/0x340 [] acpi_os_acquire_mutex_nested+0x29/0x3f [] acpi_ut_acquire_mutex+0x33/0x70 [] acpi_ex_enter_interpreter+0xa/0x24 [] acpi_ev_address_space_dispatch+0xb8/0x16f [] acpi_ex_access_region+0x1b2/0x1c0 [] acpi_ex_field_datum_io+0x117/0x1ae [] acpi_ex_write_with_update_rule+0xd5/0xde [] acpi_ex_insert_into_field+0x2a7/0x2c4 [] acpi_ex_write_data_to_field+0x169/0x181 [] acpi_ex_store_object_to_node+0x82/0xb7 [] acpi_ex_store+0xc9/0x221 [] acpi_ex_opcode_1A_1T_1R+0x3db/0x535 [] acpi_ds_exec_end_op+0xe6/0x373 [] acpi_ps_parse_loop+0x5cd/0x720 [] acpi_ps_parse_aml+0x6d/0x25b [] acpi_ps_execute_method+0x11c/0x1d7 [] acpi_ns_evaluate+0x12e/0x188 [] acpi_ut_evaluate_object+0x51/0x158 [] acpi_ut_execute_STA+0x1d/0x49 [] acpi_ns_get_device_callback+0x59/0x112 [] acpi_ns_walk_namespace+0x9a/0x110 [] acpi_get_devices+0x47/0x5d [] acpi_ec_ecdt_probe+0x97/0xf7 [] acpi_init+0x76/0x21f [] kernel_init+0x19d/0x2b1 [] kernel_thread_helper+0x7/0x14 [] 0xffffffff other info that might help us debug this: 1 lock held by swapper/1: #0: (key#6){--..}, at: [] acpi_os_acquire_mutex_nested+0x29/0x3f stack backtrace: Pid: 1, comm: swapper Not tainted 2.6.26 #7 [] print_circular_bug_tail+0x6f/0x80 [] __lock_acquire+0xc2f/0x10d0 [] ? acpi_os_validate_address+0x6b/0x98 [] lock_acquire+0x60/0x80 [] ? acpi_os_acquire_mutex_nested+0x29/0x3f [] mutex_lock_interruptible_nested+0x93/0x340 [] ? acpi_os_acquire_mutex_nested+0x29/0x3f [] ? acpi_os_acquire_mutex_nested+0x29/0x3f [] acpi_os_acquire_mutex_nested+0x29/0x3f [] acpi_ut_acquire_mutex+0x33/0x70 [] acpi_ex_enter_interpreter+0xa/0x24 [] acpi_ev_address_space_dispatch+0xb8/0x16f [] acpi_ex_access_region+0x1b2/0x1c0 [] acpi_ex_field_datum_io+0x117/0x1ae [] acpi_ex_write_with_update_rule+0xd5/0xde [] acpi_ex_insert_into_field+0x2a7/0x2c4 [] acpi_ex_write_data_to_field+0x169/0x181 [] ? acpi_ut_allocate_object_desc_dbg+0x2c/0x5d [] acpi_ex_store_object_to_node+0x82/0xb7 [] acpi_ex_store+0xc9/0x221 [] acpi_ex_opcode_1A_1T_1R+0x3db/0x535 [] ? acpi_ex_resolve_operands+0x1cc/0x47c [] acpi_ds_exec_end_op+0xe6/0x373 [] acpi_ps_parse_loop+0x5cd/0x720 [] acpi_ps_parse_aml+0x6d/0x25b [] acpi_ps_execute_method+0x11c/0x1d7 [] acpi_ns_evaluate+0x12e/0x188 [] acpi_ut_evaluate_object+0x51/0x158 [] acpi_ut_execute_STA+0x1d/0x49 [] ? acpi_os_release_mutex+0x15/0x19 [] acpi_ns_get_device_callback+0x59/0x112 [] ? mutex_unlock+0x8/0x10 [] acpi_ns_walk_namespace+0x9a/0x110 [] acpi_get_devices+0x47/0x5d [] ? acpi_ns_get_device_callback+0x0/0x112 [] ? ec_parse_device+0x0/0x56 [] acpi_ec_ecdt_probe+0x97/0xf7 [] acpi_init+0x76/0x21f [] ? fbmem_init+0x47/0x89 [] kernel_init+0x19d/0x2b1 [] ? _spin_unlock_irq+0x2d/0x50 [] ? acpi_init+0x0/0x21f [] ? trace_hardirqs_on_caller+0xfe/0x140 [] ? trace_hardirqs_on_thunk+0xc/0x10 [] ? restore_nocheck_notrace+0x0/0xe [] ? kernel_init+0x0/0x2b1 [] ? kernel_init+0x0/0x2b1 [] kernel_thread_helper+0x7/0x14 =======================