public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: tglx@linutronix.de
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>, Ingo Molnar <mingo@elte.hu>,
	LKML <linux-kernel@vger.kernel.org>,
	John Stultz <johnstul@us.ibm.com>,
	linux-acpi@vger.kernel.org
Subject: Re: [patch 3/3] clockevents: Fix resume logic - updated version
Date: Sat, 12 May 2007 03:07:54 -0700	[thread overview]
Message-ID: <20070512030754.90488f79.akpm@linux-foundation.org> (raw)
In-Reply-To: <1178961489.22481.133.camel@localhost.localdomain>

On Sat, 12 May 2007 11:18:09 +0200 Thomas Gleixner <tglx@linutronix.de> wrote:

> > It's peculiar that the hang happens when acpi_evaluate_object() hits its
> > return statement.  Any theories there?
> 
> Only stack or memory corruption come into mind, but I have no clue how
> this is related to the resume logic changes.

So I had the brilliant idea of turning on some kernel debugging.  It's
a shame that CONFIG_SOFTWARE_SUSPEND disables CONFIG_DEBUG_PAGEALLOC.

[   73.533454] swsusp: Basic memory bitmaps created
[   73.550429] Stopping tasks ... BUG: at kernel/lockdep.c:2414 check_flags()
[   73.550988]  [<c0104c14>] show_trace_log_lvl+0x1a/0x30
[   73.551143]  [<c0105769>] show_trace+0x12/0x14
[   73.551279]  [<c01057c1>] dump_stack+0x15/0x17
[   73.551412]  [<c0132732>] check_flags+0x93/0x13d
[   73.551554]  [<c0135558>] lock_acquire+0x28/0x7f
[   73.551691]  [<c0310e35>] _spin_lock+0x2b/0x38
[   73.551827]  [<c013dc43>] refrigerator+0x16/0xc7
[   73.551965]  [<c0125d2e>] get_signal_to_deliver+0x32/0x387
[   73.552124]  [<c010336d>] do_notify_resume+0x91/0x6a9
[   73.552271]  [<c0103df1>] work_notifysig+0x13/0x1a
[   73.552413]  =======================
[   73.552507] irq event stamp: 3075
[   73.552595] hardirqs last  enabled at (3075): [<c0103e51>] syscall_exit_work+0x11/0x26
[   73.552821] hardirqs last disabled at (3074): [<c0103d35>] syscall_exit+0x9/0x1a
[   73.553046] softirqs last  enabled at (2778): [<c01209f2>] __do_softirq+0x92/0x9a
[   73.553255] softirqs last disabled at (2693): [<c0120a27>] do_softirq+0x2d/0x46
[   73.559504] done.
[   73.559569] Shrinking memory...  \b-\bdone (0 pages freed)
[   73.646511] Freed 0 kbytes in 0.08 seconds (0.00 MB/s)
[   73.649595] platform sonypi: freeze
[   73.649707] platform bluetooth: freeze
[   73.649817] usb_endpoint usbdev5.1_ep81: PM: suspend 0->1, parent 5-0:1.0 already 2
[   73.650023] hub 5-0:1.0: PM: suspend 2-->1

<snippage>

[   73.739499] ipw2200 0000:06:0b.0: freeze
[   73.743860] eth1: Going into suspend...
[   73.748444] e100 0000:06:08.0: freeze

at this point I lost netconsole (earlier testing was without netconsole
btw)


The lockdep spew is coming out of here:

static void check_flags(unsigned long flags)
{
#if defined(CONFIG_DEBUG_LOCKDEP) && defined(CONFIG_TRACE_IRQFLAGS)
	if (!debug_locks)
		return;

	if (irqs_disabled_flags(flags))
-->		DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled);
	else
		DEBUG_LOCKS_WARN_ON(!current->hardirqs_enabled);

and the callsite is:

void refrigerator(void)
{
	/* Hmm, should we be allowed to suspend when there are realtime
	   processes around? */
	long save;

-->	task_lock(current);
	if (freezing(current)) {
		frozen_process();
		task_unlock(current);
	} else {


I don't really know what lockdep is complaining about there.  I assume I'm
not supposed to, given that whoever wrote that couldn't be bothered
documenting any of it.

I _think_ it means that lockdep believes that local irqs are enabled
(according to its state tracking), only it turns out that they're not.



  reply	other threads:[~2007-05-12 10:08 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070430102837.748238000@linutronix.de>
2007-05-02  0:33 ` [patch 0/3] Clocksource / clockevent updates Andrew Morton
2007-05-02  6:09   ` Thomas Gleixner
2007-05-02  6:14     ` Andrew Morton
     [not found] ` <20070430102852.042964000@linutronix.de>
2007-05-05  7:34   ` [patch 3/3] clockevents: Fix resume logic Andrew Morton
2007-05-05 11:51     ` Ingo Molnar
2007-05-06 15:03       ` [patch 3/3] clockevents: Fix resume logic - updated version Thomas Gleixner
2007-05-08 10:37         ` Andrew Morton
2007-05-09  5:59         ` Andrew Morton
2007-05-09  7:10           ` Andrew Morton
2007-05-09  8:18             ` Thomas Gleixner
2007-05-09  8:22               ` Andrew Morton
2007-05-09  8:31                 ` Andrew Morton
2007-05-09  8:59                   ` Thomas Gleixner
2007-05-09 11:45                     ` Rafael J. Wysocki
2007-05-09 12:24                       ` Thomas Gleixner
2007-05-09 13:12                         ` Rafael J. Wysocki
2007-05-09 13:19                           ` Thomas Gleixner
2007-05-09 17:09                             ` Rafael J. Wysocki
2007-05-09 17:15                               ` Thomas Gleixner
2007-05-09 18:36                                 ` Rafael J. Wysocki
2007-05-09 20:45                                   ` Thomas Gleixner
2007-05-09 20:53                                     ` Rafael J. Wysocki
2007-05-09 21:26                                       ` Thomas Gleixner
2007-05-10  8:46                                         ` Andrew Morton
2007-05-10  8:55                                           ` Thomas Gleixner
2007-05-10  9:18                                             ` Andrew Morton
2007-05-10  9:27                                               ` Thomas Gleixner
2007-05-10 20:12                                                 ` Rafael J. Wysocki
2007-05-11 16:47                                                   ` Andrew Morton
2007-05-11 20:10                                                     ` Rafael J. Wysocki
2007-05-11 20:28                                                       ` Andrew Morton
2007-05-11 21:02                                                         ` Rafael J. Wysocki
2007-05-11 21:09                                                           ` Rafael J. Wysocki
2007-05-12  6:56                                                             ` Andrew Morton
2007-05-12  8:46                                                               ` Thomas Gleixner
2007-05-12  9:00                                                                 ` Andrew Morton
2007-05-12  9:18                                                                   ` Thomas Gleixner
2007-05-12 10:07                                                                     ` Andrew Morton [this message]
2007-05-12 11:44                                                                       ` Thomas Gleixner
2007-05-12 16:51                                                                         ` Andrew Morton
2007-05-12 17:01                                                                           ` Thomas Gleixner
2007-05-12 17:23                                                                             ` Andrew Morton
2007-05-12 19:36                                                                               ` Thomas Gleixner
2007-05-12 19:56                                                                               ` Thomas Gleixner
2007-05-13  1:11                                                                                 ` Andrew Morton
2007-05-13  8:07                                                                                   ` Thomas Gleixner
2007-05-13 16:48                                                                                     ` Thomas Gleixner
2007-05-13 19:09                                                                                       ` Andrew Morton
2007-05-13 20:07                                                                                         ` Ingo Molnar
2007-05-13 22:35                                                                                           ` Andrew Morton
2007-05-12 18:49                                                                             ` Thomas Gleixner
2007-05-12 11:52                                                                       ` Thomas Gleixner
2007-05-15 16:52                                                                       ` Pavel Machek
2007-05-13 16:12                                                                   ` Thomas Gleixner
2007-05-14  6:42                                                                     ` Andrew Morton
2007-05-14  6:58                                                                       ` Thomas Gleixner
2007-05-09 12:52                       ` Rafael J. Wysocki
2007-05-09 17:14                         ` Andrew Morton
2007-05-09 18:55                           ` Rafael J. Wysocki
     [not found] ` <20070430102851.987296000@linutronix.de>
2007-05-07  6:43   ` [patch 2/3] ACPI: Keep TSC stable, when lapic_timer_c2_ok is set Andrew Morton
2007-05-07  7:01     ` Thomas Gleixner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070512030754.90488f79.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=johnstul@us.ibm.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rjw@sisk.pl \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox