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

Name:early_get_pnodeid

Proto:static int __init early_get_pnodeid(void)

Type:int

Parameter:Nothing

116  v = uv_early_read_mmr(UVH_NODE_ID )
117  v = uv_early_read_mmr(s_uv4_hub)
118  uv_min_hub_revision_id = RO
121  Case RO == UV2_HUB_PART_NUMBER
122  Case RO == UV2_HUB_PART_NUMBER_X
123  uv_min_hub_revision_id += UV2_HUB_REVISION_BASE - 1
124  Break
125  Case RO == UV3_HUB_PART_NUMBER
126  Case RO == UV3_HUB_PART_NUMBER_X
127  uv_min_hub_revision_id += UV3_HUB_REVISION_BASE
128  Break
131  Case RO == UV4_HUB_PART_NUMBER
132  uv_min_hub_revision_id += UV4_HUB_REVISION_BASE - 1
133  gnode_shift = 2
134  Break
137  hub_revision = uv_min_hub_revision_id
138  pnode_mask = (1 << RW ) - 1
139  pnode = RW >> 1 & pnode_mask
140  gpa_shift = 46
142  pr_info("UV: rev:%d part#:%x nodeid:%04x n_skt:%d pnmsk:%x pn:%x\n", RO , RO , RW , RW , pnode_mask, pnode)
145  Return pnode
Caller
NameDescribe
uv_acpi_madt_oem_check