public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
To: linux-acpi@vger.kernel.org
Subject: Machine shutdown after resume from S3
Date: Wed, 20 Feb 2008 18:37:22 -0300	[thread overview]
Message-ID: <200802201837.22443.herton@mandriva.com.br> (raw)

I have here an Intel Classmate hardware sample, and I have a weird problem 
with suspend to ram, the machine does a power off when resuming.

I isolated the problem to the button acpi module, without loading it (or just 
removing it before doing a s2ram) I don't get the problem. In the specific 
machine I have here I can only resume it pressing the power button, so I 
think this is related.

I started looking into the kernel code and did some tests. The first thing I 
tried just as a test was to disable the code in acpi_button_notify function. 
As expected it stopped to send the power button key events 
to /proc/acpi/event, but I still got the same s2ram issues. But if I disable 
acpi_install_fixed_event_handler calls in acpi_button_install_notify_handlers 
the power off issue in s2ram was gone, of course also with power button not
notifying anything anymore :), but this was just a test.

After this tests then I went further to try to track down the problem and I 
saw acpi_ev_fixed_event_dispatch, that is the function that will call 
acpi_button_notify_fixed. First thing I noted: the comment about 
acpi_ev_fixed_event_dispatch says it will return INTERRUPT_HANDLED or 
INTERRUPT_NOT_HANDLED, but acpi_button_notify_fixed return AE_OK, is this 
right (comment is outdated) or am I missing something? Anyway I changed AE_OK 
to ACPI_INTERRUPT_HANDLED but this didn't change nothing. In the end I 
stopped there, doesn't seem to be anything wrong with the code at all, I also 
took a look at acpi_ev_fixed_event_detect and other code related to the table 
of fixed events (acpi_gbl_fixed_event_handlers), but didn't got more clues. 
Could be this a bios issue, or there is some hints to what I can try to look 
and prove that it's bios or code related?

PS.: with netconsole I don't get any message before power off after resume, I 
tried it to get more hints.

--
[]'s
Herton

             reply	other threads:[~2008-02-20 21:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-20 21:37 Herton Ronaldo Krzesinski [this message]
2008-02-21 17:46 ` Machine shutdown after resume from S3 Andrey Borzenkov
2008-02-21 18:43   ` Andrey Borzenkov
2008-02-21 19:02     ` Matthew Garrett
2008-02-21 19:45       ` Andrey Borzenkov
2008-02-21 22:21   ` Herton Ronaldo Krzesinski

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=200802201837.22443.herton@mandriva.com.br \
    --to=herton@mandriva.com.br \
    --cc=linux-acpi@vger.kernel.org \
    /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