lkml.org 
[lkml]   [2013]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [GIT PULL] x86/boot changes for v3.13
From
On Mon, Nov 11, 2013 at 9:05 AM, Ingo Molnar <mingo@kernel.org> wrote:

> Two changes that prettify and compactify the SMP bootup output from:
>
> [ 0.371169] smpboot: Booting Node 0, Processors #1 #2 #3 OK
> [ 0.417339] smpboot: Booting Node 1, Processors #4 #5 #6 #7 OK
> [ 0.554805] smpboot: Booting Node 2, Processors #8 #9 #10 #11 OK
> [ 0.692323] smpboot: Booting Node 3, Processors #12 #13 #14 #15 OK
> [ 0.829039] Brought up 16 CPUs
>
> to something like:
>
> [ 0.379167] x86: Booting SMP configuration:
> [ 0.383506] .... node #0, CPUs: #1 #2 #3
> [ 0.429207] .... node #1, CPUs: #4 #5 #6 #7
> [ 0.565353] .... node #2, CPUs: #8 #9 #10 #11
> [ 0.701898] .... node #3, CPUs: #12 #13 #14 #15
> [ 0.837695] x86: Booted up 4 nodes, 16 CPUs
>
...
> if (system_state == SYSTEM_BOOTING) {
> if (node != current_node) {
> if (current_node > (-1))
> - pr_cont(" OK\n");
> + pr_cont("\n");
> current_node = node;
> - pr_info("Booting Node %3d, Processors ", node);
> +
> + printk(KERN_INFO ".... node %*s#%d, CPUs: ",
> + node_width - num_digits(node), " ", node);
> }
> - pr_cont(" #%4d%s", cpu, cpu == max_cpu_present ? " OK\n" : "");
> - return;
> +
> + /* Add padding for the BSP */
> + if (cpu == 1)
> + pr_cont("%*s", width + 1, " ");

How do you know CPU0 and CPU1 are in same package?

> +
> + pr_cont("%*s#%d", width - num_digits(cpu), " ", cpu);
> +
> } else
> pr_info("Booting Node %d Processor %d APIC 0x%x\n",
> node, cpu, apicid);


\
 
 \ /
  Last update: 2013-11-11 23:01    [W:0.061 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site