public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: TJ <linux@tjworld.net>
To: linux-acpi <linux-acpi@vger.kernel.org>
Subject: Re: [patch 2.6.21-rc5-git 2/3] ACPI driver model flags and platform_enable_wake()
Date: Wed, 25 Jul 2007 22:18:51 +0100	[thread overview]
Message-ID: <1185398331.10845.23.camel@bagoas> (raw)
In-Reply-To: <200707251304.03191.david-b@pacbell.net>

On Wed, 2007-07-25 at 13:04 -0700, David Brownell wrote:

> As I recall, Mattia Dongili <malattia@linux.it> reported an error
> with a Vaio laptop; it would wake immediately after entering STR.
> It didn't reproduce for anyone else.  But that was eventually tracked
> down to a bug in iwl3945, which has since been fixed (yes?).

I'm not sure if this might inform your thinking here but today I've just
tracked down a similar issue on another Sony Vaio (PCG-SRX51) where S3
STR immediately wakes.

I enabled ACPI_FUTURE_USAGE and called acpi_get_event_status()
immediately upon resume (before the wake flag is cleared) and iterated
each wake event.

I discovered that the PM timer event is the reason the system resumes
but so far haven't discovered why. I have a tenuous theory it could be
related to the kernel timer using the ACPI PM Timer. I tried disabling
that with the boot parameter 'nopmtimer' but that didn't help.

To test this I'm currently building a kernel that disables the PM Timer
wake event during suspend and re-enables it on resume, something the
ACPI specification hints at in section 4.7.2.1.

I'm not sure if this problem occurs on a wider range of systems than the
Sony since at present, without a debug kernel with ACPI_FUTURE_USAGE and
specific additional checks, there is no way to know the reason a system
resumed.

I'm planning on submitting a patch to log the wake event since it would
greatly enhance our abilities to diagnose reasons behind these
situations if the log showed it without a custom-kernel build.

TJ.


  reply	other threads:[~2007-07-25 21:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-05 19:49 [patch 2.6.21-rc5-git 2/3] ACPI driver model flags and platform_enable_wake() David Brownell
2007-07-25 20:04 ` David Brownell
2007-07-25 21:18   ` TJ [this message]
2007-07-26  7:07   ` Mattia Dongili

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=1185398331.10845.23.camel@bagoas \
    --to=linux@tjworld.net \
    --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