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

Name:init_hygon

Proto:static void init_hygon(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
308  early_init_hygon(c)
314  clear_cpu_cap(c, 0 * 32 + 31)
316  set_cpu_cap(c, REP microcode works well )
319  apicid = hard_smp_processor_id()
321  set_cpu_cap(c, "" CPU is AMD family 0x17 (Zen) )
322  set_cpu_cap(c, AMD Core Performance Boost )
324  cpu_detect_cache_sizes(c)
326  On Hygon setup the lower bits of the APIC id distinguish the cores.* Assumes number of cores is a power of two.
327  Fixup core topology information for* (1) Hygon multi-node processors* Assumption: Number of cores in each internal node is the same.* (2) Hygon processors supporting compute units
328  srat_detect_node(c)
330  init_hygon_cacheinfo(c)
332  If cpu_has(c, "sse2" ) Then
339  Set @bit in a MSR @msr.* Retval:* < 0: An error was encountered.* = 0: Bit was already set.* > 0: Hardware accepted the MSR write.
343  set_cpu_cap(c, "" LFENCE synchronizes RDTSC )
349  set_cpu_cap(c, Always Running APIC Timer )
352  If Not cpu_has(c, "" Xen paravirtual guest ) Then set_cpu_bug(c, SYSRET doesn't fix up SS attrs )