OSDN Git Service

ACPI: ARM Performance Monitoring Unit Table (APMT) initial support
authorBesar Wicaksono <bwicaksono@nvidia.com>
Thu, 29 Sep 2022 00:28:34 +0000 (19:28 -0500)
committerWill Deacon <will@kernel.org>
Mon, 7 Nov 2022 14:02:11 +0000 (14:02 +0000)
commit6251d38059ae22304ede4f3748af9f795bdbf4fd
tree426b5241efa9cda676c0c90c9615bea3776c9ca1
parentf0c4d9fc9cc9462659728d168387191387e903cc
ACPI: ARM Performance Monitoring Unit Table (APMT) initial support

ARM Performance Monitoring Unit Table describes the properties of PMU
support in ARM-based system. The APMT table contains a list of nodes,
each represents a PMU in the system that conforms to ARM CoreSight PMU
architecture. The properties of each node include information required
to access the PMU (e.g. MMIO base address, interrupt number) and also
identification. For more detailed information, please refer to the
specification below:
 * APMT: https://developer.arm.com/documentation/den0117/latest
 * ARM Coresight PMU:
        https://developer.arm.com/documentation/ihi0091/latest

The initial support adds the detection of APMT table and generic
infrastructure to create platform devices for ARM CoreSight PMUs.
Similar to IORT the root pointer of APMT is preserved during runtime
and each PMU platform device is given a pointer to the corresponding
APMT node.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20220929002834.32664-1-bwicaksono@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Kconfig
drivers/acpi/arm64/Kconfig
drivers/acpi/arm64/Makefile
drivers/acpi/arm64/apmt.c [new file with mode: 0644]
drivers/acpi/bus.c
include/linux/acpi_apmt.h [new file with mode: 0644]