Skip to contentSkip to conversation

print out node_data addr and bootmap_start addr

PATCH Applied Yinghai Lu 2 participants 3 messages Jan 29, 2008 – Jan 31, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Yinghai Lu

author
#1 lore raw

PATCH 1/4 print out node_data addr and bootmap_start addr

[PATCH 1/4] print out node_data addr and bootmap_start addr

arch/x86/mm/numa_64.c +6 -1
Index: linux-2.6/arch/x86/mm/numa_64.c
===================================================================
@@ -202,6 +202,8 @@ void __init setup_node_bootmem(int nodei
 	if (node_data[nodeid] == NULL)
 		return;
 	nodedata_phys = __pa(node_data[nodeid]);
+	printk(KERN_INFO "  NODE_DATA [%016lx - %016lx]\n", nodedata_phys,
+		nodedata_phys + pgdat_size - 1);
 
 	memset(NODE_DATA(nodeid), 0, sizeof(pg_data_t));
 	NODE_DATA(nodeid)->bdata = &plat_node_bdata[nodeid];
@@ -221,12 +223,15 @@ void __init setup_node_bootmem(int nodei
 		return;
 	}
 	bootmap_start = __pa(bootmap);
-	Dprintk("bootmap start %lu pages %lu\n", bootmap_start, bootmap_pages);
 
 	bootmap_size = init_bootmem_node(NODE_DATA(nodeid),
 					 bootmap_start >> PAGE_SHIFT,
 					 start_pfn, end_pfn);
 
+	printk(KERN_INFO "  bootmap [%016lx -  %016lx] pages %lx\n",
+		 bootmap_start, bootmap_start + bootmap_size - 1,
+		 bootmap_pages);
+
 	free_bootmem_with_active_regions(nodeid, end);
 
 	reserve_bootmem_node(NODE_DATA(nodeid), nodedata_phys, pgdat_size);
Applied
#2 lore raw
Quoted 1 line · Yinghai Lu

[PATCH 1/4] print out node_data addr and bootmap_start addr

thanks, applied.

arch/x86/mm/numa_64.c void __init setup_node_bootmem(int nodei

Quoted 7 lines
arch/x86/mm/numa_64.c +5 -0
 	nodedata_phys = __pa(node_data[nodeid]);
+	printk(KERN_INFO "  NODE_DATA [%016lx - %016lx]\n", nodedata_phys,
+		nodedata_phys + pgdat_size - 1);
 
+	printk(KERN_INFO "  bootmap [%016lx -  %016lx] pages %lx\n",
+		 bootmap_start, bootmap_start + bootmap_size - 1,
+		 bootmap_pages);

did this help you find the bootmap alignment bug crash?

Ingo

author
#3 lore raw
Quoted 11 lines · Ingo Molnar
Quoted 1 line · Yinghai Lu

[PATCH 1/4] print out node_data addr and bootmap_start addr

thanks, applied.

Quoted 3 lines
arch/x86/mm/numa_64.c +2 -0
 	nodedata_phys = __pa(node_data[nodeid]);
+	printk(KERN_INFO "  NODE_DATA [%016lx - %016lx]\n", nodedata_phys,
+		nodedata_phys + pgdat_size - 1);
Quoted 5 lines

arch/x86/mm/numa_64.c void __init setup_node_bootmem(int nodei · line 233

Quoted 3 lines
arch/x86/mm/numa_64.c +3 -0
+	printk(KERN_INFO "  bootmap [%016lx -  %016lx] pages %lx\n",
+		 bootmap_start, bootmap_start + bootmap_size - 1,
+		 bootmap_pages);

did this help you find the bootmap alignment bug crash?

yes.

YH