函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smca_configure

函数原型:static void smca_configure(unsigned int bank, unsigned int cpu)

返回类型:void

参数:

类型参数名称
unsigned intbank
unsigned intcpu
234  smca_config等于MSR_AMD64_SMCA_MCx_CONFIG(bank)
237  如果非dmsr with exception handling (smca_config, & low, & high)则
247  high或等于BIT(0)
260  如果low按位与BIT(5)且非high右移5位按位与0x3的值则high或等于BIT(5)
263  wrmsr(smca_config, low, high)
266  smca_set_misc_banks_map(bank, cpu)
269  如果hwidhwid_mcatype不等于0则返回
272  如果dmsr with exception handling (MSR_AMD64_SMCA_MCx_IPID(bank), & low, & high)则
273  打印警告信息("Failed to read MCA_IPID for bank %d\n", bank)
274  返回
277  hwid_mcatype等于HWID_MCATYPE(high & MCI_IPID_HWID, (high & MCI_IPID_MCATYPE) >> 16)
280 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(smca_hwid_mcatypes)循环
281  s_hwid等于smca_hwid_mcatypes[i]
282  如果hwid_mcatype恒等于hwid_mcatype
283  hwid等于s_hwid
284  id等于low
285  sysfs_id等于count自加
286  退出
调用者
名称描述
mce_amd_feature_initpu init entry point, called from mce.c with preempt off