mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
0242737dc4
Some HiSilicon SMMU PMCG suffers the erratum 162001900 that the PMU disable control sometimes fail to disable the counters. This will lead to error or inaccurate data since before we enable the counters the counter's still counting for the event used in last perf session. This patch tries to fix this by hardening the global disable process. Before disable the PMU, writing an invalid event type (0xffff) to focibly stop the counters. Correspondingly restore each events on pmu::pmu_enable(). Signed-off-by: Yicong Yang <yangyicong@hisilicon.com> Link: https://lore.kernel.org/r/20230814124012.58013-1-yangyicong@huawei.com Signed-off-by: Will Deacon <will@kernel.org> |
||
---|---|---|
.. | ||
arc | ||
arm | ||
arm64 | ||
ia64 | ||
m68k | ||
nios2 | ||
openrisc | ||
parisc | ||
sh | ||
sparc | ||
x86 | ||
xtensa | ||
index.rst |