]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drivers/perf: hisi: Add support for HiSilicon NoC PMU
authorYicong Yang <yangyicong@hisilicon.com>
Thu, 14 Aug 2025 09:16:20 +0000 (17:16 +0800)
committerWill Deacon <will@kernel.org>
Thu, 18 Sep 2025 13:54:29 +0000 (14:54 +0100)
commite31c0eb10388e2af0502b77e61453efbc8a4f974
treeaf36fd19e6ff4db9418f9d973ca1a52124a27b57
parentf8f89e8cf3d668a40106444276d8c448c114e963
drivers/perf: hisi: Add support for HiSilicon NoC PMU

Adds the support for HiSilicon NoC (Network on Chip) PMU which
will be used to monitor the events on the system bus. The PMU
device will be named after the SCL ID (either Super CPU cluster
or Super IO cluster) and the index ID, just similar to other
HiSilicon Uncore PMUs. Below PMU formats are provided besides
the event:

- ch: the transaction channel (data, request, response, etc) which
  can be used to filter the counting.
- tt_en: tracetag filtering enable. Just as other HiSilicon Uncore
  PMUs the NoC PMU supports only counting the transactions with
  tracetag.

The NoC PMU doesn't have an interrupt to indicate the overflow.
However we have a 64 bit counter which is large enough and it's
nearly impossible to overflow.

Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/admin-guide/perf/hisi-pmu.rst
drivers/perf/hisilicon/Makefile
drivers/perf/hisilicon/hisi_uncore_noc_pmu.c [new file with mode: 0644]