Skip to content

Commit 1548978

Browse files
yiliu1765joergroedel
authored andcommitted
iommu/vt-d: Check correct capability for sagaw determination
Check 5-level paging capability for 57 bits address width instead of checking 1GB large page capability. Fixes: 53fc7ad ("iommu/vt-d: Correctly calculate sagaw value of IOMMU") Cc: [email protected] Reported-by: Raghunathan Srinivasan <[email protected]> Signed-off-by: Yi Liu <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Raghunathan Srinivasan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 7ebb5f8 commit 1548978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ static unsigned long __iommu_calculate_sagaw(struct intel_iommu *iommu)
399399
{
400400
unsigned long fl_sagaw, sl_sagaw;
401401

402-
fl_sagaw = BIT(2) | (cap_fl1gp_support(iommu->cap) ? BIT(3) : 0);
402+
fl_sagaw = BIT(2) | (cap_5lp_support(iommu->cap) ? BIT(3) : 0);
403403
sl_sagaw = cap_sagaw(iommu->cap);
404404

405405
/* Second level only. */

0 commit comments

Comments
 (0)