mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/3] x86/platform/uv: UV Kernel support for UV5
@ 2022-04-06 19:51 Steve Wahl
  2022-04-06 19:51 ` [PATCH v4 1/3] x86/platform/uv: Update NMI Handler " Steve Wahl
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Steve Wahl @ 2022-04-06 19:51 UTC (permalink / raw)
  To: Borislav Petkov, Ingo Molnar, Thomas Gleixner, x86
  Cc: Mike Travis, Steve Wahl, Andy Shevchenko, Darren Hart,
	Dimitri Sivanich, H . Peter Anvin, Russ Anderson, linux-kernel,
	platform-driver-x86

v2: Delete patch to remove SCRATCH 5 NMI support check for
    UV2 and UV3k systems with old NMI support function.

v3: Fix check BIOS NMI support mistake in Patch 1.

v4: Clarify commit messages and comments in all 3 patches.
    We hope this addresses the issues raised by Thomas Gleixner in
	https://lore.kernel.org/r/87zgl02w6v.ffs@tglx

    Update NMI Handler for UV5
	Update NMI handler for UV5 hardware. A platform register
	changed, and UV5 only uses one of the two NMI methods used on
	previous hardware.

    Update TSC sync state for UV5

	The UV5 platform synchronizes the TSCs among all chassis, and
	will not proceed to OS boot without achieving synchronization.
	Previous UV platforms provided a register indicating
	successful synchronization.  This is no longer available on
	UV5.  On this platform TSC_ADJUST should not be reset by the
	kernel.

    Log gap hole end size
	Show value of gap end in the kernel log which equates to
	number of physical address bits used by system.

Mike Travis (3):
  x86/platform/uv: Update NMI Handler for UV5
  x86/platform/uv: Update TSC sync state for UV5
  x86/platform/uv: Log gap hole end size

 arch/x86/kernel/apic/x2apic_uv_x.c | 16 +++++++++++++---
 arch/x86/platform/uv/uv_nmi.c      | 20 ++++++++++----------
 2 files changed, 23 insertions(+), 13 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH v3 3/3] x86/platform/uv: Log gap hole end size
@ 2022-03-18 22:43 Mike Travis
  2022-04-04 20:19 ` [tip: x86/platform] " tip-bot2 for Mike Travis
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Travis @ 2022-03-18 22:43 UTC (permalink / raw)
  To: Borislav Petkov, Ingo Molnar, Thomas Gleixner, Steve Wahl, x86
  Cc: Mike Travis, Andy Shevchenko, Darren Hart, Dimitri Sivanich,
	H. Peter Anvin, Russ Anderson, linux-kernel, platform-driver-x86

Show value of gap end in the kernel log which equates to number of physical
address bits used by system.  The end address of the gap holds PA bits 56:26
which gives the range up to 64PB max size with 64MB of granularity.

Signed-off-by: Mike Travis <mike.travis@hpe.com>
Reviewed-by: Steve Wahl <steve.wahl@hpe.com>
---
v2: Update patch description to be more explanatory.
---
 arch/x86/kernel/apic/x2apic_uv_x.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index 387d6533549a..146f0f63a43b 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -1346,7 +1346,7 @@ static void __init decode_gam_params(unsigned long ptr)
 static void __init decode_gam_rng_tbl(unsigned long ptr)
 {
 	struct uv_gam_range_entry *gre = (struct uv_gam_range_entry *)ptr;
-	unsigned long lgre = 0;
+	unsigned long lgre = 0, gend = 0;
 	int index = 0;
 	int sock_min = 999999, pnode_min = 99999;
 	int sock_max = -1, pnode_max = -1;
@@ -1380,6 +1380,9 @@ static void __init decode_gam_rng_tbl(unsigned long ptr)
 			flag, size, suffix[order],
 			gre->type, gre->nasid, gre->sockid, gre->pnode);
 
+		if (gre->type == UV_GAM_RANGE_TYPE_HOLE)
+			gend = (unsigned long)gre->limit << UV_GAM_RANGE_SHFT;
+
 		/* update to next range start */
 		lgre = gre->limit;
 		if (sock_min > gre->sockid)
@@ -1397,7 +1400,8 @@ static void __init decode_gam_rng_tbl(unsigned long ptr)
 	_max_pnode	= pnode_max;
 	_gr_table_len	= index;
 
-	pr_info("UV: GRT: %d entries, sockets(min:%x,max:%x) pnodes(min:%x,max:%x)\n", index, _min_socket, _max_socket, _min_pnode, _max_pnode);
+	pr_info("UV: GRT: %d entries, sockets(min:%x,max:%x), pnodes(min:%x,max:%x), gap_end(%d)\n",
+	  index, _min_socket, _max_socket, _min_pnode, _max_pnode, fls64(gend));
 }
 
 /* Walk through UVsystab decoding the fields */
-- 
2.26.2


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

end of thread, other threads:[~2022-04-07 15:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 19:51 [PATCH v4 0/3] x86/platform/uv: UV Kernel support for UV5 Steve Wahl
2022-04-06 19:51 ` [PATCH v4 1/3] x86/platform/uv: Update NMI Handler " Steve Wahl
2022-04-07 15:48   ` [tip: x86/platform] " tip-bot2 for Mike Travis
2022-04-06 19:51 ` [PATCH v4 2/3] x86/platform/uv: Update TSC sync state " Steve Wahl
2022-04-07 15:48   ` [tip: x86/platform] " tip-bot2 for Mike Travis
2022-04-06 19:51 ` [PATCH v4 3/3] x86/platform/uv: Log gap hole end size Steve Wahl
2022-04-07 15:48   ` [tip: x86/platform] " tip-bot2 for Mike Travis
2022-04-06 22:53 ` [PATCH v4 0/3] x86/platform/uv: UV Kernel support for UV5 Thomas Gleixner
  -- strict thread matches above, loose matches on Subject: below --
2022-03-18 22:43 [PATCH v3 3/3] x86/platform/uv: Log gap hole end size Mike Travis
2022-04-04 20:19 ` [tip: x86/platform] " 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

all inboxes | Powered by JetHome®