]> git.dujemihanovic.xyz Git - linux.git/commit
drivers/perf: hisi: Add support for HiSilicon H60PA and PAv3 PMU driver
authorJunhao He <hejunhao3@huawei.com>
Thu, 15 Jun 2023 12:59:24 +0000 (20:59 +0800)
committerWill Deacon <will@kernel.org>
Fri, 16 Jun 2023 11:27:37 +0000 (12:27 +0100)
commit1a51688474c0d395b864e98236335fba712e29bf
tree521264bb714b1aa06e759d68c83d1d5895187016
parent7e51d05e43f19f394b3b0df01a22225143f9c5b5
drivers/perf: hisi: Add support for HiSilicon H60PA and PAv3 PMU driver

Compared to the original PA device, H60PA offers higher bandwidth.
The H60PA is a new device and we use HID to differentiate them.

The events supported by PAv3 and PAv2 are different. The PAv3 PMU
removed some events which are supported by PAv2 PMU. The older PA
PMU driver will probe v3 as v2. Therefore PA events displayed by
"perf list" cannot work properly. We add the HISI0275 HID for PAv3
PMU to distinguish different.

For each H60PA PMU, except for the overflow interrupt register, other
functions of the H60PA PMU are the same as the original PA PMU module.
It has 8-programable counters and each counter is free-running.
Interrupt is supported to handle counter (64-bits) overflow.

Signed-off-by: Junhao He <hejunhao3@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Yicong Yang <yangyicong@hisilicon.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20230615125926.29832-2-hejunhao3@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_uncore_pa_pmu.c
drivers/perf/hisilicon/hisi_uncore_pmu.h