Skip to contentSkip to conversation

x86/platform/uv: Add set of kernel block size for hubless arches

PATCH Applied Mike Travis 2 participants 2 messages Mar 5, 2021 – Mar 8, 2021

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

PATCH v2 1/1 x86/platform/uv: Add set of kernel block size for hubless arches

The commit below added a call to set the block size value that is needed by the kernel to set the boundaries in the section list. This was done for UV Hubbed systems but missed in the UV Hubless setup. Fix that mistake by adding that same set call for hubless systems, which support the same NVRAMS and Intel BIOS, thus the same problem occurs.

Fixes bbbd2b51a2aa ("x86/platform/UV: Use new set memory block size function")

---
v2: Change patch description to match requirements.

---
 arch/x86/kernel/apic/x2apic_uv_x.c | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/kernel/apic/x2apic_uv_x.c +3 -0
index 52bc217ca8c3..c9ddd233e32f 100644
@@ -1671,6 +1671,9 @@ static __init int uv_system_init_hubless(void)
 	if (rc < 0)
 		return rc;
 
+	/* Set section block size for current node memory */
+	set_block_size();
+
 	/* Create user access node */
 	if (rc >= 0)
 		uv_setup_proc_files(1);
Signature · 1 line
2.21.0
merge bot Applied
#1 lore raw

[tip: x86/platform] x86/platform/uv: Set section block size for hubless architectures

The following commit has been merged into the x86/platform branch of tip:

The following commit has been merged into the x86/platform branch of tip:

Commit-ID:     6840a150b9daf35e4d21ab9780d0a03b4ed74a5b
Gitweb:        https://git.kernel.org/tip/6840a150b9daf35e4d21ab9780d0a03b4ed74a5b
Author:        Mike Travis <[email protected]>
AuthorDate:    Fri, 05 Mar 2021 10:28:53 -06:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Mon, 08 Mar 2021 12:17:53 +01:00

x86/platform/uv: Set section block size for hubless architectures

Commit

bbbd2b51a2aa ("x86/platform/UV: Use new set memory block size function")

added a call to set the block size value that is needed by the kernel to set the boundaries in the section list. This was done for UV Hubbed systems but missed in the UV Hubless setup. Fix that mistake by adding that same set call for hubless systems, which support the same NVRAMs and Intel BIOS, thus the same problem occurs.

[ bp: Massage commit message. ]

Fixes bbbd2b51a2aa ("x86/platform/UV: Use new set memory block size function")
---
 arch/x86/kernel/apic/x2apic_uv_x.c | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/kernel/apic/x2apic_uv_x.c +3 -0
index 52bc217..c9ddd23 100644
@@ -1671,6 +1671,9 @@ static __init int uv_system_init_hubless(void)
 	if (rc < 0)
 		return rc;
 
+	/* Set section block size for current node memory */
+	set_block_size();
+
 	/* Create user access node */
 	if (rc >= 0)
 		uv_setup_proc_files(1);