Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/mm: Don't print out SRAT table information

This per CPU log is becoming longer with more and more CPUs in system,
which slows down the boot process due to the serializing nature of
printk().

The value of this information is dubious and it can be retrieved by lscpu
from user space if required..

Downgrade the printk() to pr_debug() so it is still accessible for debug
purposes.

[ tglx: Massaged changelog ]

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240806120823.17111-1-lirongqing@baidu.com

authored by

Li RongQing and committed by
Thomas Gleixner
830a0d12 cc31744a

+2 -4
+2 -4
arch/x86/mm/srat.c
··· 57 57 } 58 58 set_apicid_to_node(apic_id, node); 59 59 node_set(node, numa_nodes_parsed); 60 - printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u\n", 61 - pxm, apic_id, node); 60 + pr_debug("SRAT: PXM %u -> APIC 0x%04x -> Node %u\n", pxm, apic_id, node); 62 61 } 63 62 64 63 /* Callback for Proximity Domain -> LAPIC mapping */ ··· 97 98 98 99 set_apicid_to_node(apic_id, node); 99 100 node_set(node, numa_nodes_parsed); 100 - printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%02x -> Node %u\n", 101 - pxm, apic_id, node); 101 + pr_debug("SRAT: PXM %u -> APIC 0x%02x -> Node %u\n", pxm, apic_id, node); 102 102 } 103 103 104 104 int __init x86_acpi_numa_init(void)