From: Yinghai Lu Date: Sun, 13 Jul 2008 21:29:41 +0000 (-0700) Subject: x86: max_low_pfn_mapped fix #4 X-Git-Tag: v2.6.27-rc1~1106^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=32b23e9a7331fce57eb0af52e19e8409fdef831b;p=linux-2.6-omap-h63xx.git x86: max_low_pfn_mapped fix #4 only add direct mapping for aperture Signed-off-by: Yinghai Lu Cc: Suresh Siddha Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c index a614ee10f84..c3fe78406d1 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) /* need to map that range */ end_pfn = (aper_base>>PAGE_SHIFT) + (aper_size>>PAGE_SHIFT); if (end_pfn > max_low_pfn_mapped) { - start_pfn = max_low_pfn_mapped; - max_low_pfn_mapped = init_memory_mapping(start_pfn<>PAGE_SHIFT); + init_memory_mapping(start_pfn<