From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: Help needed: Resume problems in 2.6.32-rc, perhaps related to preempt_count leakage in keventd Date: Mon, 9 Nov 2009 15:27:12 +0100 Message-ID: <200911091527.12249.rjw@sisk.pl> References: <200911091250.31626.rjw@sisk.pl> <1257776176.6365.8.camel@marge.simson.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1257776176.6365.8.camel@marge.simson.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Mike Galbraith Cc: Greg KH , LKML , Jesse Barnes , Ingo Molnar , Thomas Gleixner , Linus Torvalds , pm list List-Id: linux-pm@vger.kernel.org On Monday 09 November 2009, Mike Galbraith wrote: > On Mon, 2009-11-09 at 15:02 +0100, Thomas Gleixner wrote: > > On Mon, 9 Nov 2009, Ingo Molnar wrote: > > > > > > > ok, then my observation should not apply. > > > > I think it _IS_ releated because the worker_thread is CPU affine and > > the debug_smp_processor_id() check does: > > > > if (cpumask_equal(¤t->cpus_allowed, cpumask_of(this_cpu))) > > > > which prevents that usage of smp_processor_id() in ksoftirqd and > > keventd in preempt enabled regions is warned on. > > > > We saw exaclty the same back trace with fd21073 (sched: Fix affinity > > logic in select_task_rq_fair()). > > > > Rafael, can you please add a printk to debug_smp_processor_id() so we > > can see on which CPU we are running ? I suspect we are on the wrong > > one. > > I wonder if that's not intimately related to the problem I had, namely > newidle balancing offline CPUs as they're coming up, making a mess of > cpu enumeration. Very likely. What did you do to fix it? Rafael