linux-stable/drivers/perf/hisilicon
Guangbin Huang 66637ab137 drivers/perf: hisi: add driver for HNS3 PMU
HNS3(HiSilicon Network System 3) PMU is RCiEP device in HiSilicon SoC NIC,
supports collection of performance statistics such as bandwidth, latency,
packet rate and interrupt rate.

NIC of each SICL has one PMU device for it. Driver registers each PMU
device to perf, and exports information of supported events, filter mode of
each event, bdf range, hardware clock frequency, identifier and so on via
sysfs.

Each PMU device has its own registers of control, counters and interrupt,
and it supports 8 hardware events, each hardward event has its own
registers for configuration, counters and interrupt.

Filter options contains:
config       - select event
port         - select physical port of nic
tc           - select tc(must be used with port)
func         - select PF/VF
queue        - select queue of PF/VF(must be used with func)
intr         - select interrupt number(must be used with func)
global       - select all functions of IO DIE

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Reviewed-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Link: https://lore.kernel.org/r/20220628063419.38514-3-huangguangbin2@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
2022-07-06 11:25:53 +01:00
..
hisi_pcie_pmu.c drivers/perf: hisi: Add driver for HiSilicon PCIe PMU 2021-12-14 12:30:26 +00:00
hisi_uncore_cpa_pmu.c drivers/perf: hisi: Add Support for CPA PMU 2022-05-06 15:14:31 +01:00
hisi_uncore_ddrc_pmu.c perf: hisi: Extract hisi_pmu_init 2022-06-27 11:14:54 +01:00
hisi_uncore_hha_pmu.c perf: hisi: Extract hisi_pmu_init 2022-06-27 11:14:54 +01:00
hisi_uncore_l3c_pmu.c perf: hisi: Extract hisi_pmu_init 2022-06-27 11:14:54 +01:00
hisi_uncore_pa_pmu.c perf: hisi: Extract hisi_pmu_init 2022-06-27 11:14:54 +01:00
hisi_uncore_pmu.c perf: hisi: Extract hisi_pmu_init 2022-06-27 11:14:54 +01:00
hisi_uncore_pmu.h perf: hisi: Extract hisi_pmu_init 2022-06-27 11:14:54 +01:00
hisi_uncore_sllc_pmu.c perf: hisi: Extract hisi_pmu_init 2022-06-27 11:14:54 +01:00
hns3_pmu.c drivers/perf: hisi: add driver for HNS3 PMU 2022-07-06 11:25:53 +01:00
Kconfig drivers/perf: hisi: add driver for HNS3 PMU 2022-07-06 11:25:53 +01:00
Makefile drivers/perf: hisi: add driver for HNS3 PMU 2022-07-06 11:25:53 +01:00