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:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:uv_init_hub_info

Proto:static void __init uv_init_hub_info(struct uv_hub_info_s *hi)

Type:void

Parameter:

TypeParameterName
struct uv_hub_info_s *hi
1186  get_mn( & mn)
1187  gpa_mask = If m_val Then (1UL << m_val + n_val ) - 1 Else (1UL << gpa_shift) - 1
1191  m_val = m_val
1192  n_val = n_val
1193  m_shift = m_shift
1194  n_lshift = If n_lshift Then n_lshift Else 0
1195  hub_revision = hub_revision
1196  pnode_mask = pnode_mask
1197  min_pnode = _min_pnode
1198  min_socket = _min_socket
1199  pnode_to_socket = _pnode_to_socket
1200  socket_to_node = _socket_to_node
1201  socket_to_pnode = _socket_to_pnode
1202  gr_table_len = _gr_table_len
1203  gr_table = _gr_table
1205  v = uv_read_local_mmr(UVH_NODE_ID )
1206  gnode_shift = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedint, gnode_shift, n_val)
1207  gnode_extra = ( RW & ~((1 << gnode_shift) - 1)) >> 1
1208  If m_val Then gnode_upper = gnode_extra << m_val
1211  If uv_gp_table Then
1212  global_mmr_base = mmr_base
1213  global_mmr_shift = Convert PNode to MMR space offset
1214  global_gru_base = gru_base
1215  global_gru_shift = Convert PNode to GRU space offset
1216  gpa_shift = Size of offset field in GRU phys addr
1217  gpa_mask = (1UL << gpa_shift) - 1
1218  Else
1219  global_mmr_base = uv_read_local_mmr(s_uv4_hub) & ~This file contains MMR definitions for all UV hubs types.* To minimize coding differences between hub types, the symbols are* grouped by architecture types.* UVH - definitions common to all UV hub types.
1220  global_mmr_shift = _UV_GLOBAL_MMR64_PNODE_SHIFT
1223  get_lowmem_redirect( & lowmem_remap_base, & lowmem_remap_top)
1225  apic_pnode_shift = aka pnode_shift for UV1/2/3
1228  pr_info("UV: N:%d M:%d m_shift:%d n_lshift:%d\n", n_val, m_val, m_shift, n_lshift)
1229  pr_info("UV: gpa_mask/shift:0x%lx/%d pnode_mask:0x%x apic_pns:%d\n", gpa_mask, gpa_shift, pnode_mask, apic_pnode_shift)
1230  pr_info("UV: mmr_base/shift:0x%lx/%ld gru_base/shift:0x%lx/%ld\n", global_mmr_base, global_mmr_shift, global_gru_base, global_gru_shift)
1231  pr_info("UV: gnode_upper:0x%lx gnode_extra:0x%x\n", gnode_upper, gnode_extra)
Caller
NameDescribe
uv_system_init_hub