All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lv Zheng <lv.zheng@intel.com>
To: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Len Brown <len.brown@intel.com>
Cc: Lv Zheng <lv.zheng@intel.com>, Lv Zheng <zetalog@gmail.com>,
	linux-acpi@vger.kernel.org
Subject: [PATCH v3 0/4] ACPI / osl: Cleans up acpi_get_table_with_size()/early_acpi_os_unmap_memory()
Date: Wed, 14 Dec 2016 15:04:13 +0800	[thread overview]
Message-ID: <cover.1481698041.git.lv.zheng@intel.com> (raw)
In-Reply-To: <cover.1480490191.git.lv.zheng@intel.com>

acpi_get_table_with_size() is invented to be a replacement of
acpi_get_table() during the early stage so that the early mapped pointer
will not be stored in ACPICA core (acpi_get_table() forces to do so) and
thus the late stage acpi_get_table() won't return a wrong stored pointer.

Since there is early_acpi_os_unmap_memory() required to be invoked as a
reversal of acpi_get_table_with_size(), ACPICA can provide acpi_put_table()
to achieve the same purpose. As long as all early stage acpi_get_table()
calls are paired by early stage acpi_put_table() calls, mappings should be
released before entering the late stage. And the late stage
acpi_get_table() calls will map the table using a late stage ioremap
mechanism.

This patchset cleans up the old APIs and reduces divergences between Linux
and ACPICA upstream.

Lv Zheng (4):
  ACPICA: Tables: Back port acpi_get_table_with_size() and
    early_acpi_os_unmap_memory() from Linux kernel
  ACPICA: Tables: Allow FADT to be customized with virtual address
  ACPI / osl: Remove
    acpi_get_table_with_size()/early_acpi_os_unmap_memory() users
  ACPI / osl: Remove deprecated
    acpi_get_table_with_size()/early_acpi_os_unmap_memory()

 arch/arm64/include/asm/acpi.h            |    2 +-
 arch/arm64/kernel/acpi.c                 |    7 +-
 drivers/acpi/acpica/actables.h           |    6 ++
 drivers/acpi/acpica/tbfadt.c             |   14 ++--
 drivers/acpi/acpica/tbutils.c            |   85 +++++++++++++++++++
 drivers/acpi/acpica/tbxface.c            |  130 +++++++++++++++++++-----------
 drivers/acpi/bus.c                       |    2 +-
 drivers/acpi/nfit/core.c                 |    3 +-
 drivers/acpi/osl.c                       |   15 ++--
 drivers/acpi/processor_core.c            |    8 +-
 drivers/acpi/spcr.c                      |    8 +-
 drivers/acpi/tables.c                    |   17 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c |    3 +-
 drivers/gpu/drm/radeon/radeon_bios.c     |    3 +-
 drivers/iommu/amd_iommu_init.c           |   10 +--
 drivers/iommu/dmar.c                     |    7 +-
 drivers/mailbox/pcc.c                    |    5 +-
 include/acpi/acpi_io.h                   |    2 +
 include/acpi/acpixf.h                    |   17 ++--
 include/acpi/actbl.h                     |    1 +
 include/acpi/platform/aclinuxex.h        |    1 -
 21 files changed, 224 insertions(+), 122 deletions(-)

-- 
1.7.10


  parent reply	other threads:[~2016-12-14  7:04 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-30  7:20 [PATCH 00/11] ACPICA: 20161117 Release Lv Zheng
2016-11-30  7:20 ` Lv Zheng
2016-11-30  7:20 ` [PATCH 01/11] ACPICA: Namespace: Add acpi_ns_handle_to_name() Lv Zheng
2016-11-30  7:20   ` Lv Zheng
2016-11-30  7:20 ` [PATCH 02/11] ACPICA: Back port of "ACPICA: Dispatcher: Tune interpreter lock around AcpiEvInitializeRegion()" Lv Zheng
2016-11-30  7:20   ` Lv Zheng
2016-11-30 22:30   ` Rafael J. Wysocki
2016-12-01  7:50     ` Zheng, Lv
2016-12-01 13:29       ` Rafael J. Wysocki
2016-11-30  7:21 ` [PATCH 04/11] ACPICA: Events: Fix acpi_ev_initialize_region() return value Lv Zheng
2016-11-30  7:21   ` Lv Zheng
2016-11-30 23:07   ` Rafael J. Wysocki
2016-12-01  8:00     ` Zheng, Lv
2016-12-01 13:30       ` Rafael J. Wysocki
2016-11-30  7:21 ` [PATCH 05/11] ACPICA: Tables: Cleanup acpi_tb_install_and_load_table() Lv Zheng
2016-11-30  7:21   ` Lv Zheng
2016-11-30  7:21 ` [PATCH 06/11] ACPICA: Tables: Add acpi_tb_unload_table() Lv Zheng
2016-11-30  7:21   ` Lv Zheng
2016-11-30  7:21 ` [PATCH 07/11] ACPICA: Tables: Add an error message complaining driver bugs Lv Zheng
2016-11-30  7:21   ` Lv Zheng
2016-11-30  7:21 ` [PATCH 08/11] ACPICA: Tables: Back port acpi_get_table_with_size() and early_acpi_os_unmap_memory() from Linux kernel Lv Zheng
2016-11-30  7:21   ` Lv Zheng
2016-12-08  1:11   ` Dan Williams
2016-12-08  1:11     ` Dan Williams
2016-12-08 13:18     ` Rafael J. Wysocki
2016-12-08 13:18       ` Rafael J. Wysocki
     [not found]       ` <CAJZ5v0jYijDj2+UiPp41pHWdpuJvMUFoonViSvaCdBknkrbo2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-08 19:04         ` Dan Williams
2016-12-08 19:04           ` Dan Williams
2016-12-08 19:04           ` Dan Williams
2016-12-09  1:59           ` Zheng, Lv
2016-12-09  1:59             ` Zheng, Lv
2016-12-09  2:04             ` Dan Williams
2016-12-09  2:04               ` Dan Williams
     [not found]               ` <CAPcyv4gVuay4uZu5qgDidWyj_LV9s+eRNW6CUZaELHxNtSeHtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-09  2:15                 ` Zheng, Lv
2016-12-09  2:15                   ` Zheng, Lv
2016-12-09  2:15                   ` Zheng, Lv
2016-12-09  2:27               ` Zheng, Lv
2016-12-09  2:27                 ` Zheng, Lv
     [not found]             ` <1AE640813FDE7649BE1B193DEA596E886A2B2398-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-12-09  2:05               ` Rafael J. Wysocki
2016-12-09  2:05                 ` Rafael J. Wysocki
2016-12-09  2:05                 ` Rafael J. Wysocki
2016-12-09  2:23                 ` Zheng, Lv
2016-12-09  2:23                   ` Zheng, Lv
     [not found]     ` <CAA9_cmeUNuvfSSVWWiUt3PLG0WDUCw6m8uK4n5Doh3u_OtRDEg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-09  1:49       ` Zheng, Lv
2016-12-09  1:49         ` Zheng, Lv
2016-12-09  1:49         ` Zheng, Lv
     [not found]         ` <1AE640813FDE7649BE1B193DEA596E886A2B2377-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-12-09  1:57           ` Dan Williams
2016-12-09  1:57             ` Dan Williams
2016-12-09  1:57             ` Dan Williams
2016-11-30  7:21 ` [PATCH 09/11] ACPICA: Tables: Allow FADT to be customized with virtual address Lv Zheng
2016-11-30  7:21   ` Lv Zheng
2016-11-30  7:21 ` [PATCH 10/11] ACPICA: Utilities: Add new decode function for parser values Lv Zheng
2016-11-30  7:21   ` Lv Zheng
2016-11-30  7:22 ` [PATCH 11/11] ACPICA: Update version to 20161117 Lv Zheng
2016-11-30  7:22   ` Lv Zheng
2016-12-09  2:21 ` [PATCH] ACPI / OSL: Fix a regression by returning table size via acpi_get_table_with_size() Lv Zheng
2016-12-09  2:21   ` Lv Zheng
2016-12-09  3:48   ` Rafael J. Wysocki
2016-12-09  6:09     ` Zheng, Lv
2016-12-09  7:15 ` [PATCH v2] ACPI / OSL: Fix a regression by returning acpi_table_header.length instead of 0 from acpi_get_table_with_size() Lv Zheng
2016-12-09 13:44   ` Rafael J. Wysocki
2016-12-12  2:44     ` Zheng, Lv
2016-12-12 23:04       ` Rafael J. Wysocki
2016-12-14  7:04 ` Lv Zheng [this message]
2016-12-14  7:04   ` [PATCH v3 1/4] ACPICA: Tables: Back port acpi_get_table_with_size() and early_acpi_os_unmap_memory() from Linux kernel Lv Zheng
2016-12-14  7:04   ` [PATCH v3 2/4] ACPICA: Tables: Allow FADT to be customized with virtual address Lv Zheng
2016-12-14  7:04   ` [PATCH v3 3/4] ACPI / osl: Remove acpi_get_table_with_size()/early_acpi_os_unmap_memory() users Lv Zheng
2016-12-14  7:04   ` [PATCH v3 4/4] ACPI / osl: Remove deprecated acpi_get_table_with_size()/early_acpi_os_unmap_memory() Lv Zheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1481698041.git.lv.zheng@intel.com \
    --to=lv.zheng@intel.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rjw@rjwysocki.net \
    --cc=zetalog@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.