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

Name:Add per CPU specific workarounds here

Proto:static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)

Type:int

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
1640  mce_banks = this_cpu_ptr(mce_banks_array)
1641  cfg = mca_cfg
1643  If CPU vendor == X86_VENDOR_UNKNOWN Then
1644  pr_info("unknown CPU type - not enabling MCE support\n")
1645  Return -EOPNOTSUPP
1649  If CPU vendor == X86_VENDOR_AMD Then
1658  If CPU family < 0x11 && bootlog < 0 Then
1663  bootlog = 0
1669  If CPU family == 6 && Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(mce_num_banks) > 0 Then subevents to enable = 0
1676  If CPU family == 0x15 && x86_model <= 0xf Then * Indicates that overflow conditions are not fatal, when set. = 1
1681  If CPU vendor == X86_VENDOR_INTEL Then
1691  If CPU family == 6 && x86_model < 0x1A && Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(mce_num_banks) > 0 Then initialise bank? = 0
1698  If ( CPU family > 6 || CPU family == 6 && x86_model >= 0xe ) && monarch_timeout < 0 Then monarch_timeout = USEC_PER_SEC
1706  If CPU family == 6 && x86_model <= 13 && bootlog < 0 Then bootlog = 0
1709  If CPU family == 6 && x86_model == 45 Then quirk_no_way_out = During IFU recovery Sandy Bridge -EP4S processors set the RIPV and* EIPV bits in MCG_STATUS to zero on the affected logical processor (SDM* Vol 3B Table 15-20)
1713  If CPU vendor == X86_VENDOR_ZHAOXIN Then
1718  If CPU family > 6 || x86_model == 0x19 || x86_model == 0x1f Then
1724  If monarch_timeout < 0 Then monarch_timeout = 0
1726  If bootlog != 0 Then panic_timeout = 30
1729  Return 0
Caller
NameDescribe
mcheck_cpu_initCalled for each booted CPU to set up machine checks.* Must be called with preempt off: