Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Initialize Machine Checks for a CPU.

Proto:static void __mcheck_cpu_cap_init(void)

Type:void

Parameter:Nothing

1523  rdmsrl(MSR_IA32_MCG_CAP, cap)
1525  b = cap & Number of Banks
1527  If b > Maximum banks number.* This is the limit of the current register layout on* Intel CPUs. Then
1528  pr_warn("CPU%d: Using only %u machine check banks out of %u\n", smp_processor_id(), Maximum banks number.* This is the limit of the current register layout on* Intel CPUs., b)
1530  b = Maximum banks number.* This is the limit of the current register layout on* Intel CPUs.
1533  this_cpu_write(mce_num_banks, b)
1535  __mcheck_cpu_mce_banks_init()
1538  If cap & Extended registers available && MCG_EXT_CNT(cap) >= 9 Then rip_msr = MSR_IA32_MCG_EIP
1541  If cap & MCA recovery/new status bits Then ser = 1
Caller
NameDescribe
mcheck_cpu_initCalled for each booted CPU to set up machine checks.* Must be called with preempt off: