From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: "Bjørn Mork" <bjorn@mork.no>, "Markus Demleitner" <m@tfiu.de>
Cc: Greg KH <gregkh@linuxfoundation.org>,
Andreas Lindhe <andreas@lindhe.io>,
Gjorgji Jankovski <j.gjorgji@gmail.com>,
Damjan Georgievski <gdamjan@gmail.com>,
Fernando Chaves <nanochaves@gmail.com>,
Tomislav Ivek <tomislav.ivek@gmail.com>,
"Denis P." <theoriginal.skullburner@gmail.com>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>
Subject: Re: [Bug 197863] Thinkpad X240 resume dramatically slower on kernels 4.13+
Date: Thu, 08 Feb 2018 20:12:06 +0100 [thread overview]
Message-ID: <4333304.2V78SBapX3@aspire.rjw.lan> (raw)
In-Reply-To: <CAJZ5v0jN2cQUmwWRQ=Rvb+dQpMg+Q+GuaDtt-X-tXWNThUx-NQ@mail.gmail.com>
On Wednesday, February 7, 2018 11:44:15 PM CET Rafael J. Wysocki wrote:
> On Mon, Feb 5, 2018 at 6:06 PM, Rafael J. Wysocki
> <rafael.j.wysocki@intel.com> wrote:
> > On 2/5/2018 3:14 PM, Bjørn Mork wrote:
> >>
> >> "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> writes:
> >>>
> >>> On 2/4/2018 9:28 PM, Bjørn Mork wrote:
> >>>
> >>>> But I do wonder if the attached (completely untested!!) patch makes
> >>>> things any better?
> >>>
> >>> I don't think so, the macro is needed too.
> >>
> >> Doh! Obviously. Don't know how I managed to miss that.
> >>
> >>> I'll queue up a full revert of 662591461c4b9a1e3b.
> >>
> >> Still with the additional exception for "ec == first_ec"?
> >>
> >
> > No, just a full revert for now.
>
> That doesn't work, because we made some changes on top of this commit.
>
> I'll send a patch to try tomorrow.
Below is a patch for the mainline (should be applicable to 4.15.y) to test.
Please let me know if it improves things for you.
The corresponding fix for -stable would still be a full revert of
662591461c4b9a1e3b, but it needs to be fixed in the mainline first.
---
drivers/acpi/ec.c | 6 ++++++
1 file changed, 6 insertions(+)
Index: linux-pm/drivers/acpi/ec.c
===================================================================
--- linux-pm.orig/drivers/acpi/ec.c
+++ linux-pm/drivers/acpi/ec.c
@@ -1927,6 +1927,9 @@ static int acpi_ec_suspend_noirq(struct
ec->reference_count >= 1)
acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE);
+ if (acpi_sleep_no_ec_events())
+ acpi_ec_enter_noirq(ec);
+
return 0;
}
@@ -1934,6 +1937,9 @@ static int acpi_ec_resume_noirq(struct d
{
struct acpi_ec *ec = acpi_driver_data(to_acpi_device(dev));
+ if (acpi_sleep_no_ec_events())
+ acpi_ec_leave_noirq(ec);
+
if (ec_no_wakeup && test_bit(EC_FLAGS_STARTED, &ec->flags) &&
ec->reference_count >= 1)
acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE);
next prev parent reply other threads:[~2018-02-08 19:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-197863-190391@https.bugzilla.kernel.org/>
[not found] ` <bug-197863-190391-0fyd51NsnV@https.bugzilla.kernel.org/>
[not found] ` <20180129182109.neh34gh7uaxymcb5@victor>
[not found] ` <20180130063204.GA8652@kroah.com>
[not found] ` <20180203182554.rpjvmjbptuqemul2@victor>
[not found] ` <20180204061804.GB31023@kroah.com>
[not found] ` <874lmw33fe.fsf@miraculix.mork.no>
2018-02-05 10:55 ` [Bug 197863] Thinkpad X240 resume dramatically slower on kernels 4.13+ Rafael J. Wysocki
2018-02-05 14:14 ` Bjørn Mork
2018-02-05 17:06 ` Rafael J. Wysocki
2018-02-07 22:44 ` Rafael J. Wysocki
2018-02-08 19:12 ` Rafael J. Wysocki [this message]
2018-02-09 13:43 ` Markus Demleitner
2018-02-09 21:26 ` Rafael J. Wysocki
2018-02-09 21:55 ` [PATCH] ACPI / EC: Restore polling during noirq suspend/resume phases 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=4333304.2V78SBapX3@aspire.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=andreas@lindhe.io \
--cc=bjorn@mork.no \
--cc=gdamjan@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=j.gjorgji@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=m@tfiu.de \
--cc=nanochaves@gmail.com \
--cc=theoriginal.skullburner@gmail.com \
--cc=tomislav.ivek@gmail.com \
/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