summaryrefslogtreecommitdiff
path: root/drivers/iommu/intel/iommu.c
diff options
context:
space:
mode:
authorYanfei Xu <yanfei.xu@intel.com>2023-08-09 15:48:04 +0300
committerJoerg Roedel <jroedel@suse.de>2023-08-09 18:46:19 +0300
commit8a3b8e63f8371c1247b7aa24ff9c5312f1a6948b (patch)
tree53610426ddfad059106e33392fbf7775cb35249b /drivers/iommu/intel/iommu.c
parentd3aedf94f480971f7ffe88d337ba72e6f7d32497 (diff)
downloadlinux-8a3b8e63f8371c1247b7aa24ff9c5312f1a6948b.tar.xz
iommu/vt-d: Fix to flush cache of PASID directory table
Even the PCI devices don't support pasid capability, PASID table is mandatory for a PCI device in scalable mode. However flushing cache of pasid directory table for these devices are not taken after pasid table is allocated as the "size" of table is zero. Fix it by calculating the size by page order. Found this when reading the code, no real problem encountered for now. Fixes: 194b3348bdbb ("iommu/vt-d: Fix PASID directory pointer coherency") Suggested-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Yanfei Xu <yanfei.xu@intel.com> Link: https://lore.kernel.org/r/20230616081045.721873-1-yanfei.xu@intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel/iommu.c')
0 files changed, 0 insertions, 0 deletions