|
@@ -1974,8 +1974,8 @@ static void set_dte_entry(u16 devid, struct protection_domain *domain, bool ats)
|
|
|
static void clear_dte_entry(u16 devid)
|
|
|
{
|
|
|
/* remove entry from the device table seen by the hardware */
|
|
|
- amd_iommu_dev_table[devid].data[0] = IOMMU_PTE_P | IOMMU_PTE_TV;
|
|
|
- amd_iommu_dev_table[devid].data[1] = 0;
|
|
|
+ amd_iommu_dev_table[devid].data[0] = IOMMU_PTE_P | IOMMU_PTE_TV;
|
|
|
+ amd_iommu_dev_table[devid].data[1] &= DTE_FLAG_MASK;
|
|
|
|
|
|
amd_iommu_apply_erratum_63(devid);
|
|
|
}
|