Skip to content

Commit 84c11e4

Browse files
LuBaolujoergroedel
authored andcommitted
iommu/vt-d: Save the right domain ID used by hardware
The driver sets a default domain id (FLPT_DEFAULT_DID) in the first level only pasid entry, but saves a different domain id in @sdev->did. The value saved in @sdev->did will be used to invalidate the translation caches. Hence, the driver might result in invalidating the caches with a wrong domain id. Cc: Ashok Raj <ashok.raj@intel.com> Cc: Jacob Pan <jacob.jun.pan@linux.intel.com> Fixes: 1c4f88b ("iommu/vt-d: Shared virtual address in scalable mode") Signed-off-by: Liu Yi L <yi.l.liu@intel.com> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 5bb71fc commit 84c11e4

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
@@ -5335,7 +5335,7 @@ int intel_iommu_enable_pasid(struct intel_iommu *iommu, struct intel_svm_dev *sd
53355335

53365336
ctx_lo = context[0].lo;
53375337

5338-
sdev->did = domain->iommu_did[iommu->seq_id];
5338+
sdev->did = FLPT_DEFAULT_DID;
53395339
sdev->sid = PCI_DEVID(info->bus, info->devfn);
53405340

53415341
if (!(ctx_lo & CONTEXT_PASIDE)) {

0 commit comments

Comments
 (0)