@@ -1346,7 +1346,7 @@ static void __init decode_gam_params(unsigned long ptr)
1346
1346
static void __init decode_gam_rng_tbl (unsigned long ptr )
1347
1347
{
1348
1348
struct uv_gam_range_entry * gre = (struct uv_gam_range_entry * )ptr ;
1349
- unsigned long lgre = 0 ;
1349
+ unsigned long lgre = 0 , gend = 0 ;
1350
1350
int index = 0 ;
1351
1351
int sock_min = 999999 , pnode_min = 99999 ;
1352
1352
int sock_max = -1 , pnode_max = -1 ;
@@ -1380,6 +1380,9 @@ static void __init decode_gam_rng_tbl(unsigned long ptr)
1380
1380
flag , size , suffix [order ],
1381
1381
gre -> type , gre -> nasid , gre -> sockid , gre -> pnode );
1382
1382
1383
+ if (gre -> type == UV_GAM_RANGE_TYPE_HOLE )
1384
+ gend = (unsigned long )gre -> limit << UV_GAM_RANGE_SHFT ;
1385
+
1383
1386
/* update to next range start */
1384
1387
lgre = gre -> limit ;
1385
1388
if (sock_min > gre -> sockid )
@@ -1397,7 +1400,8 @@ static void __init decode_gam_rng_tbl(unsigned long ptr)
1397
1400
_max_pnode = pnode_max ;
1398
1401
_gr_table_len = index ;
1399
1402
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 ));
1401
1405
}
1402
1406
1403
1407
/* Walk through UVsystab decoding the fields */
0 commit comments