Merge branches 'amd-iommu/fixes' and 'dma-debug/fixes' into iommu/fixes
[cascardo/linux.git] / arch / x86 / kernel / amd_iommu.c
index 98f230f..0285521 100644 (file)
@@ -1220,6 +1220,8 @@ static void __detach_device(struct protection_domain *domain, u16 devid)
        amd_iommu_dev_table[devid].data[1] = 0;
        amd_iommu_dev_table[devid].data[2] = 0;
 
+       amd_iommu_apply_erratum_63(devid);
+
        /* decrease reference counter */
        domain->dev_cnt -= 1;