Skip to contentSkip to conversation

x86, UV: Update Boot messages for SGI UV2 platform

PATCH In review Jack Steiner 1 participant 2 messages Jan 6, 2012 – Jan 8, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86, UV: Update Boot messages for SGI UV2 platform

SGI UV systems print a message during boot:
UV: Found <num> blades

Due to packaging changes, the blade count is not accurate for on the next generation of the platform. This patch corrects the count.

---
 arch/x86/kernel/apic/x2apic_uv_x.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
arch/x86/kernel/apic/x2apic_uv_x.c +6 -1
Index: linux/arch/x86/kernel/apic/x2apic_uv_x.c
===================================================================
@@ -781,7 +781,12 @@ void __init uv_system_init(void)
 	for(i = 0; i < UVH_NODE_PRESENT_TABLE_DEPTH; i++)
 		uv_possible_blades +=
 		  hweight64(uv_read_local_mmr( UVH_NODE_PRESENT_TABLE + i * 8));
-	printk(KERN_DEBUG "UV: Found %d blades\n", uv_num_possible_blades());
+
+	/* uv_num_possible_blades() is really the hub count */
+	printk(KERN_INFO "UV: Found %d blades, %d hubs\n",
+			is_uv1_hub() ? uv_num_possible_blades() :
+			(uv_num_possible_blades() + 1) / 2,
+			uv_num_possible_blades());
 
 	bytes = sizeof(struct uv_blade_info) * uv_num_possible_blades();
 	uv_blade_info = kzalloc(bytes, GFP_KERNEL);
#1 lore raw
Commit-ID:  da517a08ac5913cd80ce3507cddd00f2a091b13c
Gitweb:     http://git.kernel.org/tip/da517a08ac5913cd80ce3507cddd00f2a091b13c
Author:     Jack Steiner <[email protected]>
AuthorDate: Fri, 6 Jan 2012 13:19:00 -0600
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sun, 8 Jan 2012 12:35:44 +0100

x86, UV: Update Boot messages for SGI UV2 platform

SGI UV systems print a message during boot:

UV: Found <num> blades

Due to packaging changes, the blade count is not accurate for on the next generation of the platform. This patch corrects the count.

---
 arch/x86/kernel/apic/x2apic_uv_x.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
arch/x86/kernel/apic/x2apic_uv_x.c +6 -1
index 9d59bba..79b05b8 100644
@@ -769,7 +769,12 @@ void __init uv_system_init(void)
 	for(i = 0; i < UVH_NODE_PRESENT_TABLE_DEPTH; i++)
 		uv_possible_blades +=
 		  hweight64(uv_read_local_mmr( UVH_NODE_PRESENT_TABLE + i * 8));
-	printk(KERN_DEBUG "UV: Found %d blades\n", uv_num_possible_blades());
+
+	/* uv_num_possible_blades() is really the hub count */
+	printk(KERN_INFO "UV: Found %d blades, %d hubs\n",
+			is_uv1_hub() ? uv_num_possible_blades() :
+			(uv_num_possible_blades() + 1) / 2,
+			uv_num_possible_blades());
 
 	bytes = sizeof(struct uv_blade_info) * uv_num_possible_blades();
 	uv_blade_info = kzalloc(bytes, GFP_KERNEL);