From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755896AbXLBN5p (ORCPT ); Sun, 2 Dec 2007 08:57:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752373AbXLBN5i (ORCPT ); Sun, 2 Dec 2007 08:57:38 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:59326 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752264AbXLBN5h (ORCPT ); Sun, 2 Dec 2007 08:57:37 -0500 Date: Sun, 2 Dec 2007 14:57:11 +0100 From: Ingo Molnar To: =?iso-8859-1?Q?J=F6rn?= Engel Cc: Mark Lord , Pavel Machek , Mark Lord , Thomas Gleixner , len.brown@intel.com, Andrew Morton , linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org, rjw@sisk.pl Subject: Re: [BUG] Strange 1-second pauses during Resume-from-RAM Message-ID: <20071202135711.GA20434@elte.hu> References: <20071130134312.GA32273@elte.hu> <20071130183510.GA1570@lazybastard.org> <20071130184625.GB9928@elte.hu> <20071201151650.GA5031@lazybastard.org> <20071201183256.GA14052@elte.hu> <20071201204747.GA6458@lazybastard.org> <20071201205456.GA8231@elte.hu> <20071201234112.GA7209@lazybastard.org> <20071202085607.GA28966@elte.hu> <20071202113143.GA9378@lazybastard.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20071202113143.GA9378@lazybastard.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Jörn Engel wrote: > On Sun, 2 December 2007 09:56:08 +0100, Ingo Molnar wrote: > > * Jörn Engel wrote: > > > > > > ah. You should mark pit_read() function as notrace. PIT clocksource > > > > is rare. (add the 'notrace' word to the function prototype) > > > > > > Hardly a change at all. Apart from some offsets, this dump is > > > identical. > > > > > > stopped custom tracer. > > > BUG: spinlock recursion on CPU#0, sh/954 > > > lock: c030f280, .magic: dead4ead, .owner: sh/954, .owner_cpu: 0 > > > Pid: 954, comm: sh Not tainted 2.6.24-rc3-ge1cca7e8-dirty #3 > > > [] show_trace_log_lvl+0x35/0x54 > > > [] show_trace+0x2c/0x2e > > > [] dump_stack+0x84/0x8a > > > [] spin_bug+0xa7/0xae > > > [] _raw_spin_lock+0x45/0xfa > > > [] _spin_lock_irqsave+0x68/0x7a > > > [] pit_read+0xf/0x91 > > > [] get_monotonic_cycles+0xf/0x2d > > > [] now+0x2a/0x7c > > > [] ____trace+0x4d/0x1e8 > > > [] __mcount+0x95/0xa6 > > > [] mcount+0x14/0x18 > > > [] lock_acquired+0xe/0x1d7 > > > [] _spin_lock_irqsave+0x70/0x7a > > > [] pit_read+0xf/0x91 > > > > hm, it seems lock_acquired() [in kernel/lockdep.c] needs to be marked > > 'notrace' too - otherwise we recurse back into pit_read(). > > This time not even the offsets have changed. Dump is identical. hm, do you have CONFIG_FRAME_POINTERS=y, i.e. are the dumps reliable? Ingo