]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers/perf: hisi_pcie: Fix TLP headers bandwidth counting
authorYicong Yang <yangyicong@hisilicon.com>
Thu, 29 Aug 2024 09:03:31 +0000 (17:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:28:53 +0000 (16:28 +0200)
commit666a46a90f186dd1860d84ce4dd1ec1aab0d37d8
tree8d385d6d5bf88af9955b803df4b5e5aab5326aaa
parent6206a0edb29bcb57f89255538c66f25b653230dc
drivers/perf: hisi_pcie: Fix TLP headers bandwidth counting

[ Upstream commit 17bf68aeb3642221e3e770399b5a52f370747ac1 ]

We make the initial value of event ctrl register as HISI_PCIE_INIT_SET
and modify according to the user options. This will make TLP headers
bandwidth only counting never take effect since HISI_PCIE_INIT_SET
configures to count the TLP payloads bandwidth. Fix this by making
the initial value of event ctrl register as 0.

Fixes: 17d573984d4d ("drivers/perf: hisi: Add TLP filter support")
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240829090332.28756-3-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/hisilicon/hisi_pcie_pmu.c