mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: "Vegard Nossum" <vegard.nossum@gmail.com>
Cc: "Dmitry Adamushko" <dmitry.adamushko@gmail.com>,
	"Max Krasnyanskiy" <maxk@qualcomm.com>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	"Pavel Machek" <pavel@ucw.cz>
Subject: Re: latest -git: hibernate: possible circular locking dependency detected
Date: Thu, 21 Aug 2008 21:54:23 +0200	[thread overview]
Message-ID: <200808212154.24600.rjw@sisk.pl> (raw)
In-Reply-To: <19f34abd0808211241l54863821n8e978682c9d43dc7@mail.gmail.com>

On Thursday, 21 of August 2008, Vegard Nossum wrote:
> On Thu, Aug 21, 2008 at 9:31 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> > Now, what is the source of the "SysRq : Power Off" in the dmesg you posted?
> 
> The only suggestion I can make is that SysRq can be triggered remotely
> with serial console (COM1/ttyS0), because I know that the serial line
> is producing junk in the other direction (i.e. reading from /dev/ttyS0
> on the kernel which has been booted with console=ttyS0 reads junk,
> sometimes things that look like pieces of dmesg). Other than that, I
> have no idea. The SysRq thing seems to only happen after I've entered
> "echo disk > /sys/power/state" too.
> 
> (Also see my email at http://lkml.org/lkml/2008/8/21/409)
> 
> >
> > Also, have you tried to hibernate with the "platform" setting selected in
> > "cat /sys/power/disk" and if you have, does the lockdep warning appear in this
> > case?
> 
> Yes, I have tried it. In fact, I believe the lockdep warning in the
> boot-log comes with such a setting (ACPI was enabled; isn't platform
> the default in that case?). At least it looked to be selected when
> acpi is enabled:

Yes, it is the default in that case.

> > # cat /sys/power/disk
> > [platform] test testproc shutdown reboot

The problem is, in the case of the "platform" hibernation, kernel_power_off()
is not called at all (ACPI mechanism to enter the S4 sleep state is used
instead).  Apart from this, there should be lines like:

"ACPI: Preparing to enter system sleep state S4"

in the dmesg log in that case and they are not present in your dmesg.

Your dmesg looks like a mixture of hibernation in the "shutdown" mode with
"emergency" shutdown caused by "SysRq : Power Off".

Thanks,
Rafael

  reply	other threads:[~2008-08-21 19:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-21 15:04 Vegard Nossum
2008-08-21 17:38 ` Dmitry Adamushko
2008-08-21 17:59   ` Vegard Nossum
2008-08-22  9:18     ` Pavel Machek
2008-08-21 18:03   ` Oleg Nesterov
2008-08-21 18:22 ` Rafael J. Wysocki
2008-08-21 18:31   ` Vegard Nossum
2008-08-21 18:39     ` Vegard Nossum
2008-08-21 19:07       ` Rafael J. Wysocki
2008-08-21 19:14         ` Vegard Nossum
2008-08-21 19:31           ` Rafael J. Wysocki
2008-08-21 19:41             ` Vegard Nossum
2008-08-21 19:54               ` Rafael J. Wysocki [this message]
2008-08-22  8:55 ` Pavel Machek
2008-08-22 19:09   ` Vegard Nossum

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=200808212154.24600.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=dmitry.adamushko@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxk@qualcomm.com \
    --cc=pavel@ucw.cz \
    --cc=vegard.nossum@gmail.com \
    /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

all inboxes | Powered by JetHome®