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

Name:map_gru_distributed

Proto:static __init void map_gru_distributed(unsigned long c)

Type:void

Parameter:

TypeParameterName
unsigned longc
807  v = c
810  gru_dist_base = v & 0x000007fff0000000UL
811  If Not gru_dist_base Then
812  pr_info("UV: Map GRU_DIST base address NULL\n")
813  Return
816  bytes = 1UL << s_uv4_hub
817  gru_dist_lmask = (1UL << m_val) - 1 & ~(bytes - 1)
818  gru_dist_umask = ~((1UL << m_val) - 1)
819  gru_dist_base &= gru_dist_lmask
821  for_each_online_node(nid)
822  paddr = Convert a linux node number to the PNODE of the blade << m_val | gru_dist_base
824  init_extra_mapping_wb(paddr, bytes)
825  gru_first_node_paddr = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(paddr, gru_first_node_paddr)
826  gru_last_node_paddr = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(paddr, gru_last_node_paddr)
830  gru_first_node_paddr &= gru_dist_umask
831  gru_last_node_paddr &= gru_dist_umask
833  pr_debug("UV: Map GRU_DIST base 0x%016llx 0x%016llx - 0x%016llx\n", gru_dist_base, gru_first_node_paddr, gru_last_node_paddr)
Caller
NameDescribe
map_gru_high