Skip to content
Snippets Groups Projects
Commit 0242737d authored by Yicong Yang's avatar Yicong Yang Committed by Will Deacon
Browse files

perf/smmuv3: Enable HiSilicon Erratum 162001900 quirk for HIP08/09


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: default avatarYicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20230814124012.58013-1-yangyicong@huawei.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 90d68677
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment