aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-07-13 17:29:41 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-14 03:24:16 -0400
commit32b23e9a7331fce57eb0af52e19e8409fdef831b (patch)
treefc13403009f0075f369e19e7825e04f9ecb850c7 /arch/x86/kernel
parent11369f356b66d363a615fde2c5526962f7683674 (diff)
x86: max_low_pfn_mapped fix #4
only add direct mapping for aperture Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Cc: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/pci-gart_64.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c
index a614ee10f846..c3fe78406d18 100644
--- a/arch/x86/kernel/pci-gart_64.c
+++ b/arch/x86/kernel/pci-gart_64.c
@@ -679,11 +679,8 @@ static __init int init_k8_gatt(struct agp_kern_info *info)
679 /* need to map that range */ 679 /* need to map that range */
680 end_pfn = (aper_base>>PAGE_SHIFT) + (aper_size>>PAGE_SHIFT); 680 end_pfn = (aper_base>>PAGE_SHIFT) + (aper_size>>PAGE_SHIFT);
681 if (end_pfn > max_low_pfn_mapped) { 681 if (end_pfn > max_low_pfn_mapped) {
682 start_pfn = max_low_pfn_mapped; 682 start_pfn = (aper_base>>PAGE_SHIFT);
683 max_low_pfn_mapped = init_memory_mapping(start_pfn<<PAGE_SHIFT, 683 init_memory_mapping(start_pfn<<PAGE_SHIFT, end_pfn<<PAGE_SHIFT);
684 end_pfn<<PAGE_SHIFT);
685 if (max_pfn_mapped < max_low_pfn_mapped)
686 max_pfn_mapped = max_low_pfn_mapped;
687 } 684 }
688 return 0; 685 return 0;
689 686