arm_pmu: acpi: spe: Add initial MADT/SPE probing
authorJeremy Linton <jeremy.linton@arm.com>
Wed, 26 Jun 2019 21:37:17 +0000 (16:37 -0500)
committerWill Deacon <will@kernel.org>
Thu, 27 Jun 2019 15:53:42 +0000 (16:53 +0100)
commitd24a0c7099b32b6981d7f126c45348e381718350
tree457f98ff0662d5de5fb64df10b5bc1bdf1f062a4
parent56855a99f3d0d1e9f1f4e24f5851f9bf14c83296
arm_pmu: acpi: spe: Add initial MADT/SPE probing

ACPI 6.3 adds additional fields to the MADT GICC
structure to describe SPE PPI's. We pick these out
of the cached reference to the madt_gicc structure
similarly to the core PMU code. We then create a platform
device referring to the IRQ and let the user/module loader
decide whether to load the SPE driver.

Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/acpi.h
drivers/perf/arm_pmu_acpi.c
include/linux/perf/arm_pmu.h