public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] ACPI: SBS: Fix various issues
@ 2023-02-25  8:04 Armin Wolf
  2023-02-25  8:04 ` [PATCH 1/4] ACPI: EC: Add query notifier support Armin Wolf
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Armin Wolf @ 2023-02-25  8:04 UTC (permalink / raw)
  To: rafael, lenb; +Cc: linux-acpi, linux-kernel

On my Acer Travelmate 4002WLMi, the system locks up upon
suspend/shutdown. After a lot of research, it turned out
that the sbs module was the culprit. The driver would not
correctly mask out the value used to select a battery using
the "Smart Battery Selector" (subset of the "Smart Battery Manager").
This accidentally caused a invalid power source to be selected,
which was automatically corrected by the selector. Upon
notifing the host about the corrected power source, some batteries
would be selected for re-reading, causing a endless loop.
This would lead to some workqueues filling up, which caused the
lockup upon suspend/shutdown.

The first three patches fix a stacktrace on module removal caused
by some locking issues. The last patch finally fixes the
suspend/shutdown issues.

As a side note: This was the first machine on which i installed Linux,
to finally fixing this took ~5 years of tinkering.

Armin Wolf (4):
  ACPI: EC: Add query notifier support
  ACPI: sbshc: Use ec query notifier call chain
  ACPI: EC: Make query handlers private
  ACPI: SBS: Fix handling of Smart Battery Selectors

 drivers/acpi/ec.c       | 44 ++++++++++++++++++++--------------------
 drivers/acpi/internal.h | 10 ++++-----
 drivers/acpi/sbs.c      | 27 ++++++++++++++++---------
 drivers/acpi/sbshc.c    | 45 ++++++++++++++++++++++++++---------------
 4 files changed, 74 insertions(+), 52 deletions(-)

--
2.30.2


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

end of thread, other threads:[~2023-02-25 11:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-25  8:04 [PATCH 0/4] ACPI: SBS: Fix various issues Armin Wolf
2023-02-25  8:04 ` [PATCH 1/4] ACPI: EC: Add query notifier support Armin Wolf
2023-02-25  8:04 ` [PATCH 2/4] ACPI: sbshc: Use ec query notifier call chain Armin Wolf
2023-02-25  8:04 ` [PATCH 3/4] ACPI: EC: Make query handlers private Armin Wolf
2023-02-25 10:32   ` kernel test robot
2023-02-25 10:53   ` kernel test robot
2023-02-25 11:03   ` kernel test robot
2023-02-25  8:04 ` [PATCH 4/4] ACPI: SBS: Fix handling of Smart Battery Selectors Armin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox