Skip to content

Commit 48dc345

Browse files
hegdevasantjoergroedel
authored andcommitted
iommu/amd: Check EFR[EPHSup] bit before enabling PPR
Check for EFR[EPHSup] bit before enabling PPR. This bit must be set to enable PPR. Reported-by: Borislav Petkov <[email protected]> Fixes: c4cb231 ("iommu/amd: Add support for enable/disable IOPF") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218900 Tested-by: Borislav Petkov <[email protected]> Tested-by: Jean-Christophe Guillain <[email protected]> Signed-off-by: Vasant Hegde <[email protected]> Reviewed-by: Suravee Suthikulpanit <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 998a0a3 commit 48dc345

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iommu/amd/amd_iommu.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ static inline int check_feature_gpt_level(void)
129129
static inline bool amd_iommu_gt_ppr_supported(void)
130130
{
131131
return (check_feature(FEATURE_GT) &&
132-
check_feature(FEATURE_PPR));
132+
check_feature(FEATURE_PPR) &&
133+
check_feature(FEATURE_EPHSUP));
133134
}
134135

135136
static inline u64 iommu_virt_to_phys(void *vaddr)

0 commit comments

Comments
 (0)