From: Rong Zhang <i@rong.moe>
To: "Ali Ahmet Memi�0�6" <aliamemis@disroot.org>,
"Rafael J . Wysocki" <rafael@kernel.org>
Cc: "Hans de Goede" <johannes.goede@oss.qualcomm.com>,
"Len Brown" <lenb@kernel.org>,
"Daniel Lezcano" <daniel.lezcano@kernel.org>,
"Zhang Rui" <rui.zhang@intel.com>,
"Lukasz Luba" <lukasz.luba@arm.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Ike Panhc" <ikepanhc@gmail.com>,
"Derek J . Clark" <derekjohn.clark@gmail.com>,
"Mark Pearson" <mpearson-lenovo@squebb.ca>,
"Armin Wolf" <W_Armin@gmx.de>,
"Charis Stratakis" <c.stratakis@proton.me>,
"Avraham Hollander" <anhollander516@gmail.com>,
"Jeffrey Wälti" <jeffrey@waelti.dev>, Rick <rickk1166@gmail.com>,
linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org,
platform-driver-x86@vger.kernel.org,
acpica-devel@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/4] ACPI: Serialize battery, INT3403 _TMP and ideapad methods
Date: Sun, 18 Oct 2026 02:06:08 +0800 [thread overview]
Message-ID: <d0da648567bc15ccac06d9429b46142e241df1a8.camel@rong.moe> (raw)
In-Reply-To: <20261017130652.318778-1-aliamemis@disroot.org>
Hi Ali,
On Sat, 2026-10-17 at 16:06 +0300, Ali Ahmet Memiş wrote:
> On ThinkPad P1 Gen2 and P53, INT3403 _TMP switches the EC page selector
> without taking the mutex the battery methods use. On some Lenovo
> IdeaPad and Yoga models, the battery _BIX and the ideapad GBMD take the
> EC mutex and a serialized method in opposite order and deadlock until
> an AML mutex times out.
>
> As discussed in [1], add exclusive variants of the AML evaluation
> helpers and use them for the battery, INT3403 _TMP
>
int3403_add() seems to be another call site of INT3403 _TMP, but PATCH 3
didn't touch it. Is it intended?
> and ideapad methods.
> Patches 2-4 depend on patch 1.
>
> Changes in v2:
> - Merge the follow-up series [2] and drop its EC query and UCSI patches
> until they are shown to help
> - Add acpi_execute_simple_method_exclusive() for _BTP and ideapad
> - Make the helpers wrappers that take the lock around the existing ones
You dropped Hans' R-b from PATCH 1 due to the massive change. The next
time you do the similar, please add a note to the changelog.
> - Join lines up to 100 columns, add a Link: for Suggested-by:
>
> Link: https://lore.kernel.org/all/CAJZ5v0gS4agVUkCO6M=VW4Wi2y1-s+k23bpzmX9aAZ0Rsv4z9Q@mail.gmail.com/ [1]
> Link: https://lore.kernel.org/all/20261014190544.150093-1-aliamemis@disroot.org/ [2]
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=221065
> v1: https://lore.kernel.org/all/20261014132703.93355-1-aliamemis@disroot.org/
The series is now neat to me.
With int3403_add() fixed (or explained), for the series:
Reviewed-by: Rong Zhang <i@rong.moe>
Thanks,
Rong
>
> Ali Ahmet Memiş (4):
> ACPI: utils: Add exclusive AML evaluation helpers
> ACPI: battery: Evaluate battery methods exclusively
> thermal: intel: int340x: Evaluate _TMP exclusively
> platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively
>
> drivers/acpi/battery.c | 12 +++---
> drivers/acpi/utils.c | 41 +++++++++++++++++++
> drivers/platform/x86/lenovo/ideapad-laptop.c | 12 ++++--
> .../int340x_thermal/int340x_thermal_zone.c | 6 ++-
> include/acpi/acpi_bus.h | 7 ++++
> 5 files changed, 66 insertions(+), 12 deletions(-)
>
>
> base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
next prev parent reply other threads:[~2026-10-17 18:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-17 13:06 Ali Ahmet Memiş
2026-10-17 13:06 ` [PATCH v2 1/4] ACPI: utils: Add exclusive AML evaluation helpers Ali Ahmet Memiş
2026-10-17 13:06 ` [PATCH v2 2/4] ACPI: battery: Evaluate battery methods exclusively Ali Ahmet Memiş
2026-10-17 13:06 ` [PATCH v2 3/4] thermal: intel: int340x: Evaluate _TMP exclusively Ali Ahmet Memiş
2026-10-17 13:08 ` [PATCH v2 4/4] platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively Ali Ahmet Memiş
2026-10-17 18:06 ` Rong Zhang [this message]
2026-10-17 18:24 ` [PATCH v2 0/4] ACPI: Serialize battery, INT3403 _TMP and ideapad methods Rong Zhang
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=d0da648567bc15ccac06d9429b46142e241df1a8.camel@rong.moe \
--to=i@rong.moe \
--cc=W_Armin@gmx.de \
--cc=acpica-devel@lists.linux.dev \
--cc=aliamemis@disroot.org \
--cc=anhollander516@gmail.com \
--cc=c.stratakis@proton.me \
--cc=daniel.lezcano@kernel.org \
--cc=derekjohn.clark@gmail.com \
--cc=ikepanhc@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jeffrey@waelti.dev \
--cc=johannes.goede@oss.qualcomm.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=mpearson-lenovo@squebb.ca \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=rickk1166@gmail.com \
--cc=rui.zhang@intel.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
all inboxes | Powered by JetHome®