public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"Rafael J. Wysocki" <rjw@sisk.pl>, Greg KH <greg@kroah.com>,
	Kernel development list <linux-kernel@vger.kernel.org>,
	Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: broken suspend [Was: 2.6.24-rc2-mm1]
Date: Sun, 18 Nov 2007 13:42:18 +0100	[thread overview]
Message-ID: <4740332A.80002@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0711171649100.7748-100000@netrider.rowland.org>

Alan Stern napsal(a):
> On Sat, 17 Nov 2007, Rafael J. Wysocki wrote:
>> On Saturday, 17 of November 2007, Jiri Slaby wrote:
>>> On 11/16/2007 05:10 PM, Alan Stern wrote:
>>>> The thing to do is figure out which driver is causing the problem.
>>>> Jiri, try enabling CONFIG_DEBUG_DRIVER.  
>>> Sadly no output.

Nice update scripts wiped kern.* from syslog config file out, hence no
output before.

> Back to the main topic...  My system hibernates and resumes with no
> apparent problem.  Jiri, it looks like you'll have to do some debug
> tracing of the routines in drivers/base/power/main.c.

Beside this two nothing strange:

dpm_suspend: b 00:06
WARNING: at /home/l/latest/bughunt/kernel/resource.c:185 __release_resource()

Call Trace:
 [<ffffffff8023f7b5>] release_resource+0xb5/0xf0
 [<ffffffff8036cda0>] pnp_release_resources+0x70/0x130
 [<ffffffff8036db85>] pnp_stop_dev+0x45/0x90
 [<ffffffff8036c942>] pnp_bus_suspend+0x92/0xb0
 [<ffffffff803b9f73>] suspend_device+0x113/0x180
 [<ffffffff803ba330>] device_suspend+0x200/0x320
 [<ffffffff80266905>] suspend_devices_and_enter+0xa5/0x170
 [<ffffffff80266bd9>] enter_state+0x209/0x270
 [<ffffffff80266cef>] state_store+0xaf/0xf0
 [<ffffffff8032ca67>] kobj_attr_store+0x17/0x20
 [<ffffffff802e459e>] sysfs_write_file+0xce/0x140
 [<ffffffff80299cc7>] vfs_write+0xc7/0x170
 [<ffffffff8029a360>] sys_write+0x50/0x90
 [<ffffffff8020bcde>] system_call+0x7e/0x83

WARNING: at /home/l/latest/bughunt/kernel/resource.c:189 __release_resource()

Call Trace:
 [<ffffffff8023f7e0>] release_resource+0xe0/0xf0
 [<ffffffff8036cda0>] pnp_release_resources+0x70/0x130
 [<ffffffff8036db85>] pnp_stop_dev+0x45/0x90
 [<ffffffff8036c942>] pnp_bus_suspend+0x92/0xb0
 [<ffffffff803b9f73>] suspend_device+0x113/0x180
 [<ffffffff803ba330>] device_suspend+0x200/0x320
 [<ffffffff80266905>] suspend_devices_and_enter+0xa5/0x170
 [<ffffffff80266bd9>] enter_state+0x209/0x270
 [<ffffffff80266cef>] state_store+0xaf/0xf0
 [<ffffffff8032ca67>] kobj_attr_store+0x17/0x20
 [<ffffffff802e459e>] sysfs_write_file+0xce/0x140
 [<ffffffff80299cc7>] vfs_write+0xc7/0x170
 [<ffffffff8029a360>] sys_write+0x50/0x90
 [<ffffffff8020bcde>] system_call+0x7e/0x83
...
dpm_suspend: b 0000:00:1f.5
ACPI Error (psargs-0355): [FZHD] Namespace lookup failure, AE_NOT_FOUND
ACPI Error (psparse-0537): Method parse/execution failed
[\_SB_.PCI0.SAT1.CHN0._GTM] (Node FFFF81007D000220), AE_NOT_FOUND
ACPI Error (psargs-0355): [FZHD] Namespace lookup failure, AE_NOT_FOUND
ACPI Error (psparse-0537): Method parse/execution failed
[\_SB_.PCI0.SAT1.CHN1._GTM] (Node FFFF81007D000360), AE_NOT_FOUND



It's stuck at _cpu_down (enter_state -> suspend_devices_and_enter ->
disable_nonboot_cpus -> _cpu_down) after calling raw_notifier_call_chain

        printk("%s: s\n", __func__);
        /* Wait for it to sleep (leaving idle task). */
        while (!idle_cpu(cpu))
                yield();

        printk("%s: t\n", __func__);
        /* This actually kills the CPU. */
        __cpu_die(cpu);

        printk("%s: u\n", __func__);
        BUBAK=1;
        /* CPU is completely dead: tell everyone.  Too late to complain. */
        if (raw_notifier_call_chain(&cpu_chain, CPU_DEAD | mod,
                                    hcpu) == NOTIFY_BAD)
                BUG();
        BUBAK=0;

        printk("%s: v\n", __func__);


See shot of prints here:
http://www.fi.muni.cz/~xslaby/sklad/susp_hang1.png

notifier_call_chain looks like:
        while (nb && nr_to_call) {
                next_nb = rcu_dereference(nb->next);
                ret = nb->notifier_call(nb, val, v);
                if (unlikely(BUBAK && cnt < 20 && (ret != lastr ||
                                lastp != nb->notifier_call))) {
                        printk("%s: c %p %d\n", __func__, nb->notifier_call,
                                        ret);
                        lastr = ret;
                        lastp = nb->notifier_call;
                        cnt++;
                }

                if (nr_calls)
                        (*nr_calls)++;

                if ((ret & NOTIFY_STOP_MASK) == NOTIFY_STOP_MASK)
                        break;
                nb = next_nb;
                nr_to_call--;
        }

System.map is here if you are curoius what are the pointers from the snapshot:
http://www.fi.muni.cz/~xslaby/sklad/System.map

regards,
-- 
http://www.fi.muni.cz/~xslaby/            Jiri Slaby
faculty of informatics, masaryk university, brno, cz

  reply	other threads:[~2007-11-18 12:42 UTC|newest]

Thread overview: 148+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-14  1:59 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  3:12 ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  3:49   ` 2.6.24-rc2-mm1 Greg KH
2007-11-14  4:39     ` 2.6.24-rc2-mm1 Matthew Dharm
2007-11-14  5:33       ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  8:23         ` 2.6.24-rc2-mm1 Matthew Dharm
2007-11-14  9:23           ` 2.6.24-rc2-mm1 Gabriel C
2007-11-15 17:15             ` 2.6.24-rc2-mm1 Matthew Dharm
2007-11-15 18:14               ` 2.6.24-rc2-mm1 Boaz Harrosh
2007-11-15 21:42                 ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  4:18   ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14 20:29     ` 2.6.24-rc2-mm1 mark gross
2007-11-14 20:40       ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-15 17:22         ` 2.6.24-rc2-mm1 mark gross
2007-11-15 20:05           ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-15 17:23         ` 2.6.24-rc2-mm1 mark gross
2007-11-15 19:19         ` 2.6.24-rc2-mm1 mark gross
2007-11-15 21:40           ` 2.6.24-rc2-mm1 Gabriel C
2007-11-15 22:56           ` 2.6.24-rc2-mm1 mark gross
2007-11-15 23:01           ` [PATCH] pm-qos-remove-locks-around-blocking-notifier.patch ... was 2.6.24-rc2-mm1 mark gross
2007-11-14  3:40 ` [PATCH] Fix build failure when CONFIG_INFINIBAND_IPOIB_CM is not defined Tony Breeds
2007-11-15 14:49   ` Mel Gorman
2007-11-14  3:41 ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  4:55   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  5:10     ` 2.6.24-rc2-mm1 Ulrich Drepper
2007-11-14  5:27     ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  5:45     ` 2.6.24-rc2-mm1 Zan Lynx
2007-11-14  6:18 ` 2.6.24-rc2-mm1 Dave Young
2007-11-14  6:38   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  6:47     ` 2.6.24-rc2-mm1 Dave Young
2007-11-14  8:41       ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  9:32         ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  9:36         ` 2.6.24-rc2-mm1 Dave Young
2007-11-14 16:59           ` 2.6.24-rc2-mm1 Greg KH
2007-11-14 18:38             ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-14 19:19               ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 21:27                 ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-15  1:01                   ` 2.6.24-rc2-mm1 Dave Young
2007-11-15  2:38                     ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-15  3:11                       ` 2.6.24-rc2-mm1 Dave Young
2007-11-15  8:14                       ` 2.6.24-rc2-mm1 Dave Young
2007-11-15  8:51                         ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-15 17:06                         ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 17:16                           ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-15 18:59                             ` 2.6.24-rc2-mm1 Greg KH
2007-11-14  6:32 ` [PATCH] [2.6.24-rc2-mm1] Fix dependencies for FSL_DMA Olof Johansson
2007-11-14  8:56 ` 2.6.24-rc2-mm1 -- mkfs failing on variety of fs types Andy Whitcroft
2007-11-14 10:28   ` Andrew Morton
2007-11-14 10:46     ` Dmitry Monakhov
2007-11-14 14:40 ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 14:59   ` 2.6.24-rc2-mm1 Matthias Urlichs
2007-11-14 15:04     ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 15:43       ` 2.6.24-rc2-mm1 Matthias Urlichs
2007-11-14 15:49         ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 16:29 ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 16:39   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14 16:40     ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 17:02       ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 17:38         ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 18:19         ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 19:23           ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 21:41             ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-15 21:53               ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-15 22:04                 ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-16  0:39             ` 2.6.24-rc2-mm1 Dave Young
2007-11-16  0:49               ` 2.6.24-rc2-mm1 Greg KH
2007-11-16  0:55                 ` 2.6.24-rc2-mm1 Dave Young
2007-11-14 19:16 ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-14 20:29   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14 20:55     ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-14 22:48     ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-15 17:36       ` 2.6.24-rc2-mm1 Jan Blunck
2007-11-15 18:36         ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-15 21:24         ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-15 21:34           ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-16  5:29             ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-16 14:03           ` 2.6.24-rc2-mm1 Jan Blunck
2007-11-16 20:11             ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-14 20:24 ` broken suspend [Was: 2.6.24-rc2-mm1] Jiri Slaby
2007-11-14 20:36   ` Andrew Morton
2007-11-14 21:48   ` Rafael J. Wysocki
2007-11-15 23:59     ` Jiri Slaby
2007-11-16  0:38       ` Greg KH
2007-11-16 16:10         ` Alan Stern
2007-11-17 15:08           ` Jiri Slaby
2007-11-17 15:12             ` Jiri Slaby
2007-11-17 16:13             ` Alan Stern
2007-11-17 20:37             ` Rafael J. Wysocki
2007-11-17 21:58               ` Alan Stern
2007-11-18 12:42                 ` Jiri Slaby [this message]
2007-11-18 13:06                   ` Jiri Slaby
2007-11-18 13:42                     ` Rafael J. Wysocki
2007-11-18 13:53                       ` Jiri Slaby
2007-11-18 15:03                         ` Rafael J. Wysocki
2007-11-18 14:49                           ` Jiri Slaby
2007-11-18 15:23                             ` Rafał J. Wysocki
2007-11-18 15:15                               ` Jiri Slaby
2007-11-18 17:07                                 ` Alan Stern
2007-11-18 19:09                                   ` Jiri Slaby
2007-11-18 22:27                                     ` Jiri Slaby
2007-11-19  3:04                                       ` Alan Stern
2007-11-19 20:01                                         ` Rudolf Marek
2007-11-19 20:27                                           ` Alan Stern
2007-11-20 13:15                                             ` [lm-sensors] " Mark M. Hoffman
2007-11-21  0:00                                               ` Rafael J. Wysocki
2007-11-21 15:54                                                 ` Alan Stern
2007-11-21 19:19                                                   ` Rafael J. Wysocki
2007-11-26  8:57                                                 ` Jiri Slaby
2007-11-19 21:53                                           ` Rafael J. Wysocki
2007-11-18 22:27                                     ` Rafael J. Wysocki
2007-11-18 22:12                                       ` Jiri Slaby
2007-11-18 22:42                                         ` Rafael J. Wysocki
2007-11-15  4:29 ` 2.6.24-rc2-mm1 (memory hotplug x86_64/vmemmap fix) KAMEZAWA Hiroyuki
2007-11-15  5:39   ` Kamalesh Babulal
2007-11-15  8:56   ` Andrew Morton
2007-11-15  9:18     ` KAMEZAWA Hiroyuki
2007-11-15 10:30       ` [PATCH][2.6.24-rc2-mm1] memory hotplug x86_64 fix [0/3] KAMEZAWA Hiroyuki
2007-11-15 10:33         ` [PATCH][2.6.24-rc2-mm1] memory hotplug x86_64 fix [1/3] memory_add_physaddr_to_nid export for acpi memhotplug.ko KAMEZAWA Hiroyuki
2007-11-15 10:35         ` [PATCH][2.6.24-rc2-mm1] memory hotplug x86_64 fix [2/3] fix section mismatch in vmammap_allock_block KAMEZAWA Hiroyuki
2007-11-16  0:53           ` Andrew Morton
2007-11-16  4:45             ` KAMEZAWA Hiroyuki
2007-11-15 10:36         ` [PATCH][2.6.24-rc2-mm1] memory hotplug x86_64 fix [3/3] fix section mismatch in init_memory_mapping KAMEZAWA Hiroyuki
2007-11-16  0:59           ` Andrew Morton
2007-11-16  5:09             ` KAMEZAWA Hiroyuki
2007-11-15  9:39   ` 2.6.24-rc2-mm1 (memory hotplug x86_64/vmemmap fix) Andy Whitcroft
2007-11-15 10:05     ` KAMEZAWA Hiroyuki
2007-11-15 10:02 ` 2.6.24-rc2-mm1 -- strange apparent network failures Andy Whitcroft
2007-11-16  0:28   ` Kevin Winchester
2007-11-16  0:44     ` Andrew Morton
2007-11-16  1:01       ` Kevin Winchester
2007-11-16  1:09         ` Andrew Morton
2007-11-17  5:16       ` Andrew Morgan
2007-11-17 12:48         ` Kevin Winchester
2007-11-17 23:52           ` Andrew Morgan
2007-11-18  0:50             ` Kevin Winchester
2007-11-18  1:17               ` Kevin Winchester
2007-11-18  1:57               ` Andrew Morgan
2007-11-18  1:23             ` Kevin Winchester
2007-11-17 13:57         ` Andy Whitcroft
2007-11-16  1:21     ` Tom
2007-11-15 10:50 ` 2.6.24-rc2-mm1 -- QLogics ISP1020 gone missing Andy Whitcroft
2007-11-15 19:25 ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 20:47   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-16  0:01     ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 22:25 ` 2.6.24-rc2-mm1: undefined reference to `local_apic_timer_c2_ok' Mariusz Kozlowski
2007-11-15 22:49   ` Len Brown
2007-11-15 23:35     ` Mariusz Kozlowski
2007-11-15 22:34 ` [PATCH] parisc: balance parenthesis in pte_free_kernel() Mariusz Kozlowski

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=4740332A.80002@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rjw@sisk.pl \
    --cc=stern@rowland.harvard.edu \
    /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