Skip to content

Commit 1369a5c

Browse files
Artie Dingshiloong
authored andcommitted
configs: enable AMD IOMMU configs
fix #27365977 It enables AMD_IOMMU for AMD platforms which support X2APIC. Because AMD IOMMU driver initializes OMMU protection domains as direct map, IOMMU_DEFAULT_PASSTHROUGH is needed. Signed-off-by: Artie Ding <artie.ding@linux.alibaba.com> Reviewed-by: Shile Zhang <shile.zhang@linux.alibaba.com> Acked-by: Caspar Zhang <caspar@linux.alibaba.com>
1 parent 1607a48 commit 1369a5c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

configs/config-4.19.y-x86_64

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,8 @@ CONFIG_PCI_QUIRKS=y
579579
CONFIG_PCI_ATS=y
580580
CONFIG_PCI_LOCKLESS_CONFIG=y
581581
CONFIG_PCI_IOV=y
582-
# CONFIG_PCI_PRI is not set
583-
# CONFIG_PCI_PASID is not set
582+
CONFIG_PCI_PRI=y
583+
CONFIG_PCI_PASID=y
584584
CONFIG_PCI_LABEL=y
585585
CONFIG_HOTPLUG_PCI=y
586586
CONFIG_HOTPLUG_PCI_ACPI=y
@@ -3337,9 +3337,10 @@ CONFIG_IOMMU_SUPPORT=y
33373337
# Generic IOMMU Pagetable Support
33383338
#
33393339
# CONFIG_IOMMU_DEBUGFS is not set
3340-
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
3340+
CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y
33413341
CONFIG_IOMMU_IOVA=y
3342-
# CONFIG_AMD_IOMMU is not set
3342+
CONFIG_AMD_IOMMU=y
3343+
CONFIG_AMD_IOMMU_V2=m
33433344
CONFIG_DMAR_TABLE=y
33443345
CONFIG_INTEL_IOMMU=y
33453346
# CONFIG_INTEL_IOMMU_SVM is not set

configs/config-4.19.y-x86_64-debug

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ CONFIG_PCI_QUIRKS=y
584584
CONFIG_PCI_ATS=y
585585
CONFIG_PCI_LOCKLESS_CONFIG=y
586586
CONFIG_PCI_IOV=y
587-
# CONFIG_PCI_PRI is not set
588-
# CONFIG_PCI_PASID is not set
587+
CONFIG_PCI_PRI=y
588+
CONFIG_PCI_PASID=y
589589
CONFIG_PCI_LABEL=y
590590
CONFIG_HOTPLUG_PCI=y
591591
CONFIG_HOTPLUG_PCI_ACPI=y
@@ -3340,9 +3340,10 @@ CONFIG_IOMMU_SUPPORT=y
33403340
# Generic IOMMU Pagetable Support
33413341
#
33423342
# CONFIG_IOMMU_DEBUGFS is not set
3343-
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
3343+
CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y
33443344
CONFIG_IOMMU_IOVA=y
3345-
# CONFIG_AMD_IOMMU is not set
3345+
CONFIG_AMD_IOMMU=y
3346+
CONFIG_AMD_IOMMU_V2=m
33463347
CONFIG_DMAR_TABLE=y
33473348
CONFIG_INTEL_IOMMU=y
33483349
# CONFIG_INTEL_IOMMU_SVM is not set

0 commit comments

Comments
 (0)