diff options
Diffstat (limited to 'arch/x86/kernel/aperture_64.c')
-rw-r--r-- | arch/x86/kernel/aperture_64.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c index 70c854fdfb21..5b6992799c9d 100644 --- a/arch/x86/kernel/aperture_64.c +++ b/arch/x86/kernel/aperture_64.c | |||
@@ -25,9 +25,9 @@ | |||
25 | #include <asm/dma.h> | 25 | #include <asm/dma.h> |
26 | #include <asm/k8.h> | 26 | #include <asm/k8.h> |
27 | 27 | ||
28 | int iommu_aperture; | 28 | int gart_iommu_aperture; |
29 | int iommu_aperture_disabled __initdata = 0; | 29 | int gart_iommu_aperture_disabled __initdata = 0; |
30 | int iommu_aperture_allowed __initdata = 0; | 30 | int gart_iommu_aperture_allowed __initdata = 0; |
31 | 31 | ||
32 | int fallback_aper_order __initdata = 1; /* 64MB */ | 32 | int fallback_aper_order __initdata = 1; /* 64MB */ |
33 | int fallback_aper_force __initdata = 0; | 33 | int fallback_aper_force __initdata = 0; |
@@ -204,14 +204,15 @@ static __u32 __init search_agp_bridge(u32 *order, int *valid_agp) | |||
204 | return 0; | 204 | return 0; |
205 | } | 205 | } |
206 | 206 | ||
207 | void __init iommu_hole_init(void) | 207 | void __init gart_iommu_hole_init(void) |
208 | { | 208 | { |
209 | int fix, num; | 209 | int fix, num; |
210 | u32 aper_size, aper_alloc = 0, aper_order = 0, last_aper_order = 0; | 210 | u32 aper_size, aper_alloc = 0, aper_order = 0, last_aper_order = 0; |
211 | u64 aper_base, last_aper_base = 0; | 211 | u64 aper_base, last_aper_base = 0; |
212 | int valid_agp = 0; | 212 | int valid_agp = 0; |
213 | 213 | ||
214 | if (iommu_aperture_disabled || !fix_aperture || !early_pci_allowed()) | 214 | if (gart_iommu_aperture_disabled || !fix_aperture || |
215 | !early_pci_allowed()) | ||
215 | return; | 216 | return; |
216 | 217 | ||
217 | printk(KERN_INFO "Checking aperture...\n"); | 218 | printk(KERN_INFO "Checking aperture...\n"); |
@@ -222,7 +223,7 @@ void __init iommu_hole_init(void) | |||
222 | continue; | 223 | continue; |
223 | 224 | ||
224 | iommu_detected = 1; | 225 | iommu_detected = 1; |
225 | iommu_aperture = 1; | 226 | gart_iommu_aperture = 1; |
226 | 227 | ||
227 | aper_order = (read_pci_config(0, num, 3, 0x90) >> 1) & 7; | 228 | aper_order = (read_pci_config(0, num, 3, 0x90) >> 1) & 7; |
228 | aper_size = (32 * 1024 * 1024) << aper_order; | 229 | aper_size = (32 * 1024 * 1024) << aper_order; |