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

Name:__mcheck_cpu_init_generic

Proto:static void __mcheck_cpu_init_generic(void)

Type:void

Parameter:Nothing

1547  m_fl = 0
1551  If Not bootlog Then m_fl = MCP_DONTLOG
1557  bitmap_fill(all_banks, Maximum banks number.* This is the limit of the current register layout on* Intel CPUs.)
1558  Poll for corrected events or events that happened before reset.* Those are just logged through /dev/mcelog.* This is executed in standard interrupt context.* Note: spec recommends to panic for fatal unsignalled* errors here
1560  Set in this cpu's CR4.
1562  rdmsrl(MSR_IA32_MCG_CAP, cap)
1563  If cap & MCG_CTL register available Then wrmsr(MSR_IA32_MCG_CTL, 0xffffffff, 0xffffffff)
Caller
NameDescribe
mcheck_cpu_initCalled for each booted CPU to set up machine checks.* Must be called with preempt off:
mce_syscore_resumeOn resume clear all MCE state. Don't want to see leftovers from the BIOS.* Only one CPU is active at this time, the others get re-added later using* CPU hotplug:
mce_cpu_restartmce_device: Sysfs support