lkml.org 
[lkml]   [2008]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] x86: max_low_pfn_mapped fix #4
Date

only add direct mapping for aperture

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

---
arch/x86/kernel/pci-gart_64.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
Index: linux-2.6/arch/x86/kernel/pci-gart_64.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/pci-gart_64.c
+++ linux-2.6/arch/x86/kernel/pci-gart_64.c
@@ -680,11 +680,8 @@ static __init int init_k8_gatt(struct ag
/* 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,
- end_pfn<<PAGE_SHIFT);
- if (max_pfn_mapped < max_low_pfn_mapped)
- max_pfn_mapped = max_low_pfn_mapped;
+ start_pfn = (aper_base>>PAGE_SHIFT);
+ init_memory_mapping(start_pfn<<PAGE_SHIFT, end_pfn<<PAGE_SHIFT);
}
return 0;


\
 
 \ /
  Last update: 2008-07-13 23:35    [W:0.312 / U:0.064 seconds]
©2003-2011 Jasper Spaans. Advertise on this site