[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1748021.N9i9sLPJ40@kreacher>
Date: Fri, 04 Sep 2020 19:19:26 +0200
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: Linux ACPI <linux-acpi@...r.kernel.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Erik Kaneda <erik.kaneda@...el.com>,
Bob Moore <robert.moore@...el.com>
Subject: [PATCH 0/6] ACPICA / ACPI: OSL: Rework GPE registers access code
Hi All,
The underlying issue here is that in Linux calling
acpi_os_read_memory() or acpi_os_write_memory() from an interrupt
handler is generally invalid, because these functions may attempt
to map memory on the fly. It is only valid to call them from an
interrupt handler if it is known that there is a memory mapping
covering the physical address passed as the argument.
However, in that case using acpi_os_read_memory() or
acpi_os_write_memory() for accessing memory is inefficient, because
they need to look up the mapping in question every time in a global
list, and it would be much more straightforward to use the (known
already) logical address of the target memory region.
In ACPICA this problem affects GPE registers that are accessed
with the help of acpi_hw_read() and acpi_hw_write() which is
inefficient not just because they end up calling
acpi_os_read_memory() or acpi_os_write_memory() if the GPE
registers are located in system memory, but also because these
functions check things that need not be checked for GPE registers
in particular and they do that on every access.
This series of patches reworks the GPE register accesses in ACPICA
to be more efficient by omitting the unnecessary checks and making it
possible to use logical addresses directly if these registers are
located in system memory.
The first four patches modify ACPICA and the last two add the
requisite OS support to Linux on top of that.
Please refer to the changelogs of the patches for details.
Thanks,
Rafael
Powered by blists - more mailing lists