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

Name:map_mmioh_high

Proto:static __init void map_mmioh_high(int min_pnode, int max_pnode)

Type:void

Parameter:

TypeParameterName
intmin_pnode
intmax_pnode
973  If is_uv3_hub() || is_uv4_hub() Then
975  UV3/4 have identical MMIOH overlay configs, UV4A is slightly different
976  UV3/4 have identical MMIOH overlay configs, UV4A is slightly different
977  Return
980  If WARNING: UVx_HUB_IS_SUPPORTED defines are deprecated and will be removed Then
981  mmr = UVH_RH_GAM_MMIOH_OVERLAY_CONFIG_MMR
982  shift = UV1H_RH_GAM_MMIOH_OVERLAY_CONFIG_MMR_BASE_SHFT
983  v = uv_read_local_mmr(mmr)
984  enable = Not Not RW
985  base = RW
986  m_io = RW
987  n_io = RW
988  Else if is_uv2_hub() Then
989  mmr = UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_MMR
990  shift = UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_MMR_BASE_SHFT
991  v = uv_read_local_mmr(mmr)
992  enable = Not Not RW
993  base = RW
994  m_io = RW
995  n_io = RW
996  Else
997  Return
1000  If enable Then
1001  max_pnode &= (1 << n_io) - 1
1002  pr_info("UV: base:0x%lx shift:%d N_IO:%d M_IO:%d max_pnode:0x%x\n", base, shift, m_io, n_io, max_pnode)
1003  map_high("MMIOH", base, shift, m_io, max_pnode, map_uc)
1004  Else
1005  pr_info("UV: MMIOH disabled\n")
Caller
NameDescribe
uv_system_init_hub