Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752977Ab3CEH10 (ORCPT ); Tue, 5 Mar 2013 02:27:26 -0500 Received: from mga14.intel.com ([143.182.124.37]:8156 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752351Ab3CEH1Y (ORCPT ); Tue, 5 Mar 2013 02:27:24 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,785,1355126400"; d="scan'208";a="264456805" Message-ID: <51359E9D.7040802@intel.com> Date: Tue, 05 Mar 2013 15:28:29 +0800 From: Aaron Lu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 MIME-Version: 1.0 To: maciej.rutecki@gmail.com, Mandeep Singh Baines , Henrique de Moraes Holschuh CC: LKML , linux-acpi@vger.kernel.org, ibm-acpi@hmh.eng.br, ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org Subject: Re: [REGRESSION] [3.9-rc1] BUG: ktpacpi_nvramd/446 still has locks held! References: <201303042055.38040.maciej.rutecki@gmail.com> In-Reply-To: <201303042055.38040.maciej.rutecki@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2525 Lines: 72 On 03/05/2013 03:55 AM, Maciej Rutecki wrote: > Last known good: 3.8.0 > Bad version: 3.9-rc1 > > [ 6.116492] ===================================== > [ 6.116614] [ BUG: ktpacpi_nvramd/446 still has locks held! ] > [ 6.116737] 3.9.0-rc1 #1 Not tainted > [ 6.116821] ------------------------------------- > [ 6.116900] 1 lock held by ktpacpi_nvramd/446: > [ 6.116973] #0: (&hotkey_thread_mutex){+.+...}, at: [] > hotkey_kthread+0x1f/0x354 [thinkpad_acpi] > [ 6.117193] > [ 6.117193] stack backtrace: > [ 6.117268] Pid: 446, comm: ktpacpi_nvramd Not tainted 3.9.0-rc1 #1 > [ 6.117381] Call Trace: > [ 6.117445] [] debug_check_no_locks_held+0x8f/0x93 > [ 6.117600] [] set_freezable+0x3e/0x64 > [ 6.117703] input: ThinkPad Extra Buttons as > /devices/platform/thinkpad_acpi/input/input5 > [ 6.117918] [] hotkey_kthread+0x31/0x354 [thinkpad_acpi] > [ 6.118088] [] ? issue_volchange.29885+0x54/0x54 > [thinkpad_acpi] > [ 6.118250] [] kthread+0xac/0xb4 > [ 6.118356] [] ? __kthread_parkme+0x60/0x60 > [ 6.118491] [] ret_from_fork+0x7c/0xb0 > [ 6.118614] [] ? __kthread_parkme+0x60/0x60 > > Config: > http://mrutecki.pl/download/kernel/3.9.0-rc1/config-3.9.0-rc1 > > full dmesg: > http://mrutecki.pl/download/kernel/3.9.0-rc1/dmesg-3.9.0-rc1.txt > Thanks for the report! Looks like the following commit is related: commit 6aa9707099c4b25700940eb3d016f16c4434360d Author: Mandeep Singh Baines Thu Feb 28 09:03:18 2013 lockdep: check that no locks held at freeze time And the code to trigger this problem is here: static int hotkey_kthread(void *data) { struct tp_nvram_state s[2]; u32 poll_mask, event_mask; unsigned int si, so; unsigned long t; unsigned int change_detector; unsigned int poll_freq; bool was_frozen; mutex_lock(&hotkey_thread_mutex); if (tpacpi_lifecycle == TPACPI_LIFE_EXITING) goto exit; set_freezable(); ~~~~~~~~~~~~~~~~~~~~~~~~~~ in thinkpad_acpi.c. I don't know much about freeze, I've no idea what is the problem. So Mandeep and Henrique, can you please kindly take a look? Thanks. -Aaron -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/