Skip to content

Commit

Permalink
Merge branch 'iommu/fixes' into x86/amd
Browse files Browse the repository at this point in the history
  • Loading branch information
joergroedel committed Apr 26, 2024
2 parents a5a91e5 + 0f91d07 commit a4eecd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/iommu/amd/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4eecd7

Please sign in to comment.