iommu/vt-d: Multiple descriptors per qi_submit_sync()
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 16 May 2020 06:20:55 +0000 (14:20 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 18 May 2020 13:37:26 +0000 (15:37 +0200)
commit8a1d824625402b3ef3c3e5965663354ff0394d86
tree38ef2a4bd725cd3cdf73e8656fc5cf2e08236fb8
parent064a57d7ddfc46ada02b477b91c478001b03bfa3
iommu/vt-d: Multiple descriptors per qi_submit_sync()

Current qi_submit_sync() only supports single invalidation descriptor
per submission and appends wait descriptor after each submission to
poll the hardware completion. This extends the qi_submit_sync() helper
to support multiple descriptors, and add an option so that the caller
could specify the Page-request Drain (PD) bit in the wait descriptor.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20200516062101.29541-13-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dmar.c
drivers/iommu/intel-pasid.c
drivers/iommu/intel-svm.c
drivers/iommu/intel_irq_remapping.c
include/linux/intel-iommu.h