Skip to contentSkip to conversation

AMD IOMMU: ignore detection of GART IOMMU

PATCH Applied Joerg Roedel 2 participants 2 messages Jul 8, 2008 – Jul 9, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AMD IOMMU: ignore detection of GART IOMMU

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.

Cc Robert Richter <[email protected]>
Cc Bhavna Sarathy <[email protected]>
---
 arch/x86/kernel/amd_iommu_init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/amd_iommu_init.c +1 -1
index 2a13e43..bb02800 100644
@@ -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 || (iommu_detected && !gart_iommu_aperture))
 		return;
 
 	if (acpi_table_parse("IVRS", early_amd_iommu_detect) == 0) {
Signature · 1 line
1.5.3.7
Applied
#1 lore raw
Quoted 3 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.

applied to tip/x86/amd-iommu - thanks Joerg.

Ingo