mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/platform/uv/BAU: disable BAU on single hub configurations
@ 2017-07-18 21:51 Andrew Banman
  2017-07-20 11:47 ` Ingo Molnar
  2017-07-20 22:05 ` [PATCH v2] " Andrew Banman
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Banman @ 2017-07-18 21:51 UTC (permalink / raw)
  To: mingo; +Cc: tglx, x86, linux-kernel, rja, mike.travis, Andrew Banman

The BAU confers no benefit to a UV system running with only one hub/socket.
Permanently disable the BAU driver if there are less than two hubs online
to avoid BAU overhead. We have observed failed boots on single-socket UV4
systems caused by BAU that are avoided with this patch.

Signed-off-by: Andrew Banman <abanman@hpe.com>
Acked-by: Russ Anderson <rja@hpe.com>
Acked-by: Mike Travis <mike.travis@hpe.com>
---
 arch/x86/platform/uv/tlb_uv.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c
index 2511a28..88216cc 100644
--- a/arch/x86/platform/uv/tlb_uv.c
+++ b/arch/x86/platform/uv/tlb_uv.c
@@ -2251,6 +2251,12 @@ static int __init uv_bau_init(void)
 	}
 
 	nuvhubs = uv_num_possible_blades();
+	if (nuvhubs < 2) {
+		pr_crit("UV: BAU disabled - insufficient hub count\n");
+		set_bau_off();
+		nobau_perm = 1;
+		return 0;
+	}
 
 	uv_base_pnode = 0x7fffffff;
 	for (uvhub = 0; uvhub < nuvhubs; uvhub++) {
-- 
1.8.2.1

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

end of thread, other threads:[~2017-07-21  9:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18 21:51 [PATCH] x86/platform/uv/BAU: disable BAU on single hub configurations Andrew Banman
2017-07-20 11:47 ` Ingo Molnar
2017-07-20 18:50   ` Andrew Banman
2017-07-20 22:05 ` [PATCH v2] " Andrew Banman
2017-07-21  9:37   ` [tip:x86/urgent] x86/platform/uv/BAU: Disable " tip-bot for Andrew Banman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome