aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/k8topology_64.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2009-09-25 18:19:47 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-12 16:56:45 -0400
commit1af5ba514f0c2f2e2af965a4ffa5e8ab269271b9 (patch)
treee8771e36d56a7225b6f0a63d50dc480866582883 /arch/x86/mm/k8topology_64.c
parentd93a8f829fe1d2f3002f2c6ddb553d12db420412 (diff)
x86: Clean up and add missing log levels for k8
Convert all printk's in arch/x86/mm/k8topology_64.c to use pr_info() or pr_err() appropriately. Adds log levels for messages currently lacking them. Signed-off-by: David Rientjes <rientjes@google.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Balbir Singh <balbir@linux.vnet.ibm.com> Cc: Ankita Garg <ankita@in.ibm.com> Cc: Len Brown <len.brown@intel.com> LKML-Reference: <alpine.DEB.1.00.0909251517440.14754@chino.kir.corp.google.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/k8topology_64.c')
-rw-r--r--arch/x86/mm/k8topology_64.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/arch/x86/mm/k8topology_64.c b/arch/x86/mm/k8topology_64.c
index 268f8255280f..a81561acc20f 100644
--- a/arch/x86/mm/k8topology_64.c
+++ b/arch/x86/mm/k8topology_64.c
@@ -91,14 +91,14 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
91 if (nb < 0) 91 if (nb < 0)
92 return nb; 92 return nb;
93 93
94 printk(KERN_INFO "Scanning NUMA topology in Northbridge %d\n", nb); 94 pr_info("Scanning NUMA topology in Northbridge %d\n", nb);
95 95
96 reg = read_pci_config(0, nb, 0, 0x60); 96 reg = read_pci_config(0, nb, 0, 0x60);
97 numnodes = ((reg >> 4) & 0xF) + 1; 97 numnodes = ((reg >> 4) & 0xF) + 1;
98 if (numnodes <= 1) 98 if (numnodes <= 1)
99 return -1; 99 return -1;
100 100
101 printk(KERN_INFO "Number of nodes %d\n", numnodes); 101 pr_info("Number of nodes %d\n", numnodes);
102 102
103 memset(&nodes, 0, sizeof(nodes)); 103 memset(&nodes, 0, sizeof(nodes));
104 prevbase = 0; 104 prevbase = 0;
@@ -111,28 +111,28 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
111 nodeid = limit & 7; 111 nodeid = limit & 7;
112 if ((base & 3) == 0) { 112 if ((base & 3) == 0) {
113 if (i < numnodes) 113 if (i < numnodes)
114 printk("Skipping disabled node %d\n", i); 114 pr_info("Skipping disabled node %d\n", i);
115 continue; 115 continue;
116 } 116 }
117 if (nodeid >= numnodes) { 117 if (nodeid >= numnodes) {
118 printk("Ignoring excess node %d (%lx:%lx)\n", nodeid, 118 pr_info("Ignoring excess node %d (%lx:%lx)\n", nodeid,
119 base, limit); 119 base, limit);
120 continue; 120 continue;
121 } 121 }
122 122
123 if (!limit) { 123 if (!limit) {
124 printk(KERN_INFO "Skipping node entry %d (base %lx)\n", 124 pr_info("Skipping node entry %d (base %lx)\n",
125 i, base); 125 i, base);
126 continue; 126 continue;
127 } 127 }
128 if ((base >> 8) & 3 || (limit >> 8) & 3) { 128 if ((base >> 8) & 3 || (limit >> 8) & 3) {
129 printk(KERN_ERR "Node %d using interleaving mode %lx/%lx\n", 129 pr_err("Node %d using interleaving mode %lx/%lx\n",
130 nodeid, (base>>8)&3, (limit>>8) & 3); 130 nodeid, (base >> 8) & 3, (limit >> 8) & 3);
131 return -1; 131 return -1;
132 } 132 }
133 if (node_isset(nodeid, node_possible_map)) { 133 if (node_isset(nodeid, node_possible_map)) {
134 printk(KERN_INFO "Node %d already present. Skipping\n", 134 pr_info("Node %d already present, skipping\n",
135 nodeid); 135 nodeid);
136 continue; 136 continue;
137 } 137 }
138 138
@@ -154,24 +154,24 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
154 if (limit > end) 154 if (limit > end)
155 limit = end; 155 limit = end;
156 if (limit == base) { 156 if (limit == base) {
157 printk(KERN_ERR "Empty node %d\n", nodeid); 157 pr_err("Empty node %d\n", nodeid);
158 continue; 158 continue;
159 } 159 }
160 if (limit < base) { 160 if (limit < base) {
161 printk(KERN_ERR "Node %d bogus settings %lx-%lx.\n", 161 pr_err("Node %d bogus settings %lx-%lx.\n",
162 nodeid, base, limit); 162 nodeid, base, limit);
163 continue; 163 continue;
164 } 164 }
165 165
166 /* Could sort here, but pun for now. Should not happen anyroads. */ 166 /* Could sort here, but pun for now. Should not happen anyroads. */
167 if (prevbase > base) { 167 if (prevbase > base) {
168 printk(KERN_ERR "Node map not sorted %lx,%lx\n", 168 pr_err("Node map not sorted %lx,%lx\n",
169 prevbase, base); 169 prevbase, base);
170 return -1; 170 return -1;
171 } 171 }
172 172
173 printk(KERN_INFO "Node %d MemBase %016lx Limit %016lx\n", 173 pr_info("Node %d MemBase %016lx Limit %016lx\n",
174 nodeid, base, limit); 174 nodeid, base, limit);
175 175
176 found++; 176 found++;
177 177
@@ -188,10 +188,10 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
188 188
189 memnode_shift = compute_hash_shift(nodes, 8, NULL); 189 memnode_shift = compute_hash_shift(nodes, 8, NULL);
190 if (memnode_shift < 0) { 190 if (memnode_shift < 0) {
191 printk(KERN_ERR "No NUMA node hash function found. Contact maintainer\n"); 191 pr_err("No NUMA node hash function found. Contact maintainer\n");
192 return -1; 192 return -1;
193 } 193 }
194 printk(KERN_INFO "Using node hash shift of %d\n", memnode_shift); 194 pr_info("Using node hash shift of %d\n", memnode_shift);
195 195
196 /* use the coreid bits from early_identify_cpu */ 196 /* use the coreid bits from early_identify_cpu */
197 bits = boot_cpu_data.x86_coreid_bits; 197 bits = boot_cpu_data.x86_coreid_bits;
@@ -200,8 +200,7 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
200 /* need to get boot_cpu_id early for system with apicid lifting */ 200 /* need to get boot_cpu_id early for system with apicid lifting */
201 early_get_boot_cpu_id(); 201 early_get_boot_cpu_id();
202 if (boot_cpu_physical_apicid > 0) { 202 if (boot_cpu_physical_apicid > 0) {
203 printk(KERN_INFO "BSP APIC ID: %02x\n", 203 pr_info("BSP APIC ID: %02x\n", boot_cpu_physical_apicid);
204 boot_cpu_physical_apicid);
205 apicid_base = boot_cpu_physical_apicid; 204 apicid_base = boot_cpu_physical_apicid;
206 } 205 }
207 206