Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\hygon.c Create Date:2022-07-28 07:58:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bsp_init_hygon

Proto:static void bsp_init_hygon(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
214  If Not rdmsrl_safe(MSR_K8_TSEG_ADDR, & tseg) Then
215  pfn = tseg >> PAGE_SHIFT determines the page size
217  pr_debug("tseg: %010llx\n", tseg)
218  If pfn_range_is_mapped(pfn, pfn + 1) Then set_memory_4k((unsignedlong)__va(tseg), 1)
223  If cpu_has(c, TSC ticks at a constant rate ) Then
226  rdmsrl(MSR_K7_HWCR, val)
227  If Not (val & BIT(24)) Then pr_warn(FW_BUG* Add this to a message where you are sure the firmware is buggy or behaves* really stupid or out of spec"TSC doesn't count with P0 frequency!\n")
231  If cpu_has(c, MWAIT extension (MONITORX/MWAITX instructions) ) Then use_mwaitx_delay()
234  If boot_cpu_has(Topology extensions CPUID leafs ) Then
237  ecx = cpuid_ecx(0x8000001e)
238  des_per_socket: Stores the number of nodes per socket.* Refer to CPUID Fn8000_001E_ECX Node Identifiers[10:8] = ( ecx >> 8 & 7) + 1
239  Else if boot_cpu_has(NodeId MSR ) Then
242  rdmsrl(MSR_FAM10H_NODE_ID, value)
243  des_per_socket: Stores the number of nodes per socket.* Refer to CPUID Fn8000_001E_ECX Node Identifiers[10:8] = ( value >> 3 & 7) + 1
246  If Not boot_cpu_has("" Speculative Store Bypass Disable ) && Not boot_cpu_has(Virtualized Speculative Store Bypass Disable ) Then
255  x86_amd_ls_cfg_ssbd_mask = 1ULL << 10