iommu/vt-d: Add definitions for PFSID
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Thu, 7 Jun 2018 16:56:59 +0000 (09:56 -0700)
committerJoerg Roedel <jroedel@suse.de>
Fri, 6 Jul 2018 11:26:10 +0000 (13:26 +0200)
commit0f725561e168485eff7277d683405c05b192f537
tree57881b4ce4a1eeb9abef25183f1753a39797c2d6
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063
iommu/vt-d: Add definitions for PFSID

When SRIOV VF device IOTLB is invalidated, we need to provide
the PF source ID such that IOMMU hardware can gauge the depth
of invalidation queue which is shared among VFs. This is needed
when device invalidation throttle (DIT) capability is supported.

This patch adds bit definitions for checking and tracking PFSID.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: stable@vger.kernel.org
Cc: "Ashok Raj" <ashok.raj@intel.com>
Cc: "Lu Baolu" <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c
include/linux/intel-iommu.h