Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\x2apic_uv_x.c Create Date:2022-07-28 08:34:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:decode_gam_rng_tbl

Proto:static void __init decode_gam_rng_tbl(unsigned long ptr)

Type:void

Parameter:

TypeParameterName
unsigned longptr
1247  gre = ptr
1248  lgre = 0
1249  index = 0
1250  sock_min = 999999 , pnode_min = 99999
1251  sock_max = -1 , pnode_max = -1
1253  uv_gre_table = gre
1254  When Entry type: GAM_RANGE_TYPE_UNUSED, etc. != End of table cycle
1255  size = PA bits 56:26 (UV_GAM_RANGE_SHFT) - lgre << 64MB
1257  order = 0
1258  suffix[] = " KMGTPE"
1259  flag = ' '
1261  When size > 9999 && order < size of suffix cycle
1262  size /= 1024
1263  order++
1267  If Entry type: GAM_RANGE_TYPE_UNUSED, etc. == 1 || Entry type: GAM_RANGE_TYPE_UNUSED, etc. == 2 Then If adj_blksize(lgre) Then
1269  flag = '*'
1271  If Not index Then
1272  pr_info("UV: GAM Range Table...\n")
1273  pr_info("UV: # %20s %14s %6s %4s %5s %3s %2s\n", "Range", "", "Size", "Type", "NASID", "SID", "PN")
1275  pr_info("UV: %2d: 0x%014lx-0x%014lx%c %5lu%c %3d %04x %02x %02x\n", index++, (unsignedlong)lgre << 64MB , (unsignedlong) PA bits 56:26 (UV_GAM_RANGE_SHFT) << 64MB , flag, size, suffix[order], Entry type: GAM_RANGE_TYPE_UNUSED, etc. , HNasid , Socket ID, high bits of APIC ID , Index to MMR and GRU spaces )
1283  lgre = PA bits 56:26 (UV_GAM_RANGE_SHFT)
1284  If sock_min > Socket ID, high bits of APIC ID Then sock_min = Socket ID, high bits of APIC ID
1286  If sock_max < Socket ID, high bits of APIC ID Then sock_max = Socket ID, high bits of APIC ID
1288  If pnode_min > Index to MMR and GRU spaces Then pnode_min = Index to MMR and GRU spaces
1290  If pnode_max < Index to MMR and GRU spaces Then pnode_max = Index to MMR and GRU spaces
1293  _min_socket = sock_min
1294  _max_socket = sock_max
1295  _min_pnode = pnode_min
1296  _max_pnode = pnode_max
1297  _gr_table_len = index
1299  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)
Caller
NameDescribe
decode_uv_systab