Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cmci_supported

Proto:static int cmci_supported(int *banks)

Type:int

Parameter:

TypeParameterName
int *banks
80  If cmci_disabled || ignore_ce Then Return 0
88  If CPU vendor != X86_VENDOR_INTEL && CPU vendor != X86_VENDOR_ZHAOXIN Then Return 0
92  If Not boot_cpu_has(Onboard APIC ) || lapic_get_maxlvt - get the maximum number of local vector table entries < 6 Then Return 0
94  rdmsrl(MSR_IA32_MCG_CAP, cap)
95  banks = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsigned, Maximum banks number.* This is the limit of the current register layout on* Intel CPUs., cap & 0xff)
96  Return Not Not (cap & CMCI supported )
Caller
NameDescribe
cmci_recheckJust in case we missed an event during initialization check* all the CMCI owned banks.
cmci_clearDisable CMCI on this CPU for all banks it owns when it goes down.* This allows other CPUs to claim the banks on rediscovery.
cmci_rediscover_work_func
cmci_rediscoverAfter a CPU went down cycle through all the others and rediscover
cmci_reenableReenable CMCI on this CPU in case a CPU down failed.
cmci_disable_bank
intel_init_cmci