diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2015-09-09 06:40:47 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2015-10-15 07:55:45 -0400 |
| commit | 2f26e0a9c9860db290d63e9d85c2c8c09813677f (patch) | |
| tree | 6a3712f991b9ae60b8eaece608c355b66fd3e5b5 /include/linux/dma_remapping.h | |
| parent | b16d0cb9e2fc5c311948c660dd6f4b59a9ccd333 (diff) | |
iommu/vt-d: Add basic SVM PASID support
This provides basic PASID support for endpoint devices, tested with a
version of the i915 driver.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/dma_remapping.h')
| -rw-r--r-- | include/linux/dma_remapping.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/dma_remapping.h b/include/linux/dma_remapping.h index 7ac17f57250e..0e114bfabeed 100644 --- a/include/linux/dma_remapping.h +++ b/include/linux/dma_remapping.h | |||
| @@ -20,6 +20,13 @@ | |||
| 20 | #define CONTEXT_TT_MULTI_LEVEL 0 | 20 | #define CONTEXT_TT_MULTI_LEVEL 0 |
| 21 | #define CONTEXT_TT_DEV_IOTLB 1 | 21 | #define CONTEXT_TT_DEV_IOTLB 1 |
| 22 | #define CONTEXT_TT_PASS_THROUGH 2 | 22 | #define CONTEXT_TT_PASS_THROUGH 2 |
| 23 | /* Extended context entry types */ | ||
| 24 | #define CONTEXT_TT_PT_PASID 4 | ||
| 25 | #define CONTEXT_TT_PT_PASID_DEV_IOTLB 5 | ||
| 26 | #define CONTEXT_TT_MASK (7ULL << 2) | ||
| 27 | |||
| 28 | #define CONTEXT_PRS (1ULL << 9) | ||
| 29 | #define CONTEXT_PASIDE (1ULL << 11) | ||
| 23 | 30 | ||
| 24 | struct intel_iommu; | 31 | struct intel_iommu; |
| 25 | struct dmar_domain; | 32 | struct dmar_domain; |
