linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] ACPI: Call acpi_put_table() to release the ACPI table mappings
@ 2020-05-07  9:09 Hanjun Guo
  2020-05-07  9:09 ` [PATCH 1/9] ACPI: LPIT: Put the low power idle table after using it Hanjun Guo
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Hanjun Guo @ 2020-05-07  9:09 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: James Morse, Tony Luck, Borislav Petkov, linux-acpi, Hanjun Guo

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(-)

-- 
1.7.12.4


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

end of thread, other threads:[~2020-05-09  9:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07  9:09 [PATCH 0/9] ACPI: Call acpi_put_table() to release the ACPI table mappings Hanjun Guo
2020-05-07  9:09 ` [PATCH 1/9] ACPI: LPIT: Put the low power idle table after using it Hanjun Guo
2020-05-07  9:09 ` [PATCH 2/9] ACPI: watchdog: Put the watchdog action table after parsing Hanjun Guo
2020-05-07  9:09 ` [PATCH 3/9] ACPI: APEI: Put the boot error record " Hanjun Guo
2020-05-07  9:09 ` [PATCH 4/9] ACPI: APEI: Put the error injection table for error path and module exit Hanjun Guo
2020-05-07  9:09 ` [PATCH 5/9] ACPI: APEI: Put the error record serialization table for error path Hanjun Guo
2020-05-07  9:09 ` [PATCH 6/9] ACPI: APEI: Put the HEST " Hanjun Guo
2020-05-07  9:09 ` [PATCH 7/9] ACPI: EC: Put the ACPI table after using it Hanjun Guo
2020-05-09  9:11   ` Rafael J. Wysocki
2020-05-09  9:30     ` Rafael J. Wysocki
2020-05-09  9:47       ` Hanjun Guo
2020-05-07  9:09 ` [PATCH 8/9] ACPI: scan: Put SPCR and STAO " Hanjun Guo
2020-05-07  9:09 ` [PATCH 9/9] ACPI: sleep: Put the FACS " Hanjun Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).