drivers/perf: hisi: Add TLP filter support
authorYicong Yang <yangyicong@hisilicon.com>
Thu, 17 Nov 2022 08:41:36 +0000 (16:41 +0800)
committerWill Deacon <will@kernel.org>
Tue, 29 Nov 2022 14:30:55 +0000 (14:30 +0000)
commit17d573984d4d5ad73c7cb5edcf2024c585475b0c
treec63ded6b69e6ed47f923033ff2dab51817a89271
parentc8dff677e6d4221e00e864ef896b488908248b08
drivers/perf: hisi: Add TLP filter support

The PMU support to filter the TLP when counting the bandwidth with below
options:

- only count the TLP headers
- only count the TLP payloads
- count both TLP headers and payloads

In the current driver it's default to count the TLP payloads only, which
will have an implicity side effects that on the traffic only have header
only TLPs, we'll get no data.

Make this user configuration through "len_mode" parameter and make it
default to count both TLP headers and payloads when user not specified.
Also update the documentation for it.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20221117084136.53572-5-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