diff options
Diffstat (limited to 'arch/x86/kernel/pci-gart_64.c')
-rw-r--r-- | arch/x86/kernel/pci-gart_64.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c index 79b514b381b1..06bcba536045 100644 --- a/arch/x86/kernel/pci-gart_64.c +++ b/arch/x86/kernel/pci-gart_64.c | |||
@@ -30,17 +30,17 @@ | |||
30 | #include <asm/mtrr.h> | 30 | #include <asm/mtrr.h> |
31 | #include <asm/pgtable.h> | 31 | #include <asm/pgtable.h> |
32 | #include <asm/proto.h> | 32 | #include <asm/proto.h> |
33 | #include <asm/iommu.h> | 33 | #include <asm/gart.h> |
34 | #include <asm/cacheflush.h> | 34 | #include <asm/cacheflush.h> |
35 | #include <asm/swiotlb.h> | 35 | #include <asm/swiotlb.h> |
36 | #include <asm/dma.h> | 36 | #include <asm/dma.h> |
37 | #include <asm/k8.h> | 37 | #include <asm/k8.h> |
38 | 38 | ||
39 | unsigned long iommu_bus_base; /* GART remapping area (physical) */ | 39 | static unsigned long iommu_bus_base; /* GART remapping area (physical) */ |
40 | static unsigned long iommu_size; /* size of remapping area bytes */ | 40 | static unsigned long iommu_size; /* size of remapping area bytes */ |
41 | static unsigned long iommu_pages; /* .. and in pages */ | 41 | static unsigned long iommu_pages; /* .. and in pages */ |
42 | 42 | ||
43 | u32 *iommu_gatt_base; /* Remapping table */ | 43 | static u32 *iommu_gatt_base; /* Remapping table */ |
44 | 44 | ||
45 | /* If this is disabled the IOMMU will use an optimized flushing strategy | 45 | /* If this is disabled the IOMMU will use an optimized flushing strategy |
46 | of only flushing when an mapping is reused. With it true the GART is flushed | 46 | of only flushing when an mapping is reused. With it true the GART is flushed |
@@ -135,8 +135,8 @@ static void flush_gart(void) | |||
135 | /* Debugging aid for drivers that don't free their IOMMU tables */ | 135 | /* Debugging aid for drivers that don't free their IOMMU tables */ |
136 | static void **iommu_leak_tab; | 136 | static void **iommu_leak_tab; |
137 | static int leak_trace; | 137 | static int leak_trace; |
138 | int iommu_leak_pages = 20; | 138 | static int iommu_leak_pages = 20; |
139 | void dump_leak(void) | 139 | static void dump_leak(void) |
140 | { | 140 | { |
141 | int i; | 141 | int i; |
142 | static int dump; | 142 | static int dump; |
@@ -627,12 +627,12 @@ void __init gart_iommu_init(void) | |||
627 | return; | 627 | return; |
628 | 628 | ||
629 | /* Did we detect a different HW IOMMU? */ | 629 | /* Did we detect a different HW IOMMU? */ |
630 | if (iommu_detected && !iommu_aperture) | 630 | if (iommu_detected && !gart_iommu_aperture) |
631 | return; | 631 | return; |
632 | 632 | ||
633 | if (no_iommu || | 633 | if (no_iommu || |
634 | (!force_iommu && end_pfn <= MAX_DMA32_PFN) || | 634 | (!force_iommu && end_pfn <= MAX_DMA32_PFN) || |
635 | !iommu_aperture || | 635 | !gart_iommu_aperture || |
636 | (no_agp && init_k8_gatt(&info) < 0)) { | 636 | (no_agp && init_k8_gatt(&info) < 0)) { |
637 | if (end_pfn > MAX_DMA32_PFN) { | 637 | if (end_pfn > MAX_DMA32_PFN) { |
638 | printk(KERN_ERR "WARNING more than 4GB of memory " | 638 | printk(KERN_ERR "WARNING more than 4GB of memory " |
@@ -733,9 +733,9 @@ void __init gart_parse_options(char *p) | |||
733 | fix_aperture = 0; | 733 | fix_aperture = 0; |
734 | /* duplicated from pci-dma.c */ | 734 | /* duplicated from pci-dma.c */ |
735 | if (!strncmp(p,"force",5)) | 735 | if (!strncmp(p,"force",5)) |
736 | iommu_aperture_allowed = 1; | 736 | gart_iommu_aperture_allowed = 1; |
737 | if (!strncmp(p,"allowed",7)) | 737 | if (!strncmp(p,"allowed",7)) |
738 | iommu_aperture_allowed = 1; | 738 | gart_iommu_aperture_allowed = 1; |
739 | if (!strncmp(p, "memaper", 7)) { | 739 | if (!strncmp(p, "memaper", 7)) { |
740 | fallback_aper_force = 1; | 740 | fallback_aper_force = 1; |
741 | p += 7; | 741 | p += 7; |