Skip to content

ACPI: Serialize battery, INT3403 _TMP and ideapad methods

Ali Ahmet Memiş acpica-devel linux-acpi linux-pm lkml platform-driver-x86 stable 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v24 patches 2 repliesSuperseded
  3. v13 patches 17 repliesSuperseded

Changes in v3 from the cover letter

- Also evaluate _TMP exclusively where int3403 and processor_thermal probe for it

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ACPI: utils: Add exclusive AML evaluation helpersdrivers/acpi/utils.c include/acpi/acpi_bus.h+48 -00 replies
2/4ACPI: battery: Evaluate battery methods exclusivelydrivers/acpi/battery.c+5 -70 replies
3/4thermal: intel: int340x: Evaluate _TMP exclusivelydrivers/thermal/intel/int340x_thermal/int3403_thermal.c drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c drivers/thermal/intel/int340x_thermal/processor_thermal_device.c+7 -40 replies
4/4platform/x86: ideapad-laptop: Evaluate ACPI methods exclusivelydrivers/platform/x86/lenovo/ideapad-laptop.c+8 -40 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchRong ZhangHans de Goede
1/4R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] ACPI: Serialize battery, INT3403 _TMP and ideapad methods

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

v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

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

Signature · 1 line
2.55.0