]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drivers/perf: hisi_pcie: Export supported Root Ports [bdf_min, bdf_max]
authorYicong Yang <yangyicong@hisilicon.com>
Thu, 29 Aug 2024 09:03:32 +0000 (17:03 +0800)
committerWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 10:43:10 +0000 (11:43 +0100)
commitd1c93d5c67ebc7cf5b70ecff7172a0c399975d55
treed6fee3484a5f83612a6034c0bbbfa4fea1be9bec
parent17bf68aeb3642221e3e770399b5a52f370747ac1
drivers/perf: hisi_pcie: Export supported Root Ports [bdf_min, bdf_max]

Currently users can get the Root Ports supported by the PCIe PMU by
"bus" sysfs attributes which indicates the PCIe bus number where
Root Ports are located. This maybe insufficient since Root Ports
supported by different PCIe PMUs may be located on the same PCIe bus.
So export the BDF range the Root Ports additionally.

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240829090332.28756-4-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/admin-guide/perf/hisi-pcie-pmu.rst
drivers/perf/hisilicon/hisi_pcie_pmu.c