[PATCH v4 0/2] Add Support for HiSilicon CPA PMU

From: Qi Liu
Date: Thu Apr 07 2022 - 08:48:00 EST


Add Support for HiSilicon CPA PMU driver. Json file in perf tool
is applied in
https://lore.kernel.org/linux-arm-kernel/YhkhSZp+a715Ldzr@xxxxxxxxxx/.

Change since v3:
- Add more explanation for changing CPA PMUs CPU affinity.
- Address the comments from John.
- Link: https://lore.kernel.org/linux-arm-kernel/20220321070124.41338-1-liuqi115@xxxxxxxxxx/

Change since v2:
- Associate CPA PMUs with CPUs online, rather than CPUs in the nearest SCCL.
- Move CPA power management to probe and remove function.
- Address the comments from John.
- Link: https://lore.kernel.org/linux-arm-kernel/20220224111129.41416-1-liuqi115@xxxxxxxxxx/

Change since v1:
- Address the comments from John.
- Link: https://lore.kernel.org/linux-arm-kernel/20220214114228.40859-1-liuqi115@xxxxxxxxxx/

Qi Liu (2):
drivers/perf: hisi: Associate PMUs in SICL with CPUs online
drivers/perf: hisi: Add Support for CPA PMU

drivers/perf/hisilicon/Makefile | 2 +-
drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c | 401 +++++++++++++++++++
drivers/perf/hisilicon/hisi_uncore_pa_pmu.c | 18 +-
drivers/perf/hisilicon/hisi_uncore_pmu.c | 4 +
drivers/perf/hisilicon/hisi_uncore_pmu.h | 1 +
include/linux/cpuhotplug.h | 1 +
6 files changed, 415 insertions(+), 12 deletions(-)
create mode 100644 drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c

--
2.24.0