iommu/vt-d: Add page request draining support
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 16 May 2020 06:20:58 +0000 (14:20 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 18 May 2020 13:37:26 +0000 (15:37 +0200)
commit66ac4db36f4c12a3b02db864ccb0801cd938b6de
tree136555ffb2b1a1461f34e3d5f95f76eb3fce2140
parent37e91bd4b39922b31ca4e6c4eabb0d7140b14e74
iommu/vt-d: Add page request draining support

When a PASID is stopped or terminated, there can be pending PRQs
(requests that haven't received responses) in remapping hardware.
This adds the interface to drain page requests and call it when a
PASID is terminated.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20200516062101.29541-16-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c
include/linux/intel-iommu.h