Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smca_configure

Proto:static void smca_configure(unsigned int bank, unsigned int cpu)

Type:void

Parameter:

TypeParameterName
unsigned intbank
unsigned intcpu
234  smca_config = MSR_AMD64_SMCA_MCx_CONFIG(bank)
237  If Not dmsr with exception handling (smca_config, & low, & high) Then
247  high |= BIT(0)
260  If low & BIT(5) && Not ( high >> 5 & 0x3) Then high |= BIT(5)
263  wrmsr(smca_config, low, high)
266  smca_set_misc_banks_map(bank, cpu)
269  If hwid && hwid_mcatype != 0 Then Return
272  If dmsr with exception handling (MSR_AMD64_SMCA_MCx_IPID(bank), & low, & high) Then
273  pr_warn("Failed to read MCA_IPID for bank %d\n", bank)
274  Return
277  hwid_mcatype = HWID_MCATYPE(high & MCI_IPID_HWID, (high & MCI_IPID_MCATYPE) >> 16)
280  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(smca_hwid_mcatypes) cycle
281  s_hwid = smca_hwid_mcatypes[i]
282  If hwid_mcatype == hwid_mcatype Then
283  hwid = s_hwid
284  id = low
285  sysfs_id = count++
286  Break
Caller
NameDescribe
mce_amd_feature_initpu init entry point, called from mce.c with preempt off