Skip to content

Commit a4eecd7

Browse files
committed
Merge branch 'iommu/fixes' into x86/amd
2 parents a5a91e5 + 0f91d07 commit a4eecd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/iommu/amd/iommu.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,6 +2800,10 @@ static int amd_iommu_def_domain_type(struct device *dev)
28002800
if (!dev_data)
28012801
return 0;
28022802

2803+
/* Always use DMA domain for untrusted device */
2804+
if (dev_is_pci(dev) && to_pci_dev(dev)->untrusted)
2805+
return IOMMU_DOMAIN_DMA;
2806+
28032807
/*
28042808
* Do not identity map IOMMUv2 capable devices when:
28052809
* - memory encryption is active, because some of those devices

0 commit comments

Comments
 (0)