drivers/perf: hisi: Add Support for CPA PMU
authorQi Liu <liuqi115@huawei.com>
Fri, 15 Apr 2022 10:23:52 +0000 (18:23 +0800)
committerWill Deacon <will@kernel.org>
Fri, 6 May 2022 14:14:31 +0000 (15:14 +0100)
commit6b79738b6ed91a2d0fe958819469eeedac3bca81
tree3a14b4259e12422e6d22a259d923b57ed09a51db
parent807907dae9701c4b0593d5195d4839f17d103314
drivers/perf: hisi: Add Support for CPA PMU

On HiSilicon Hip09 platform, there is a CPA (Coherency Protocol Agent) on
each SICL (Super IO Cluster) which implements packet format translation,
route parsing and traffic statistics.

CPA PMU has 8 PMU counters and interrupt is supported to handle counter
overflow. Let's support its driver under the framework of HiSilicon PMU
driver.

Signed-off-by: Qi Liu <liuqi115@huawei.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Reviewed-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Link: https://lore.kernel.org/r/20220415102352.6665-3-liuqi115@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/Makefile
drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c [new file with mode: 0644]
include/linux/cpuhotplug.h