Skip to content

ACPI: Call acpi_put_table() to release the ACPI table mappings

Hanjun Guo linux-acpi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ACPI: LPIT: Put the low power idle table after using itdrivers/acpi/acpi_lpit.c+2 -10 replies
2/9ACPI: watchdog: Put the watchdog action table after parsingdrivers/acpi/acpi_watchdog.c+5 -20 replies
3/9ACPI: APEI: Put the boot error record table after parsingdrivers/acpi/apei/bert.c+4 -20 replies
4/9ACPI: APEI: Put the error injection table for error path and module exitdrivers/acpi/apei/einj.c+4 -10 replies
5/9ACPI: APEI: Put the error record serialization table for error pathdrivers/acpi/apei/erst.c+3 -10 replies
6/9ACPI: APEI: Put the HEST table for error pathdrivers/acpi/apei/hest.c+3 -20 replies
7/9ACPI: EC: Put the ACPI table after using itdrivers/acpi/ec.c+10 -43 replies
8/9ACPI: scan: Put SPCR and STAO table after using itdrivers/acpi/scan.c+10 -50 replies
9/9ACPI: sleep: Put the FACS table after using itdrivers/acpi/sleep.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] ACPI: Call acpi_put_table() to release the ACPI table mappings

The acpi_get_table() should be coupled with acpi_put_table() if the mapped table is not used for runtime after the initialization, or the error path or the initialization, to release the table mapping.

This patchset just scan for every acpi_get_table() in ACPI subsystem to see if acpi_put_table() is needed, this is not urgent and I think can be merged for 5.8 if this patchset makes sense.

Hanjun Guo (9):
ACPI: LPIT: Put the low power idle table after using it
ACPI: watchdog: Put the watchdog action table after parsing
ACPI: APEI: Put the boot error record table after parsing
ACPI: APEI: Put the error injection table for error path and module
exit
ACPI: APEI: Put the error record serialization table for error path
ACPI: APEI: Put the HEST table for error path
ACPI: EC: Put the ACPI table after using it
ACPI: scan: Put SPCR and STAO table after using it
ACPI: sleep: Put the FACS table after using it

 drivers/acpi/acpi_lpit.c     |  3 ++-
 drivers/acpi/acpi_watchdog.c |  7 +++++--
 drivers/acpi/apei/bert.c     |  6 ++++--
 drivers/acpi/apei/einj.c     |  5 ++++-
 drivers/acpi/apei/erst.c     |  4 +++-
 drivers/acpi/apei/hest.c     |  5 +++--
 drivers/acpi/ec.c            | 14 ++++++++++----
 drivers/acpi/scan.c          | 15 ++++++++++-----
 drivers/acpi/sleep.c         |  4 +++-
 9 files changed, 44 insertions(+), 19 deletions(-)
Signature · 1 line
1.7.12.4