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

Name:MSR access wrappers used for error injection

Proto:static u64 mce_rdmsrl(unsigned int msr)

Type:u64

Parameter:

TypeParameterName
unsigned intmsr
396  If Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(finished) Then
397  offset = Support code for software error injection
399  If offset < 0 Then Return 0
401  Return *(this_cpu_ptr( & injectm) + offset)
404  If rdmsrl_safe(msr, & v) Then
405  WARN_ONCE(1, "mce: Unable to read MSR 0x%x!\n", msr)
411  v = 0
414  Return v
Caller
NameDescribe
mce_gather_infoCollect all global (w.r.t. this processor) status about this machine* check into our "mce" struct so that we can use it later to assess* the severity of the problem as we read per-bank specific details.
mce_read_auxRead ADDR and MISC registers.
machine_check_pollPoll for corrected events or events that happened before reset.* Those are just logged through /dev/mcelog.* This is executed in standard interrupt context.* Note: spec recommends to panic for fatal unsignalled* errors here
mce_no_way_outDo a quick check if any of the events requires a panic.* This decides if we keep the events around or clear them.
__mc_check_crashing_cpuCases where we avoid rendezvous handler timeout:* 1) If this CPU is offline
__mc_scan_banks