/Linux-v6.1/arch/x86/kernel/cpu/mce/ |
D | genpool.c | 3 * MCE event pool management in MCE context 15 * printk() is not safe in MCE context. This is a lock-less memory allocator 18 * This memory pool is only to be used to save MCE records in MCE context. 19 * MCE events are rare, so a fixed size memory pool should be enough. Use 20 * 2 pages to save MCE events for now (~80 MCE records at most). 35 struct mce *m1, *m2; in is_duplicate_mce_record() 37 m1 = &t->mce; in is_duplicate_mce_record() 40 m2 = &node->mce; in is_duplicate_mce_record() 49 * The system has panicked - we'd like to peruse the list of MCE records 78 struct mce *mce; in mce_gen_pool_process() local [all …]
|
D | internal.h | 6 #define pr_fmt(fmt) "mce: " fmt 9 #include <asm/mce.h> 29 struct mce mce; member 34 int mce_gen_pool_add(struct mce *mce); 38 int mce_severity(struct mce *a, struct pt_regs *regs, char **msg, bool is_excp); 51 bool intel_filter_mce(struct mce *m); 60 static inline bool intel_filter_mce(struct mce *m) { return false; } in intel_filter_mce() 66 int apei_write_mce(struct mce *m); 67 ssize_t apei_read_mce(struct mce *m, u64 *record_id); 71 static inline int apei_write_mce(struct mce *m) in apei_write_mce() [all …]
|
D | dev-mcelog.c | 27 * Lockless MCE logging infrastructure. 39 struct mce *mce = (struct mce *)data; in dev_mce_log() local 42 if (mce->kflags & MCE_HANDLED_CEC) in dev_mce_log() 60 memcpy(mcelog->entry + entry, mce, sizeof(struct mce)); in dev_mce_log() 71 mce->kflags |= MCE_HANDLED_MCELOG; in dev_mce_log() 121 * mce_chrdev: Character device /dev/mcelog to read and clear the MCE log. 162 /* Collect MCE record of previous boot in persistent storage via APEI ERST. */ 167 struct mce m; in __mce_read_apei() 169 if (usize < sizeof(struct mce)) in __mce_read_apei() 173 /* Error or no more MCE record */ in __mce_read_apei() [all …]
|
D | inject.c | 10 * The AMD part (from mce_amd_inj.c): a simple MCE injection facility 30 #include <asm/mce.h> 41 static struct mce i_mce; 69 struct mce *m = (struct mce *)data; \ 83 struct mce *m = (struct mce *)data; \ 103 struct mce *m = (struct mce *)data; in inj_ipid_set() 115 static void setup_inj_struct(struct mce *m) in setup_inj_struct() 117 memset(m, 0, sizeof(struct mce)); in setup_inj_struct() 125 /* Update fake mce registers on current CPU. */ 126 static void inject_mce(struct mce *m) in inject_mce() [all …]
|
D | apei.c | 3 * Bridge between MCE and APEI 12 * For fatal MCE, save MCE record into persistent storage via ERST, so 13 * that the MCE record can be logged after reboot via ERST. 25 #include <asm/mce.h> 31 struct mce m; in apei_mce_report_mem_error() 70 struct mce m; in apei_smca_report_x86_error() 141 struct mce mce; member 144 int apei_write_mce(struct mce *m) in apei_write_mce() 162 rcd.sec_hdr.section_offset = (void *)&rcd.mce - (void *)&rcd; in apei_write_mce() 163 rcd.sec_hdr.section_length = sizeof(rcd.mce); in apei_write_mce() [all …]
|
D | core.c | 52 #include <asm/mce.h> 62 #include <trace/events/mce.h> 79 /* One object for each MCE bank, shared by all CPUs */ 94 static DEFINE_PER_CPU(struct mce, mces_seen); 119 * MCE errors in a human-readable form. 123 /* Do initial initialization of a struct mce */ 124 void mce_setup(struct mce *m) in mce_setup() 126 memset(m, 0, sizeof(struct mce)); in mce_setup() 139 DEFINE_PER_CPU(struct mce, injectm); 142 void mce_log(struct mce *m) in mce_log() [all …]
|
D | p5.c | 15 #include <asm/mce.h> 44 /* Set up machine check reporting for processors with Intel style MCE: */ 53 /* Check for MCE support: */ in intel_p5_mcheck_init() 62 /* Enable MCE: */ in intel_p5_mcheck_init()
|
D | winchip.c | 14 #include <asm/mce.h> 34 lo |= (1<<2); /* Enable EIERRINT (int 18 MCE) */ in winchip_mcheck_init() 35 lo &= ~(1<<4); /* Enable MCE */ in winchip_mcheck_init()
|
D | severity.c | 3 * MCE grading rules. 14 #include <asm/mce.h> 23 * Grade an mce by severity. In general the most severe ones are processed 107 * known AO MCACODs reported via MCE or CMC: 269 static noinstr int error_context(struct mce *m, struct pt_regs *regs) in error_context() 305 static noinstr int mce_severity_amd(struct mce *m, struct pt_regs *regs, char **msg, bool is_excp) in mce_severity_amd() 365 static noinstr int mce_severity_intel(struct mce *m, struct pt_regs *regs, char **msg, bool is_excp) in mce_severity_intel() 401 int noinstr mce_severity(struct mce *m, struct pt_regs *regs, char **msg, bool is_excp) in mce_severity()
|
/Linux-v6.1/arch/powerpc/kernel/ |
D | mce.c | 10 #define pr_fmt(fmt) "mce: " fmt 25 #include <asm/mce.h> 49 static void mce_set_error_info(struct machine_check_event *mce, in mce_set_error_info() argument 52 mce->error_type = mce_err->error_type; in mce_set_error_info() 55 mce->u.ue_error.ue_error_type = mce_err->u.ue_error_type; in mce_set_error_info() 58 mce->u.slb_error.slb_error_type = mce_err->u.slb_error_type; in mce_set_error_info() 61 mce->u.erat_error.erat_error_type = mce_err->u.erat_error_type; in mce_set_error_info() 64 mce->u.tlb_error.tlb_error_type = mce_err->u.tlb_error_type; in mce_set_error_info() 67 mce->u.user_error.user_error_type = mce_err->u.user_error_type; in mce_set_error_info() 70 mce->u.ra_error.ra_error_type = mce_err->u.ra_error_type; in mce_set_error_info() [all …]
|
/Linux-v6.1/drivers/acpi/nfit/ |
D | mce.c | 10 #include <asm/mce.h> 16 struct mce *mce = (struct mce *)data; in nfit_handle_mce() local 21 if (!mce_is_memory_error(mce) || mce_is_correctable(mce)) in nfit_handle_mce() 24 /* Verify the address reported in the MCE is valid. */ in nfit_handle_mce() 25 if (!mce_usable_address(mce)) in nfit_handle_mce() 29 * mce->addr contains the physical addr accessed that caused the in nfit_handle_mce() 35 unsigned int align = 1UL << MCI_MISC_ADDR_LSB(mce->misc); in nfit_handle_mce() 45 /* find the spa that covers the mce addr */ in nfit_handle_mce() 46 if (spa->address > mce->addr) in nfit_handle_mce() 48 if ((spa->address + spa->length - 1) < mce->addr) in nfit_handle_mce() [all …]
|
/Linux-v6.1/drivers/edac/ |
D | skx_common.c | 21 #include <asm/mce.h> 534 const struct mce *m, in skx_mce_output_error() 628 static bool skx_error_in_1st_level_mem(const struct mce *m) in skx_error_in_1st_level_mem() 646 struct mce *mce = (struct mce *)data; in skx_mce_check_error() local 651 if (mce->kflags & MCE_HANDLED_CEC) in skx_mce_check_error() 655 if ((mce->status & 0xefff) >> 7 != 1 || !(mce->status & MCI_STATUS_ADDRV)) in skx_mce_check_error() 659 res.mce = mce; in skx_mce_check_error() 660 res.addr = mce->addr; in skx_mce_check_error() 665 if (!(adxl_component_count && skx_adxl_decode(&res, skx_error_in_1st_level_mem(mce)))) in skx_mce_check_error() 674 if (mce->mcgstatus & MCG_STATUS_MCIP) in skx_mce_check_error() [all …]
|
D | mce_amd.c | 13 static void (*decode_dram_ecc)(int node_id, struct mce *m); 15 void amd_register_ecc_decoder(void (*f)(int, struct mce *)) in amd_register_ecc_decoder() argument 21 void amd_unregister_ecc_decoder(void (*f)(int, struct mce *)) in amd_unregister_ecc_decoder() argument 217 "CT MCE", 764 static void decode_mc0_mce(struct mce *m) in decode_mc0_mce() 782 pr_emerg(HW_ERR "Corrupted MC0 MCE info?\n"); in decode_mc0_mce() 874 static void decode_mc1_mce(struct mce *m) in decode_mc1_mce() 901 pr_emerg(HW_ERR "Corrupted MC1 MCE info?\n"); in decode_mc1_mce() 1020 static void decode_mc2_mce(struct mce *m) in decode_mc2_mce() 1028 pr_cont(HW_ERR "Corrupted MC2 MCE info?\n"); in decode_mc2_mce() [all …]
|
D | igen6_edac.c | 25 #include <asm/mce.h> 738 struct mce *mce = (struct mce *)data; in ecclog_mce_handler() local 741 if (mce->kflags & MCE_HANDLED_CEC) in ecclog_mce_handler() 749 if ((mce->status & 0xefff) >> 7 != 1) in ecclog_mce_handler() 752 if (mce->mcgstatus & MCG_STATUS_MCIP) in ecclog_mce_handler() 758 mce->extcpu, type, mce->mcgstatus, in ecclog_mce_handler() 759 mce->bank, mce->status); in ecclog_mce_handler() 760 edac_dbg(0, "TSC 0x%llx\n", mce->tsc); in ecclog_mce_handler() 761 edac_dbg(0, "ADDR 0x%llx\n", mce->addr); in ecclog_mce_handler() 762 edac_dbg(0, "MISC 0x%llx\n", mce->misc); in ecclog_mce_handler() [all …]
|
/Linux-v6.1/Documentation/translations/zh_CN/mm/ |
D | hwpoison.rst | 143 x86 有 mce-inject, mce-test 150 http://halobates.de/mce-lc09-2.pdf 153 git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git 156 git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git
|
/Linux-v6.1/Documentation/mm/ |
D | hwpoison.rst | 159 * Architecture specific MCE injector 161 x86 has mce-inject, mce-test 163 Some portable hwpoison test programs in mce-test, see below. 168 http://halobates.de/mce-lc09-2.pdf 171 git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git 174 git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git
|
/Linux-v6.1/arch/x86/include/asm/ |
D | mce.h | 5 #include <uapi/asm/mce.h> 133 /* mce.kflags flag bits for logging etc. */ 142 * Indicates an MCE which has happened in kernel space but from 150 * Indicates an MCE that happened in kernel space while copying data 158 * This structure contains all data related to the MCE log. Also 168 unsigned recordlen; /* length of struct mce */ 169 struct mce entry[]; 219 void mce_setup(struct mce *m); 220 void mce_log(struct mce *m); 243 bool mce_is_memory_error(struct mce *m); [all …]
|
/Linux-v6.1/Documentation/x86/x86_64/ |
D | boot-options.rst | 14 mce=off 16 mce=no_cmci 24 mce=dont_log_ce 29 mce=ignore_ce 38 mce=no_lmce 39 Do not opt-in to Local MCE delivery. Use legacy method 41 mce=bootlog 48 mce=nobootlog 50 mce=monarchtimeout (number) 54 mce=bios_cmci_threshold [all …]
|
/Linux-v6.1/tools/testing/selftests/kvm/x86_64/ |
D | ucna_injection_test.c | 29 #include "mce.h" 164 struct kvm_x86_mce mce = {}; in inject_ucna() local 165 mce.status = status; in inject_ucna() 166 mce.mcg_status = 0; in inject_ucna() 169 * Lowest 6 bits is the recoverable address LSB, i.e., the injected MCE in inject_ucna() 172 mce.misc = (MCM_ADDR_PHYS << 6) | 0xc; in inject_ucna() 173 mce.addr = addr; in inject_ucna() 174 mce.bank = UCNA_BANK; in inject_ucna() 176 vcpu_ioctl(vcpu, KVM_X86_SET_MCE, &mce); in inject_ucna()
|
/Linux-v6.1/drivers/media/rc/keymaps/ |
D | rc-winfast.c | 68 { 0x1a, KEY_MODE}, /* change to MCE mode on Y04G0051 */ 69 { 0x3e, KEY_VOLUMEUP }, /* MCE +VOL, on Y04G0033 */ 70 { 0x3a, KEY_VOLUMEDOWN }, /* MCE -VOL, on Y04G0033 */ 71 { 0x3b, KEY_CHANNELUP }, /* MCE +CH, on Y04G0033 */ 72 { 0x3f, KEY_CHANNELDOWN } /* MCE -CH, on Y04G0033 */
|
D | rc-imon-mce.c | 2 /* rc5-imon-mce.c - Keytable for Windows Media Center RC-6 remotes for use 11 /* mce-mode imon mce remote key table */ 111 { 0x800ff40d, KEY_MEDIA }, /* Windows MCE button */
|
D | Makefile | 42 rc-dvico-mce.o \ 52 rc-fusionhdtv-mce.o \ 60 rc-imon-mce.o \ 103 rc-rc6-mce.o \
|
/Linux-v6.1/drivers/acpi/ |
D | acpi_extlog.c | 17 #include <asm/mce.h> 137 struct mce *mce = (struct mce *)data; in extlog_print() local 138 int bank = mce->bank; in extlog_print() 139 int cpu = mce->extcpu; in extlog_print() 148 if (estatus == NULL || (mce->kflags & MCE_HANDLED_CEC)) in extlog_print() 184 mce->kflags |= MCE_HANDLED_EXTLOG; in extlog_print()
|
/Linux-v6.1/drivers/media/rc/ |
D | mceusb.c | 10 * two mce drivers were merged into one by Jarod Wilson, with transmit 44 /* MCE constants */ 123 /* Misc commands/responses not defined in the MCE remote/transceiver spec */ 249 .name = "Conexant Hybrid TV (cx231xx) MCE IR", 254 .name = "Conexant Hybrid TV (cx231xx) MCE IR", 258 .name = "Conexant Hybrid TV (cx231xx) MCE IR no TX", 283 /* Original Microsoft MCE IR Transceiver (often HP-branded) */ 306 /* Realtek MCE IR Receiver and card reader */ 362 /* Microsoft MCE Infrared Transceiver */ 368 /* Formosa aim / Trust MCE Infrared Receiver */ [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/media/ |
D | rc.yaml | 60 - rc-dvico-mce 71 - rc-fusionhdtv-mce 79 - rc-imon-mce 123 - rc-rc6-mce
|