mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/4] ACPI: Serialize battery, INT3403 _TMP and ideapad methods
@ 2026-10-18 12:22 Ali Ahmet Memiş
  2026-10-18 12:22 ` [PATCH v3 1/4] ACPI: utils: Add exclusive AML evaluation helpers Ali Ahmet Memiş
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ali Ahmet Memiş @ 2026-10-18 12:22 UTC (permalink / raw)
  To: Rafael J . Wysocki
  Cc: Hans de Goede, Rong Zhang, Len Brown, Daniel Lezcano, Zhang Rui,
	Lukasz Luba, Ilpo Järvinen, Ike Panhc, Derek J . Clark,
	Mark Pearson, Armin Wolf, Charis Stratakis, Avraham Hollander,
	Jeffrey Wälti, Rick, linux-acpi, linux-pm,
	platform-driver-x86, acpica-devel, linux-kernel

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 and ideapad methods.
Patches 2-4 depend on patch 1.

Changes in v3:
- Also evaluate _TMP exclusively where int3403 and processor_thermal
  probe for it

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
- Join lines up to 100 columns, add a Link: for Suggested-by:
- Drop Hans' Reviewed-by from patch 1 due to the rework

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
v2: https://lore.kernel.org/all/20261017130652.318778-1-aliamemis@disroot.org/
v1: https://lore.kernel.org/all/20261014132703.93355-1-aliamemis@disroot.org/

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 ++++--
 .../intel/int340x_thermal/int3403_thermal.c   |  3 +-
 .../int340x_thermal/int340x_thermal_zone.c    |  6 ++-
 .../processor_thermal_device.c                |  2 +-
 include/acpi/acpi_bus.h                       |  7 ++++
 7 files changed, 68 insertions(+), 15 deletions(-)


base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
-- 
2.55.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-18 12:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-18 12:22 [PATCH v3 0/4] ACPI: Serialize battery, INT3403 _TMP and ideapad methods Ali Ahmet Memiş
2026-10-18 12:22 ` [PATCH v3 1/4] ACPI: utils: Add exclusive AML evaluation helpers Ali Ahmet Memiş
2026-10-18 12:22 ` [PATCH v3 2/4] ACPI: battery: Evaluate battery methods exclusively Ali Ahmet Memiş
2026-10-18 12:22 ` [PATCH v3 3/4] thermal: intel: int340x: Evaluate _TMP exclusively Ali Ahmet Memiş
2026-10-18 12:23 ` [PATCH v3 4/4] platform/x86: ideapad-laptop: Evaluate ACPI methods exclusively Ali Ahmet Memiş

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®