LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] x86/platform/uv: Add set of kernel block size for hubless arches
@ 2021-03-05 16:28 Mike Travis
  2021-03-08 11:41 ` [tip: x86/platform] x86/platform/uv: Set section block size for hubless architectures tip-bot2 for Mike Travis
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Travis @ 2021-03-05 16:28 UTC (permalink / raw
  To: Borislav Petkov, Ingo Molnar, Thomas Gleixner, Steve Wahl, x86,
	linux-kernel
  Cc: Mike Travis, Russ Anderson, Dimitri Sivanich, Russ Anderson,
	H. Peter Anvin

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")

Signed-off-by: Mike Travis <mike.travis@hpe.com>
Reviewed-by: Steve Wahl <steve.wahl@hpe.com>
Reviewed-by: Russ Anderson <rja@hpe.com>
---
v2: Change patch description to match requirements.
---
 arch/x86/kernel/apic/x2apic_uv_x.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index 52bc217ca8c3..c9ddd233e32f 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -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);
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip: x86/platform] x86/platform/uv: Set section block size for hubless architectures
  2021-03-05 16:28 [PATCH v2] x86/platform/uv: Add set of kernel block size for hubless arches Mike Travis
@ 2021-03-08 11:41 ` tip-bot2 for Mike Travis
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Mike Travis @ 2021-03-08 11:41 UTC (permalink / raw
  To: linux-tip-commits
  Cc: Mike Travis, Borislav Petkov, Steve Wahl, Russ Anderson, x86,
	linux-kernel

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 <mike.travis@hpe.com>
AuthorDate:    Fri, 05 Mar 2021 10:28:53 -06:00
Committer:     Borislav Petkov <bp@suse.de>
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")
Signed-off-by: Mike Travis <mike.travis@hpe.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Steve Wahl <steve.wahl@hpe.com>
Reviewed-by: Russ Anderson <rja@hpe.com>
Link: https://lkml.kernel.org/r/20210305162853.299892-1-mike.travis@hpe.com
---
 arch/x86/kernel/apic/x2apic_uv_x.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index 52bc217..c9ddd23 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-08 11:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-05 16:28 [PATCH v2] x86/platform/uv: Add set of kernel block size for hubless arches Mike Travis
2021-03-08 11:41 ` [tip: x86/platform] x86/platform/uv: Set section block size for hubless architectures tip-bot2 for Mike Travis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).