Skip to content
Commit 8c17bbf6 authored by Shuah Khan's avatar Shuah Khan Committed by Joerg Roedel
Browse files

iommu/amd: Fix IOMMU perf counter clobbering during init



init_iommu_perf_ctr() clobbers the register when it checks write access
to IOMMU perf counters and fails to restore when they are writable.

Add save and restore to fix it.

Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Fixes: 30861ddc

 ("perf/x86/amd: Add IOMMU Performance Counter resource management")
Reviewed-by: default avatarSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tested-by: default avatarSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent bf708cfb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment