From: Alexey Starikovskiy <astarikovskiy@suse.de>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>,
Alan Jenkins <sourcejedi.lkml@googlemail.com>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Len Brown <lenb@kernel.org>,
pm list <linux-pm@lists.linux-foundation.org>,
Thomas Renninger <trenn@suse.de>,
Matthew Garrett <mjg59@srcf.ucam.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][RFT][PATCH] ACPI: Protection from suspending in the middle of EC transaction
Date: Mon, 01 Feb 2010 13:22:55 +0300 [thread overview]
Message-ID: <4B66AB7F.7050908@suse.de> (raw)
In-Reply-To: <20100201094643.GB8740@khazad-dum.debian.net>
Henrique de Moraes Holschuh пишет:
> On Sun, 31 Jan 2010, Maxim Levitsky wrote:
>> Unfortunately, this patch even causes regressions on my notebook (it
>> survive 63 hibernate cycles), but now I battery driver reports 'battery
>> absent', backlight driver reports 0 brightness, but reload helped.
>
> ...
>
>> I think that not only _PTS ans _WAK are problematic. What about other
>> ACPI drivers that start accessing the EC before it is resumed?
>> I think that these cause the problems I observe.
>
> ACPI drivers might access the EC (even indirectly, through the DSDT). And
> platform drivers do often access the EC both at suspend and resume time.
Actually, only SBS and thinkpad-acpi access EC directly. All others go through
DSDT for access. Still, stopping EC in .suspend is too early, IMHO...
>
> This needs some sort of strong ordering, the EC must suspend last, and
> resume first (as seen by any ACPI and ACPI-aware drivers such as libata,
> some platform drivers, etc). If EC interrupts are a problem, maybe it can
> be kicked to poll mode for the suspend/resume transition?
It's this way already for about a year now... The problem is that EC driver might be
stopped in middle of the transaction, thus leaving EC in unknown state for BIOS or
switch-over kernel.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Alexey Starikovskiy <astarikovskiy@suse.de>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>,
Alan Jenkins <sourcejedi.lkml@googlemail.com>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Len Brown <lenb@kernel.org>,
pm list <linux-pm@lists.linux-foundation.org>,
Thomas Renninger <trenn@suse.de>,
Matthew Garrett <mjg59@srcf.ucam.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][RFT][PATCH] ACPI: Protection from suspending in the middle of EC transaction
Date: Mon, 01 Feb 2010 13:22:55 +0300 [thread overview]
Message-ID: <4B66AB7F.7050908@suse.de> (raw)
In-Reply-To: <20100201094643.GB8740@khazad-dum.debian.net>
Henrique de Moraes Holschuh пишет:
> On Sun, 31 Jan 2010, Maxim Levitsky wrote:
>> Unfortunately, this patch even causes regressions on my notebook (it
>> survive 63 hibernate cycles), but now I battery driver reports 'battery
>> absent', backlight driver reports 0 brightness, but reload helped.
>
> ...
>
>> I think that not only _PTS ans _WAK are problematic. What about other
>> ACPI drivers that start accessing the EC before it is resumed?
>> I think that these cause the problems I observe.
>
> ACPI drivers might access the EC (even indirectly, through the DSDT). And
> platform drivers do often access the EC both at suspend and resume time.
Actually, only SBS and thinkpad-acpi access EC directly. All others go through
DSDT for access. Still, stopping EC in .suspend is too early, IMHO...
>
> This needs some sort of strong ordering, the EC must suspend last, and
> resume first (as seen by any ACPI and ACPI-aware drivers such as libata,
> some platform drivers, etc). If EC interrupts are a problem, maybe it can
> be kicked to poll mode for the suspend/resume transition?
It's this way already for about a year now... The problem is that EC driver might be
stopped in middle of the transaction, thus leaving EC in unknown state for BIOS or
switch-over kernel.
next prev parent reply other threads:[~2010-02-01 10:22 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-30 23:29 [RFC][RFT][PATCH] ACPI: Protection from suspending in the middle of EC transaction Rafael J. Wysocki
2010-01-31 14:11 ` Alan Jenkins
2010-01-31 14:11 ` Alan Jenkins
2010-01-31 14:11 ` Alan Jenkins
2010-01-31 17:09 ` Maxim Levitsky
2010-02-01 9:46 ` Henrique de Moraes Holschuh
2010-02-01 10:22 ` Alexey Starikovskiy
2010-02-01 10:22 ` Alexey Starikovskiy [this message]
2010-02-01 10:22 ` Alexey Starikovskiy
2010-02-01 22:42 ` Rafael J. Wysocki
2010-02-01 22:42 ` Rafael J. Wysocki
2010-02-02 20:23 ` [PATCH] ACPI / EC: Remover race between EC driver and suspend process (was: Re: [RFC][RFT][PATCH] ACPI: Protection from suspending in the middle of EC transaction) Rafael J. Wysocki
2010-02-02 20:23 ` Rafael J. Wysocki
2010-02-02 20:23 ` Rafael J. Wysocki
2010-02-01 22:42 ` [RFC][RFT][PATCH] ACPI: Protection from suspending in the middle of EC transaction Rafael J. Wysocki
2010-02-01 9:46 ` Henrique de Moraes Holschuh
2010-01-31 17:09 ` Maxim Levitsky
2010-01-31 20:41 ` Maxim Levitsky
2010-01-31 20:41 ` Maxim Levitsky
2010-01-31 21:09 ` Rafael J. Wysocki
2010-01-31 22:31 ` Rafael J. Wysocki
2010-01-31 22:31 ` Rafael J. Wysocki
2010-01-31 21:09 ` Rafael J. Wysocki
2010-02-03 0:32 ` [PATCH] ACPI / EC: Remove race between EC driver and suspend process (rev. 2) (was: Re: [RFC][RFT][PATCH] ACPI: Protection from suspending in the middle of EC transaction) Rafael J. Wysocki
2010-02-04 0:33 ` [PATCH] ACPI / EC: Remove race between EC driver and suspend process (rev. 3) Rafael J. Wysocki
2010-02-04 0:33 ` Rafael J. Wysocki
2010-02-03 0:32 ` [PATCH] ACPI / EC: Remove race between EC driver and suspend process (rev. 2) (was: Re: [RFC][RFT][PATCH] ACPI: Protection from suspending in the middle of EC transaction) Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2010-01-30 23:29 [RFC][RFT][PATCH] ACPI: Protection from suspending in the middle of EC transaction Rafael J. Wysocki
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=4B66AB7F.7050908@suse.de \
--to=astarikovskiy@suse.de \
--cc=hmh@hmh.eng.br \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=maximlevitsky@gmail.com \
--cc=mjg59@srcf.ucam.org \
--cc=rjw@sisk.pl \
--cc=sourcejedi.lkml@googlemail.com \
--cc=trenn@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.