]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Check correct capability for sagaw determination
authorYi Liu <yi.l.liu@intel.com>
Wed, 21 Sep 2022 02:40:54 +0000 (10:40 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 21 Sep 2022 08:22:54 +0000 (10:22 +0200)
commit9bc283fa48848b517d345f1b56d334c361e252af
treeb1e0232ac7c2c65923d91044593833db862feac8
parentddd68ca97a10b5fa84161048378cda3f08a55397
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: 1132d39dd2ce ("iommu/vt-d: Correctly calculate sagaw value of IOMMU")
Cc: stable@vger.kernel.org
Reported-by: Raghunathan Srinivasan <raghunathan.srinivasan@intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Raghunathan Srinivasan <raghunathan.srinivasan@intel.com>
Link: https://lore.kernel.org/r/20220916071212.2223869-2-yi.l.liu@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c