diff options
author | Joerg Roedel <jroedel@suse.de> | 2024-04-26 12:16:17 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-04-26 12:16:17 +0200 |
commit | a4eecd720546527d9c3091231b531e8ca18ba718 (patch) | |
tree | 2a7986036d4f4b38ee05a25a65024263e29b398c /drivers/iommu/amd | |
parent | a5a91e54846d35c234939fb9170e035805353049 (diff) | |
parent | 0f91d0795741c12cee200667648669a91b568735 (diff) |
Merge branch 'iommu/fixes' into x86/amd
Diffstat (limited to 'drivers/iommu/amd')
-rw-r--r-- | drivers/iommu/amd/iommu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c index f7ba6552ccad..52a04a6db397 100644 --- a/drivers/iommu/amd/iommu.c +++ b/drivers/iommu/amd/iommu.c @@ -2800,6 +2800,10 @@ static int amd_iommu_def_domain_type(struct device *dev) if (!dev_data) return 0; + /* Always use DMA domain for untrusted device */ + if (dev_is_pci(dev) && to_pci_dev(dev)->untrusted) + return IOMMU_DOMAIN_DMA; + /* * Do not identity map IOMMUv2 capable devices when: * - memory encryption is active, because some of those devices |