Misc fixes to intel iommu driver
Subsystems (3)
cover Misc fixes to intel iommu driver
One fix and one cleanup.
Base commit 3245cb65fd91cd514801bf91f5a3066d562f0ac4
Yi Liu (2):
iommu/vt-d: Check correct capability for sagaw determination iommu/vt-d: Rename cap_5lp_support to cap_fl5lp_support
drivers/iommu/intel/cap_audit.c | 4 ++-- drivers/iommu/intel/iommu.c | 2 +- drivers/iommu/intel/iommu.h | 2 +- drivers/iommu/intel/pasid.c | 2 +- drivers/iommu/intel/svm.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 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.
--- drivers/iommu/intel/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/intel/iommu.c +1 -1
@@ -399,7 +399,7 @@ static unsigned long __iommu_calculate_sagaw(struct intel_iommu *iommu) {unsigned long fl_sagaw, sl_sagaw; - fl_sagaw =BIT (2 ) | (cap_fl1gp_support (iommu->cap) ?BIT (3 ) :0 ); + fl_sagaw =BIT (2 ) | (cap_5lp_support (iommu->cap) ?BIT (3 ) :0 ); sl_sagaw =cap_sagaw (iommu->cap);/* Second level only. */
Signature · 1 line
2.34.1
Baolu Lu
maintainerRe: [PATCH 1/2] iommu/vt-d: Check correct capability for sagaw determination
Quoted 6 lines · Yi Liu
Check 5-level paging capability for 57 bits address width instead of checking 1GB large page capability.
Fixes 53fc7ad6edf2 ("iommu/vt-d: Correctly calculate sagaw value of IOMMU")Reported-by Raghunathan Srinivasan<[email protected]>
This fix is fine to me. Thanks for doing this.
Raghu, what do you think of this fixing? If it works for you, can I have your reviewed-by.
Best regards,
baolu
Re: [PATCH 1/2] iommu/vt-d: Check correct capability for sagaw determination
In reply to Yi LiuQuoted 7 lines · Yi Liu
Check 5-level paging capability for 57 bits address width instead of checking 1GB large page capability.
Fixes 53fc7ad6edf2 ("iommu/vt-d: Correctly calculate sagaw value of IOMMU")Reported-by Raghunathan Srinivasan <[email protected]>Signed-off-by Yi Liu <[email protected]>
Quoted 20 lines
--- drivers/iommu/intel/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iommu/intel/iommu.c +1
-1@@ -399,7 +399,7 @@ static unsigned long __iommu_calculate_sagaw(struct intel_iommu *iommu) {unsigned long fl_sagaw, sl_sagaw; - fl_sagaw =BIT (2 ) | (cap_fl1gp_support (iommu->cap) ?BIT (3 ) :0 ); + fl_sagaw =BIT (2 ) | (cap_5lp_support (iommu->cap) ?BIT (3 ) :0 ); sl_sagaw =cap_sagaw (iommu->cap);/* Second level only. */ Signature · 1 line
2.34.1
RE: [PATCH 1/2] iommu/vt-d: Check correct capability for sagaw determination
In reply to Yi LiuQuoted 11 lines
From: Liu, Yi L <[email protected]>
Sent: Friday, September 16, 2022 3:12 PMCheck 5-level paging capability for 57 bits address width instead of checking 1GB large page capability.
Fixes 53fc7ad6edf2 ("iommu/vt-d: Correctly calculate sagaw value ofIOMMU")
Reported-by Raghunathan Srinivasan <[email protected]>Signed-off-by Yi Liu <[email protected]>
Re: [PATCH 1/2] iommu/vt-d: Check correct capability for sagaw determination
In reply to Yi LiuQuoted 7 lines · Yi Liu
Check 5-level paging capability for 57 bits address width instead of checking 1GB large page capability.
Fixes 53fc7ad6edf2 ("iommu/vt-d: Correctly calculate sagaw value of IOMMU")Reported-by Raghunathan Srinivasan<[email protected]>Signed-off-by Yi Liu<[email protected]>
Queued for v6.0. Thank you very much!
https://lore.kernel.org/linux-iommu/[email protected]
Best regards,
baolu
Re: [PATCH 1/2] iommu/vt-d: Check correct capability for sagaw determination
Quoted 4 lines · Baolu Lu
Quoted 3 lines · Yi Liu
Check 5-level paging capability for 57 bits address width instead of checking 1GB large page capability.
Quoted 9 lines
Quoted 4 lines
Fixes 53fc7ad6edf2 ("iommu/vt-d: Correctly calculate sagaw value of IOMMU")Reported-by Raghunathan Srinivasan<[email protected]>Signed-off-by Yi Liu<[email protected]>Queued for v6.0. Thank you very much!
grt. btw. how about below? not sure why it didn't show up in this series. :(
Quoted 2 lines
Best regards,
baolu
Signature · 2 lines
Regards, Yi Liu
Baolu Lu
maintainerRe: [PATCH 1/2] iommu/vt-d: Check correct capability for sagaw determination
Quoted 10 lines · Yi Liu
Quoted 9 lines · Baolu Lu
Quoted 7 lines · Yi Liu
Check 5-level paging capability for 57 bits address width instead of checking 1GB large page capability.
Fixes 53fc7ad6edf2 ("iommu/vt-d: Correctly calculate sagaw value of IOMMU")Reported-by Raghunathan Srinivasan<[email protected]>Signed-off-by Yi Liu<[email protected]>
Quoted 7 lines
Quoted 3 lines
Queued for v6.0. Thank you very much!
grt. btw. how about below? not sure why it didn't show up in this series. 🙁
This is not a fix. I will queue it for v6.1-rc1 later.
Best regards,
baolu