Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754740AbaJVShq (ORCPT ); Wed, 22 Oct 2014 14:37:46 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.227]:56997 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752079AbaJVSho (ORCPT ); Wed, 22 Oct 2014 14:37:44 -0400 Date: Wed, 22 Oct 2014 14:37:28 -0400 From: Steven Rostedt To: Jiri Kosina Cc: Peter Zijlstra , Ingo Molnar , "Rafael J. Wysocki" , Pavel Machek , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: lockdep splat in CPU hotplug Message-ID: <20141022143728.18d1eb3d@gandalf.local.home> In-Reply-To: References: <20141021145809.GA799@home.goodmis.org> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Oct 2014 17:04:17 +0200 (CEST) Jiri Kosina wrote: > On Tue, 21 Oct 2014, Steven Rostedt wrote: > > > > Please have a look at the very first stacktrace in the dump, where lockdep > > > is trying to explain where cpu_hotplug.lock#2 has been acquired. It seems > > > to imply that cpuidle_pause() is taking cpu_hotplug.lock, but that's not > > > the case at all. > > > > > > What am I missing? > > > > > > > > -> #1 (cpu_hotplug.lock#2){+.+.+.}: > > > [] lock_acquire+0xac/0x130 > > > [] mutex_lock_nested+0x5c/0x3b0 > > > [] cpuidle_pause+0x12/0x30 > > > [] dpm_suspend_noirq+0x44/0x340 > > > [] dpm_suspend_end+0x38/0x80 > > > [] hibernation_snapshot+0xcd/0x370 > > > [] hibernate+0x168/0x210 > > > [] state_store+0xe4/0xf0 > > > [] kobj_attr_store+0xf/0x20 > > > [] sysfs_kf_write+0x43/0x60 > > > [] kernfs_fop_write+0xe7/0x170 > > > [] vfs_write+0xb2/0x1f0 > > > [] SyS_write+0x44/0xb0 > > > [] system_call_fastpath+0x16/0x1b > > > > Yeah, this backtrace looks totally bogus. Unless there's some magic going on > > with grabbing the get_online_cpus here? > > > > Could you send your config. Maybe it has to do with some debug magic? > > .config attached. > Can you reproduce this all the time? I tried this config and pm-suspend and pm-hibernate, and they both worked fine without a single lockdep splat. -- Steve -- 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/