AMD IOMMU: initialize IOMMU when GART is detected
PATCH 1/1 AMD IOMMU: initialize IOMMU when GART is detected
One of the last IOMMU updates covered a bug in the AMD IOMMU code. The early detection code does not succeed if the GART is already detected. This patch fixes this by removing the check for iommu_detected in the early detect code. On AMD systems only the GART code sets this variable to one beside the AMD IOMMU driver.
--- arch/x86/kernel/amd_iommu_init.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/amd_iommu_init.c +1 -1
@@ -828,7 +828,7 @@ static int __init early_amd_iommu_detect(struct acpi_table_header *table)void __init amd_iommu_detect (void ) { -if (swiotlb || no_iommu || iommu_detected) +if (swiotlb || no_iommu)return ;if (acpi_table_parse ("IVRS" , early_amd_iommu_detect) ==0 ) {
Signature · 1 line
1.5.3.7
Quoted 16 lines · Joerg Roedel
One of the last IOMMU updates covered a bug in the AMD IOMMU code. The early detection code does not succeed if the GART is already detected. This patch fixes this by removing the check for
iommu_detectedin the early detect code. On AMD systems only the GART code sets this variable to one beside the AMD IOMMU driver.Signed-off-by Joerg Roedel <[email protected]>--- arch/x86/kernel/amd_iommu_init.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kernel/amd_iommu_init.c +0
-0
arch/x86/kernel/amd_iommu_init.c static int __init early_amd_iommu_detect(struct acpi_table_header *table) · line 834
Quoted 8 lines
arch/x86/kernel/amd_iommu_init.c +1
-1@@ -828,7 +828,7 @@ static int __init early_amd_iommu_detect(struct acpi_table_header *table)void __init amd_iommu_detect (void ) { -if (swiotlb || no_iommu || iommu_detected) +if (swiotlb || no_iommu)return ;if (acpi_table_parse ("IVRS" , early_amd_iommu_detect) ==0 ) {
Argh. I posted the wrong version of the patch. Please ignore this one. I will send an updated one.
Joerg
Signature · 6 lines
| AMD Saxony Limited Liability Company & Co. KG
Operating | Wilschdorfer Landstr. 101, 01109 Dresden, Germany
System | Register Court Dresden: HRA 4896
Research | General Partner authorized to represent:
Center | AMD Saxony LLC (Wilmington, Delaware, US)
| General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy