From: Alexey Starikovskiy <astarikovskiy@suse.de>
To: Pavel Machek <pavel@suse.cz>
Cc: LKML <linux-kernel@vger.kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
pm list <linux-pm@lists.linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Johannes Berg <johannes@sipsolutions.net>
Subject: Re: suspend slow in 2.6.25-rc6 (was Re: Suspend and hibernation patchset against -rc6)
Date: Wed, 19 Mar 2008 02:45:12 +0300 [thread overview]
Message-ID: <47E05408.7000003@suse.de> (raw)
In-Reply-To: <20080318232037.GA1670@elf.ucw.cz>
[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]
Pavel Machek wrote:
> On Tue 2008-03-18 10:31:28, Linus Torvalds wrote:
>>
>> On Tue, 18 Mar 2008, Pavel Machek wrote:
>>> On Tue 2008-03-18 14:06:42, Pavel Machek wrote:
>>>> Confirmed, suspend slowness is in 2.6.25-rc6, too. It takes 15 seconds
>>>> to suspend/resume, while 2.6.24 takes 9. Thinkpad x60.
>>> IIRC 2.6.25-rc5 was "fast".
>> Can you bisect it? There's only 343 commits between -rc5 and -rc6, so it
>> should not take too long to check which commit it is. Even if it should
>> take 9 reboots to bisect it entirely, going just five or six will likely
>> narrow it down sufficiently that we can probably guess fairly well what
>> it's about.
>
> Slowdown is fixed by this patch:
I think only this part is relevant here. But yes, I agree that the whole
patch should be reverted.
> @@ -230,7 +227,6 @@ static int acpi_ec_wait(struct acpi_ec *
> while (time_before(jiffies, delay)) {
> if (acpi_ec_check_status(ec, event))
> goto end;
> - msleep(5);
> }
> }
> pr_err(PREFIX "acpi_ec_wait timeout,"
Thanks,
Alex.
[-- Attachment #2: x-rev.patch --]
[-- Type: text/x-patch, Size: 1674 bytes --]
ACPI: EC: Revert storm handler patch
From: Alexey Starikovskiy <astarikovskiy@suse.de>
Patch have caused several new troubles, so just revert it for now.
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
---
drivers/acpi/ec.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index e7e197e..7222a18 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -129,7 +129,6 @@ static struct acpi_ec {
struct mutex lock;
wait_queue_head_t wait;
struct list_head list;
- atomic_t irq_count;
u8 handlers_installed;
} *boot_ec, *first_ec;
@@ -182,8 +181,6 @@ static int acpi_ec_wait(struct acpi_ec *ec, enum ec_event event, int force_poll)
{
int ret = 0;
- atomic_set(&ec->irq_count, 0);
-
if (unlikely(event == ACPI_EC_EVENT_OBF_1 &&
test_bit(EC_FLAGS_NO_OBF1_GPE, &ec->flags)))
force_poll = 1;
@@ -230,7 +227,6 @@ static int acpi_ec_wait(struct acpi_ec *ec, enum ec_event event, int force_poll)
while (time_before(jiffies, delay)) {
if (acpi_ec_check_status(ec, event))
goto end;
- msleep(5);
}
}
pr_err(PREFIX "acpi_ec_wait timeout,"
@@ -533,13 +529,6 @@ static u32 acpi_ec_gpe_handler(void *data)
struct acpi_ec *ec = data;
pr_debug(PREFIX "~~~> interrupt\n");
- atomic_inc(&ec->irq_count);
- if (atomic_read(&ec->irq_count) > 5) {
- pr_err(PREFIX "GPE storm detected, disabling EC GPE\n");
- acpi_disable_gpe(NULL, ec->gpe, ACPI_ISR);
- clear_bit(EC_FLAGS_GPE_MODE, &ec->flags);
- return ACPI_INTERRUPT_HANDLED;
- }
clear_bit(EC_FLAGS_WAIT_GPE, &ec->flags);
if (test_bit(EC_FLAGS_GPE_MODE, &ec->flags))
wake_up(&ec->wait);
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Alexey Starikovskiy <astarikovskiy@suse.de>
To: Pavel Machek <pavel@suse.cz>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
pm list <linux-pm@lists.linux-foundation.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Alan Stern <stern@rowland.harvard.edu>,
David Brownell <david-b@pacbell.net>, Greg KH <greg@kroah.com>,
Len Brown <lenb@kernel.org>, LKML <linux-kernel@vger.kernel.org>,
Shaohua Li <shaohua.li@intel.com>,
Johannes Berg <johannes@sipsolutions.net>
Subject: Re: suspend slow in 2.6.25-rc6 (was Re: Suspend and hibernation patchset against -rc6)
Date: Wed, 19 Mar 2008 02:45:12 +0300 [thread overview]
Message-ID: <47E05408.7000003@suse.de> (raw)
In-Reply-To: <20080318232037.GA1670@elf.ucw.cz>
[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]
Pavel Machek wrote:
> On Tue 2008-03-18 10:31:28, Linus Torvalds wrote:
>>
>> On Tue, 18 Mar 2008, Pavel Machek wrote:
>>> On Tue 2008-03-18 14:06:42, Pavel Machek wrote:
>>>> Confirmed, suspend slowness is in 2.6.25-rc6, too. It takes 15 seconds
>>>> to suspend/resume, while 2.6.24 takes 9. Thinkpad x60.
>>> IIRC 2.6.25-rc5 was "fast".
>> Can you bisect it? There's only 343 commits between -rc5 and -rc6, so it
>> should not take too long to check which commit it is. Even if it should
>> take 9 reboots to bisect it entirely, going just five or six will likely
>> narrow it down sufficiently that we can probably guess fairly well what
>> it's about.
>
> Slowdown is fixed by this patch:
I think only this part is relevant here. But yes, I agree that the whole
patch should be reverted.
> @@ -230,7 +227,6 @@ static int acpi_ec_wait(struct acpi_ec *
> while (time_before(jiffies, delay)) {
> if (acpi_ec_check_status(ec, event))
> goto end;
> - msleep(5);
> }
> }
> pr_err(PREFIX "acpi_ec_wait timeout,"
Thanks,
Alex.
[-- Attachment #2: x-rev.patch --]
[-- Type: text/x-patch, Size: 1674 bytes --]
ACPI: EC: Revert storm handler patch
From: Alexey Starikovskiy <astarikovskiy@suse.de>
Patch have caused several new troubles, so just revert it for now.
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
---
drivers/acpi/ec.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index e7e197e..7222a18 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -129,7 +129,6 @@ static struct acpi_ec {
struct mutex lock;
wait_queue_head_t wait;
struct list_head list;
- atomic_t irq_count;
u8 handlers_installed;
} *boot_ec, *first_ec;
@@ -182,8 +181,6 @@ static int acpi_ec_wait(struct acpi_ec *ec, enum ec_event event, int force_poll)
{
int ret = 0;
- atomic_set(&ec->irq_count, 0);
-
if (unlikely(event == ACPI_EC_EVENT_OBF_1 &&
test_bit(EC_FLAGS_NO_OBF1_GPE, &ec->flags)))
force_poll = 1;
@@ -230,7 +227,6 @@ static int acpi_ec_wait(struct acpi_ec *ec, enum ec_event event, int force_poll)
while (time_before(jiffies, delay)) {
if (acpi_ec_check_status(ec, event))
goto end;
- msleep(5);
}
}
pr_err(PREFIX "acpi_ec_wait timeout,"
@@ -533,13 +529,6 @@ static u32 acpi_ec_gpe_handler(void *data)
struct acpi_ec *ec = data;
pr_debug(PREFIX "~~~> interrupt\n");
- atomic_inc(&ec->irq_count);
- if (atomic_read(&ec->irq_count) > 5) {
- pr_err(PREFIX "GPE storm detected, disabling EC GPE\n");
- acpi_disable_gpe(NULL, ec->gpe, ACPI_ISR);
- clear_bit(EC_FLAGS_GPE_MODE, &ec->flags);
- return ACPI_INTERRUPT_HANDLED;
- }
clear_bit(EC_FLAGS_WAIT_GPE, &ec->flags);
if (test_bit(EC_FLAGS_GPE_MODE, &ec->flags))
wake_up(&ec->wait);
next prev parent reply other threads:[~2008-03-18 23:45 UTC|newest]
Thread overview: 87+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 0:29 Suspend and hibernation patchset Rafael J. Wysocki
2008-03-17 22:17 ` Suspend and hibernation patchset against -rc6 Rafael J. Wysocki
2008-03-18 12:07 ` Pavel Machek
2008-03-18 12:07 ` Pavel Machek
2008-03-18 13:06 ` suspend slow in 2.6.25-rc6 (was Re: Suspend and hibernation patchset against -rc6) Pavel Machek
2008-03-18 13:07 ` Pavel Machek
2008-03-18 17:07 ` Pavel Machek
2008-03-18 17:07 ` Pavel Machek
2008-03-18 18:48 ` Alexey Starikovskiy
2008-03-18 18:48 ` Alexey Starikovskiy
2008-03-18 23:00 ` Pavel Machek
2008-03-18 23:00 ` Pavel Machek
2008-03-18 17:31 ` Linus Torvalds
2008-03-18 17:31 ` Linus Torvalds
2008-03-18 22:52 ` Pavel Machek
2008-03-18 22:52 ` Pavel Machek
2008-03-18 23:05 ` Pavel Machek
2008-03-18 23:05 ` Pavel Machek
2008-03-19 0:40 ` Linus Torvalds
2008-03-19 0:40 ` Linus Torvalds
2008-03-19 10:19 ` Pavel Machek
2008-03-19 10:19 ` Pavel Machek
2008-03-19 14:42 ` Linus Torvalds
2008-03-19 14:42 ` Linus Torvalds
2008-03-19 20:24 ` Pavel Machek
2008-03-19 20:24 ` Pavel Machek
2008-03-19 10:56 ` Pavel Machek
2008-03-19 10:56 ` Pavel Machek
2008-03-19 11:48 ` Pavel Machek
2008-03-19 11:48 ` Pavel Machek
2008-03-19 14:47 ` Linus Torvalds
2008-03-19 14:47 ` Linus Torvalds
2008-03-19 14:54 ` Pavel Machek
2008-03-19 14:54 ` Pavel Machek
2008-03-19 20:23 ` Pavel Machek
2008-03-19 20:23 ` Pavel Machek
2008-03-19 20:35 ` Alexey Starikovskiy
2008-03-19 20:35 ` Alexey Starikovskiy
2008-03-19 20:47 ` Rafael J. Wysocki
2008-03-19 20:47 ` Rafael J. Wysocki
2008-03-19 20:58 ` Pavel Machek
2008-03-19 20:58 ` Pavel Machek
2008-03-19 21:07 ` Alexey Starikovskiy
2008-03-19 21:07 ` Alexey Starikovskiy
2008-03-19 21:43 ` Rafael J. Wysocki
2008-03-19 21:43 ` Rafael J. Wysocki
2008-03-19 21:56 ` Rafael J. Wysocki
2008-03-19 21:56 ` [linux-pm] " Rafael J. Wysocki
2008-03-19 21:57 ` Pavel Machek
2008-03-19 21:58 ` Rafael J. Wysocki
2008-03-19 22:02 ` Pavel Machek
2008-03-19 22:13 ` Rafael J. Wysocki
2008-03-19 22:21 ` Pavel Machek
2008-03-19 22:21 ` Pavel Machek
2008-03-19 22:13 ` Rafael J. Wysocki
2008-03-19 22:02 ` Pavel Machek
2008-03-19 21:58 ` Rafael J. Wysocki
2008-03-19 21:57 ` Pavel Machek
2008-03-20 15:06 ` Henrique de Moraes Holschuh
2008-03-20 15:06 ` Henrique de Moraes Holschuh
2008-03-20 15:53 ` Pavel Machek
2008-03-20 15:53 ` Pavel Machek
2008-03-18 23:20 ` Pavel Machek
2008-03-18 23:20 ` Pavel Machek
2008-03-18 23:45 ` Alexey Starikovskiy [this message]
2008-03-18 23:45 ` Alexey Starikovskiy
2008-03-19 11:49 ` Pavel Machek
2008-03-19 11:49 ` Pavel Machek
2008-03-20 15:19 ` Henrique de Moraes Holschuh
2008-03-20 15:19 ` Henrique de Moraes Holschuh
2008-03-20 15:50 ` Alexey Starikovskiy
2008-03-20 15:50 ` Alexey Starikovskiy
2008-03-20 22:26 ` Henrique de Moraes Holschuh
2008-03-20 22:26 ` Henrique de Moraes Holschuh
2008-03-20 15:50 ` Alexey Starikovskiy
2008-03-20 15:19 ` Henrique de Moraes Holschuh
2008-03-18 23:43 ` Pavel Machek
2008-03-18 23:43 ` Pavel Machek
2008-03-18 13:07 ` Pavel Machek
2008-03-18 13:06 ` Pavel Machek
2008-03-26 23:51 ` Suspend and hibernation patchset against -rc7 Rafael J. Wysocki
2008-04-02 0:27 ` Suspend and hibernation patchset against -rc8 Rafael J. Wysocki
2008-04-13 17:39 ` Suspend and hibernation patchset against -rc9 Rafael J. Wysocki
2008-04-13 17:39 ` Rafael J. Wysocki
2008-04-02 0:27 ` Suspend and hibernation patchset against -rc8 Rafael J. Wysocki
2008-03-26 23:51 ` Suspend and hibernation patchset against -rc7 Rafael J. Wysocki
2008-03-17 22:17 ` Suspend and hibernation patchset against -rc6 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=47E05408.7000003@suse.de \
--to=astarikovskiy@suse.de \
--cc=johannes@sipsolutions.net \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@suse.cz \
--cc=torvalds@linux-foundation.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 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.