diff options
author | Suravee Suthikulpanit <[email protected]> | 2021-02-08 06:27:12 -0600 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2021-02-12 11:46:45 +0100 |
commit | 6778ff5b21bd8e78c8bd547fd66437cf2657fd9b (patch) | |
tree | 0d0287f292266ac12606d51a5d17ca3dbc44f6d4 /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | 89c9a09cb9f6e0a7df77f9c9bafd3c96148bf0d5 (diff) |
iommu/amd: Fix performance counter initialization
Certain AMD platforms enable power gating feature for IOMMU PMC,
which prevents the IOMMU driver from updating the counter while
trying to validate the PMC functionality in the init_iommu_perf_ctr().
This results in disabling PMC support and the following error message:
"AMD-Vi: Unable to read/write to IOMMU perf counter"
To workaround this issue, disable power gating temporarily by programming
the counter source to non-zero value while validating the counter,
and restore the prior state afterward.
Signed-off-by: Suravee Suthikulpanit <[email protected]>
Tested-by: Tj (Elloe Linux) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=201753
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions