Skip to content

Commit ebfaf2b

Browse files
Alex Williamsonwilldeacon
authored andcommitted
iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY
In removing IOMMU_CAP_DEFERRED_FLUSH, the below referenced commit was over-eager in removing the return, resulting in the test for IOMMU_CAP_CACHE_COHERENCY falling through to an irrelevant option. Restore dropped return. Fixes: 1c18a12 ("iommu/dma: Always allow DMA-FQ when iommupt provides the iommu_domain") Signed-off-by: Alex Williamson <alex.williamson@nvidia.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Will Deacon <will@kernel.org>
1 parent 1c18a12 commit ebfaf2b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/iommu/intel/iommu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,6 +3212,7 @@ static bool intel_iommu_capable(struct device *dev, enum iommu_cap cap)
32123212

32133213
switch (cap) {
32143214
case IOMMU_CAP_CACHE_COHERENCY:
3215+
return true;
32153216
case IOMMU_CAP_PRE_BOOT_PROTECTION:
32163217
return dmar_platform_optin();
32173218
case IOMMU_CAP_ENFORCE_CACHE_COHERENCY:

0 commit comments

Comments
 (0)