Re: [PATCH] ACPI: battery: Re-read battery information in the complete callback
From: Rafael J. Wysocki (Intel)
Date: Tue Oct 13 2026 - 09:31:08 EST
On Tue, Oct 13, 2026 at 2:31 PM Ali Ahmet Memiş <aliamemis@xxxxxxxxxxx> wrote:
>
> On Tue, Oct 13, 2026 at 01:58:15PM +0200, Rafael J. Wysocki (Intel) wrote:
> > An alternative might be to introduce an "exclusive" variant of
> > acpi_evaluate_object() with built-in locking and use it in the cases
> > that are known-problematic.
>
> An exclusive variant would have to be used on both sides here, for
> _BIX/_BST and for the INT3403 _TMP, since it is \GTST in _TMP that
> switches the page. I can do that and test it the same way.
Sounds good.
> Should this patch still go in for the regression meanwhile?
No, it only addresses system resume while the same race may occur if
user space reads the thermal zone temperature during a battery
notification, for example. All of that needs to be addressed.