mbox series

[v5,0/2] Add Support for HiSilicon CPA PMU

Message ID 20220415102352.6665-1-liuqi115@huawei.com (mailing list archive)
Headers show
Series Add Support for HiSilicon CPA PMU | expand

Message

liuqi (BA) April 15, 2022, 10:23 a.m. UTC
Add Support for HiSilicon CPA PMU driver. Json file in perf tool
is applied in 
https://lore.kernel.org/linux-arm-kernel/YhkhSZp+a715Ldzr@kernel.org/.

Change since v4:
- Add hisi_cpa_pmu_enable_pm() for a failed probe.
- Link: https://lore.kernel.org/linux-arm-kernel/20220407124617.54521-1-liuqi115@huawei.com/

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@huawei.com/

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@huawei.com/

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

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 | 409 +++++++++++++++++++
 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, 423 insertions(+), 12 deletions(-)
 create mode 100644 drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c

Comments

Will Deacon May 6, 2022, 2:43 p.m. UTC | #1
On Fri, 15 Apr 2022 18:23:50 +0800, Qi Liu wrote:
> Add Support for HiSilicon CPA PMU driver. Json file in perf tool
> is applied in
> https://lore.kernel.org/linux-arm-kernel/YhkhSZp+a715Ldzr@kernel.org/.
> 
> Change since v4:
> - Add hisi_cpa_pmu_enable_pm() for a failed probe.
> - Link: https://lore.kernel.org/linux-arm-kernel/20220407124617.54521-1-liuqi115@huawei.com/
> 
> [...]

Applied to will (for-next/perf), thanks!

[1/2] drivers/perf: hisi: Associate PMUs in SICL with CPUs online
      https://git.kernel.org/will/c/807907dae970
[2/2] drivers/perf: hisi: Add Support for CPA PMU
      https://git.kernel.org/will/c/6b79738b6ed9

Cheers,