[PATCH 2/4] ACPI: EC: Evaluate _Qxx methods exclusively
From: Ali Ahmet Memiş
Date: Wed Oct 14 2026 - 15:08:39 EST
On some Lenovo IdeaPad and Yoga models, _Q0A, _Q0B and the UCSI
notification query _Q16 take the same AML mutex as the battery, UCSI and
ideapad methods. Making those exclusive does not help as long as the
_Qxx methods still run interleaved with them.
Evaluate _Qxx with acpi_evaluate_object_exclusive().
Link: https://bugzilla.kernel.org/show_bug.cgi?id=221065
Signed-off-by: Ali Ahmet Memiş <aliamemis@xxxxxxxxxxx>
---
drivers/acpi/ec.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index a89f10256dbb..6cec5a319ec2 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -1154,10 +1154,15 @@ static void acpi_ec_event_processor(struct work_struct *work)
ec_dbg_evt("Query(0x%02x) started", handler->query_bit);
+ /*
+ * Evaluate _Qxx exclusively, as on some laptops they take the same
+ * AML mutex as the battery, UCSI and platform methods, which then
+ * time out waiting for it.
+ */
if (handler->func)
handler->func(handler->data);
else if (handler->handle)
- acpi_evaluate_object(handler->handle, NULL, NULL, NULL);
+ acpi_evaluate_object_exclusive(handler->handle, NULL, NULL, NULL);
ec_dbg_evt("Query(0x%02x) stopped", handler->query_bit);
--
2.55.0