From: Pavel Machek <pavel@suse.cz>
To: Pavel Machek <pavel@suse.cz>,
Dumitru Ciobarcianu <swsusp-devel@lnx.ro>,
acpi-devel@lists.sourceforge.net,
suspend2-devel@lists.suspend2.net
Subject: Re: [ACPI] Re: Cause of Suspend2 resume failures on Toshiba laptops
Date: Sun, 6 Mar 2005 13:33:35 +0100 [thread overview]
Message-ID: <20050306123334.GN3485@openzaurus.ucw.cz> (raw)
In-Reply-To: <20050305203533.GI4042@blackham.com.au>
Hi!
> > Perhaps you should fix that, too? It is going to cause ugly
> > perfrmance problems.
>
> Yep, been looking into it, and I think I've got it. The GPE in
> question is fired periodically, about every 5 seconds. It fires when
> suspending but kacpid is stopped, so the GPE is simply disabled and
> never serviced. However, the state of it being disabled is recorded
> in the atomic copy.
>
> Upon resume, after restoring the atomic copy, the code at the top of
> acpi_ev_disable_gpe believes that the GPE is already disabled (as it
> was when we suspended) even though it's not. Hardware state is out
> of sync with what the kernel thinks and badness ensues. The culprit
> difference between 2.6.8 and 2.6.9-rc1 is that 2.6.8 disabled the
> GPE unconditionally, 2.6.9-rc1 checks against its last known state
> which is incorrect upon resuming.
>
> Removing the check resolves this issue (patch attached). Is this an
> adequate fix?
Does not removing of the check cause problems elsewhere? Bring it up
on linix-acpi lists...
Obvious solution would be to add suspend/resume routines to acpi,
and properly set the flag during resume.
> So, combining this patch with the previous kacpid NOFREEZE patch...
> Does this make people happy? :) (And should it be submitted via Len
> or akpm?)
Len.
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms
next prev parent reply other threads:[~2005-03-06 12:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050304175058.GA4042@blackham.com.au>
[not found] ` <1110012298.6028.10.camel@DustPuppy.LNX.RO>
[not found] ` <1110012298.6028.10.camel-NCEiQXzLmfTIN9oMcCV+pg@public.gmane.org>
2005-03-05 10:02 ` [Suspend2-devel] Cause of Suspend2 resume failures on Toshiba laptops Bernard Blackham
[not found] ` <20050305100254.GH4042@blackham.com.au>
[not found] ` <20050305100254.GH4042-4vSAtV5O1nc0n/F98K4Iww@public.gmane.org>
2005-03-05 12:21 ` Dumitru Ciobarcianu
2005-03-05 17:56 ` Pavel Machek
2005-03-05 20:35 ` [ACPI] " Bernard Blackham
2005-03-06 12:33 ` Pavel Machek [this message]
[not found] ` <20050305203533.GI4042-4vSAtV5O1nc0n/F98K4Iww@public.gmane.org>
2005-03-07 16:48 ` Re: [Suspend2-devel] " John M Flinchbaugh
2005-03-07 16:54 ` [ACPI] " Bernard Blackham
2005-03-08 3:25 Re: [Suspend2-devel] " Li, Shaohua
2005-03-08 5:28 ` [ACPI] " Nigel Cunningham
2005-03-08 6:12 ` Li Shaohua
2005-03-08 6:55 ` Nigel Cunningham
-- strict thread matches above, loose matches on Subject: below --
2005-03-08 6:58 Li, Shaohua
2005-03-08 9:47 ` Bernard Blackham
2005-03-08 7:24 Li, Shaohua
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=20050306123334.GN3485@openzaurus.ucw.cz \
--to=pavel@suse.cz \
--cc=acpi-devel@lists.sourceforge.net \
--cc=suspend2-devel@lists.suspend2.net \
--cc=swsusp-devel@lnx.ro \
/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