函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\core.c Create Date:2022-07-27 09:01:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Add per CPU specific workarounds here

函数原型:static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)

返回类型:int

参数:

类型参数名称
struct cpuinfo_x86 *c
1640  mce_banks等于this_cpu_ptr(mce_banks_array)
1641  cfg等于mca_cfg
1643  如果CPU vendor 恒等于X86_VENDOR_UNKNOWN
1644  打印信息("unknown CPU type - not enabling MCE support\n")
1645  返回:负EOPNOTSUPP
1649  如果CPU vendor 恒等于X86_VENDOR_AMD
1658  如果CPU family 小于0x11且bootlog小于0则
1663  bootlog等于0
1669  如果CPU family 恒等于6且Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(mce_num_banks)大于0则 subevents to enable 等于0
1676  如果CPU family 恒等于0x15且x86_model小于等于0xf则* Indicates that overflow conditions are not fatal, when set.等于1
1681  如果CPU vendor 恒等于X86_VENDOR_INTEL
1691  如果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则 initialise bank? 等于0
1698  如果CPU family 大于6或CPU family 恒等于6且x86_model大于等于0xe的值且monarch_timeout小于0则monarch_timeout等于USEC_PER_SEC
1706  如果CPU family 恒等于6且x86_model小于等于13且bootlog小于0则bootlog等于0
1709  如果CPU family 恒等于6且x86_model恒等于45则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  如果CPU vendor 恒等于X86_VENDOR_ZHAOXIN
1718  如果CPU family 大于6或x86_model恒等于0x19或x86_model恒等于0x1f则
1719  如果monarch_timeout小于0则monarch_timeout等于USEC_PER_SEC
1724  如果monarch_timeout小于0则monarch_timeout等于0
1726  如果bootlog不等于0则panic_timeout等于30
1729  返回:0
调用者
名称描述
mcheck_cpu_initCalled for each booted CPU to set up machine checks.* Must be called with preempt off: