diff options
author | Vasant Hegde <[email protected]> | 2023-02-07 09:17:52 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-02-16 10:45:33 +0100 |
commit | 18792e99ea2fea27c72eb1ecca1879e5e6be304d (patch) | |
tree | 1677e048540e1e13fef669bf5d25979453efae99 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | b6b26d86c61c441144c72f842f7469bb686e1211 (diff) |
iommu/amd: Do not identity map v2 capable device when snp is enabled
Flow:
- Booted system with SNP enabled, memory encryption off and
IOMMU DMA translation mode
- AMD driver detects v2 capable device and amd_iommu_def_domain_type()
returns identity mode
- amd_iommu_domain_alloc() returns NULL an SNP is enabled
- System will fail to register device
On SNP enabled system, passthrough mode is not supported. IOMMU default
domain is set to translation mode. We need to return zero from
amd_iommu_def_domain_type() so that it allocates translation domain.
Fixes: fb2accadaa94 ("iommu/amd: Introduce function to check and enable SNP")
CC: Suravee Suthikulpanit <[email protected]>
Signed-off-by: Vasant Hegde <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions