aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/discontig_32.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-01 16:15:22 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-03 07:26:26 -0400
commite8c27ac9191ab9e6506ae5cbe70d87ac50f8e960 (patch)
tree2495cf0575b34b69210eca62c91224b474cf5092 /arch/x86/mm/discontig_32.c
parent0596152388e234efebce464355186ad9e16c8cb6 (diff)
x86, numa, 32-bit: print out debug info on all kvas
also fix the print out of node_remap_end_vaddr Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/discontig_32.c')
-rw-r--r--arch/x86/mm/discontig_32.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/mm/discontig_32.c b/arch/x86/mm/discontig_32.c
index ebbbba338150..3150ad385672 100644
--- a/arch/x86/mm/discontig_32.c
+++ b/arch/x86/mm/discontig_32.c
@@ -168,6 +168,8 @@ static void __init allocate_pgdat(int nid)
168 reserve_early(pgdat_phys, pgdat_phys + sizeof(pg_data_t), 168 reserve_early(pgdat_phys, pgdat_phys + sizeof(pg_data_t),
169 "NODE_DATA"); 169 "NODE_DATA");
170 } 170 }
171 printk(KERN_DEBUG "allocate_pgdat: node %d NODE_DATA %08lx\n",
172 nid, (unsigned long)NODE_DATA(nid));
171} 173}
172 174
173#ifdef CONFIG_DISCONTIGMEM 175#ifdef CONFIG_DISCONTIGMEM
@@ -208,8 +210,12 @@ void __init remap_numa_kva(void)
208 int node; 210 int node;
209 211
210 for_each_online_node(node) { 212 for_each_online_node(node) {
213 printk(KERN_DEBUG "remap_numa_kva: node %d\n", node);
211 for (pfn=0; pfn < node_remap_size[node]; pfn += PTRS_PER_PTE) { 214 for (pfn=0; pfn < node_remap_size[node]; pfn += PTRS_PER_PTE) {
212 vaddr = node_remap_start_vaddr[node]+(pfn<<PAGE_SHIFT); 215 vaddr = node_remap_start_vaddr[node]+(pfn<<PAGE_SHIFT);
216 printk(KERN_DEBUG "remap_numa_kva: %08lx to pfn %08lx\n",
217 (unsigned long)vaddr,
218 node_remap_start_pfn[node] + pfn);
213 set_pmd_pfn((ulong) vaddr, 219 set_pmd_pfn((ulong) vaddr,
214 node_remap_start_pfn[node] + pfn, 220 node_remap_start_pfn[node] + pfn,
215 PAGE_KERNEL_LARGE); 221 PAGE_KERNEL_LARGE);
@@ -293,8 +299,7 @@ static void init_remap_allocator(int nid)
293 299
294 printk ("node %d will remap to vaddr %08lx - %08lx\n", nid, 300 printk ("node %d will remap to vaddr %08lx - %08lx\n", nid,
295 (ulong) node_remap_start_vaddr[nid], 301 (ulong) node_remap_start_vaddr[nid],
296 (ulong) pfn_to_kaddr(highstart_pfn 302 (ulong) node_remap_end_vaddr[nid]);
297 + node_remap_offset[nid] + node_remap_size[nid]));
298} 303}
299#else 304#else
300void *alloc_remap(int nid, unsigned long size) 305void *alloc_remap(int nid, unsigned long size)