mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
iommu-api: Extension to check for interrupt remapping
This patch allows IOMMU users to determine whether the hardware and software support safe, isolated interrupt remapping. Not all Intel IOMMUs have the hardware, and the software for AMD is not there yet. Signed-off-by: Tom Lyon <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
1c5474a65b
commit
323f99cbc3
2 changed files with 3 additions and 0 deletions
|
|
@ -3698,6 +3698,8 @@ static int intel_iommu_domain_has_cap(struct iommu_domain *domain,
|
|||
|
||||
if (cap == IOMMU_CAP_CACHE_COHERENCY)
|
||||
return dmar_domain->iommu_snooping;
|
||||
if (cap == IOMMU_CAP_INTR_REMAP)
|
||||
return intr_remapping_enabled;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue