mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 15:41:36 +00:00
66637ab137
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>
27 lines
799 B
Plaintext
27 lines
799 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config HISI_PMU
|
|
tristate "HiSilicon SoC PMU drivers"
|
|
depends on ARM64 && ACPI
|
|
help
|
|
Support for HiSilicon SoC L3 Cache performance monitor, Hydra Home
|
|
Agent performance monitor and DDR Controller performance monitor.
|
|
|
|
config HISI_PCIE_PMU
|
|
tristate "HiSilicon PCIE PERF PMU"
|
|
depends on PCI && ARM64
|
|
help
|
|
Provide support for HiSilicon PCIe performance monitoring unit (PMU)
|
|
RCiEP devices.
|
|
Adds the PCIe PMU into perf events system for monitoring latency,
|
|
bandwidth etc.
|
|
|
|
config HNS3_PMU
|
|
tristate "HNS3 PERF PMU"
|
|
depends on ARM64 || COMPILE_TEST
|
|
depends on PCI
|
|
help
|
|
Provide support for HNS3 performance monitoring unit (PMU) RCiEP
|
|
devices.
|
|
Adds the HNS3 PMU into perf events system for monitoring latency,
|
|
bandwidth etc.
|