iommu/vt-d: Invalidate PASID cache when root/context entry changed
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 20 Mar 2021 02:54:13 +0000 (10:54 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Apr 2021 09:55:47 +0000 (11:55 +0200)
commitc0474a606ecb9326227b4d68059942f9db88a897
tree4fda2b0c23bf96050e1faaac328b951a94327e64
parenteea53c5816889ee8b64544fa2e9311a81184ff9c
iommu/vt-d: Invalidate PASID cache when root/context entry changed

When the Intel IOMMU is operating in the scalable mode, some information
from the root and context table may be used to tag entries in the PASID
cache. Software should invalidate the PASID-cache when changing root or
context table entries.

Suggested-by: Ashok Raj <ashok.raj@intel.com>
Fixes: 7373a8cc38197 ("iommu/vt-d: Setup context and enable RID2PASID support")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210320025415.641201-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c
include/linux/intel-iommu.h