Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99642
b: refs/heads/master
c: c1cbebe
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel authored and Ingo Molnar committed Jul 4, 2008
1 parent dcfb63e commit d0c30af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b14518fadd9d5915827d86d5c10e602fedf042e
refs/heads/master: c1cbebeec4a6be1c1fb54fbf2395ade2534b03c4
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ struct ivmd_header {
u64 range_length;
} __attribute__((packed));

static int __initdata amd_iommu_detected;

u16 amd_iommu_last_bdf;
struct list_head amd_iommu_unity_map;
unsigned amd_iommu_aperture_order = 26;
Expand Down Expand Up @@ -689,6 +691,9 @@ int __init amd_iommu_init(void)
return 0;
}

if (!amd_iommu_detected)
return -ENODEV;

/*
* First parse ACPI tables to find the largest Bus/Dev/Func
* we need to handle. Upon this information the shared data
Expand Down Expand Up @@ -831,6 +836,7 @@ void __init amd_iommu_detect(void)

if (acpi_table_parse("IVRS", early_amd_iommu_detect) == 0) {
iommu_detected = 1;
amd_iommu_detected = 1;
#ifdef CONFIG_GART_IOMMU
gart_iommu_aperture_disabled = 1;
gart_iommu_aperture = 0;
Expand Down

0 comments on commit d0c30af

Please sign in to comment.