Skip to content

Commit 327c348

Browse files
mike-travissuryasaimadhu
authored andcommitted
x86/platform/uv: 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. Signed-off-by: Mike Travis <[email protected]> Signed-off-by: Steve Wahl <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent bb3ab81 commit 327c348

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

arch/x86/kernel/apic/x2apic_uv_x.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ static void __init decode_gam_params(unsigned long ptr)
13461346
static void __init decode_gam_rng_tbl(unsigned long ptr)
13471347
{
13481348
struct uv_gam_range_entry *gre = (struct uv_gam_range_entry *)ptr;
1349-
unsigned long lgre = 0;
1349+
unsigned long lgre = 0, gend = 0;
13501350
int index = 0;
13511351
int sock_min = 999999, pnode_min = 99999;
13521352
int sock_max = -1, pnode_max = -1;
@@ -1380,6 +1380,9 @@ static void __init decode_gam_rng_tbl(unsigned long ptr)
13801380
flag, size, suffix[order],
13811381
gre->type, gre->nasid, gre->sockid, gre->pnode);
13821382

1383+
if (gre->type == UV_GAM_RANGE_TYPE_HOLE)
1384+
gend = (unsigned long)gre->limit << UV_GAM_RANGE_SHFT;
1385+
13831386
/* update to next range start */
13841387
lgre = gre->limit;
13851388
if (sock_min > gre->sockid)
@@ -1397,7 +1400,8 @@ static void __init decode_gam_rng_tbl(unsigned long ptr)
13971400
_max_pnode = pnode_max;
13981401
_gr_table_len = index;
13991402

1400-
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);
1403+
pr_info("UV: GRT: %d entries, sockets(min:%x,max:%x), pnodes(min:%x,max:%x), gap_end(%d)\n",
1404+
index, _min_socket, _max_socket, _min_pnode, _max_pnode, fls64(gend));
14011405
}
14021406

14031407
/* Walk through UVsystab decoding the fields */

0 commit comments

Comments
 (0)