/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | mce.c | 66 static void mce_set_error_info(struct machine_check_event *mce, in mce_set_error_info() argument 69 mce->error_type = mce_err->error_type; in mce_set_error_info() 72 mce->u.ue_error.ue_error_type = mce_err->u.ue_error_type; in mce_set_error_info() 75 mce->u.slb_error.slb_error_type = mce_err->u.slb_error_type; in mce_set_error_info() 78 mce->u.erat_error.erat_error_type = mce_err->u.erat_error_type; in mce_set_error_info() 81 mce->u.tlb_error.tlb_error_type = mce_err->u.tlb_error_type; in mce_set_error_info() 84 mce->u.user_error.user_error_type = mce_err->u.user_error_type; in mce_set_error_info() 87 mce->u.ra_error.ra_error_type = mce_err->u.ra_error_type; in mce_set_error_info() 90 mce->u.link_error.link_error_type = mce_err->u.link_error_type; in mce_set_error_info() 107 struct machine_check_event *mce = this_cpu_ptr(&mce_event[index]); in save_mce_event() local [all …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mce/ |
D | genpool.c | 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() 78 struct mce *mce; in mce_gen_pool_process() local 86 mce = &node->mce; in mce_gen_pool_process() 87 blocking_notifier_call_chain(&x86_mce_decoder_chain, 0, mce); in mce_gen_pool_process() 97 int mce_gen_pool_add(struct mce *mce) in mce_gen_pool_add() argument 101 if (filter_mce(mce)) in mce_gen_pool_add() 113 memcpy(&node->mce, mce, sizeof(*mce)); in mce_gen_pool_add()
|
D | internal.h | 32 struct mce mce; member 37 int mce_gen_pool_add(struct mce *mce); 41 extern int (*mce_severity)(struct mce *a, struct pt_regs *regs, 55 bool intel_filter_mce(struct mce *m); 64 static inline bool intel_filter_mce(struct mce *m) { return false; }; in intel_filter_mce() 70 int apei_write_mce(struct mce *m); 71 ssize_t apei_read_mce(struct mce *m, u64 *record_id); 75 static inline int apei_write_mce(struct mce *m) in apei_write_mce() 79 static inline ssize_t apei_read_mce(struct mce *m, u64 *record_id) in apei_read_mce() 99 static inline bool mce_cmp(struct mce *m1, struct mce *m2) in mce_cmp() [all …]
|
D | dev-mcelog.c | 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() 167 struct mce m; in __mce_read_apei() 169 if (usize < sizeof(struct mce)) in __mce_read_apei() 185 if (copy_to_user(*ubuf, &m, sizeof(struct mce))) in __mce_read_apei() 198 *ubuf += sizeof(struct mce); in __mce_read_apei() 220 if (*off != 0 || usize < mcelog->len * sizeof(struct mce)) in mce_chrdev_read() 227 struct mce *m = &mcelog->entry[i]; in mce_chrdev_read() [all …]
|
D | inject.c | 39 static struct mce i_mce; 67 struct mce *m = (struct mce *)data; \ 81 struct mce *m = (struct mce *)data; \ 97 static void setup_inj_struct(struct mce *m) in setup_inj_struct() 99 memset(m, 0, sizeof(struct mce)); in setup_inj_struct() 108 static void inject_mce(struct mce *m) in inject_mce() 110 struct mce *i = &per_cpu(injectm, m->extcpu); in inject_mce() 120 memcpy(i, m, sizeof(struct mce)); in inject_mce() 126 static void raise_poll(struct mce *m) in raise_poll() 138 static void raise_exception(struct mce *m, struct pt_regs *pregs) in raise_exception() [all …]
|
D | apei.c | 31 struct mce m; in apei_mce_report_mem_error() 68 struct mce mce; member 71 int apei_write_mce(struct mce *m) in apei_write_mce() 89 rcd.sec_hdr.section_offset = (void *)&rcd.mce - (void *)&rcd; in apei_write_mce() 90 rcd.sec_hdr.section_length = sizeof(rcd.mce); in apei_write_mce() 98 memcpy(&rcd.mce, m, sizeof(*m)); in apei_write_mce() 103 ssize_t apei_read_mce(struct mce *m, u64 *record_id) in apei_read_mce() 128 memcpy(m, &rcd.mce, sizeof(*m)); in apei_read_mce()
|
D | core.c | 100 static DEFINE_PER_CPU(struct mce, mces_seen); 124 static void (*quirk_no_way_out)(int bank, struct mce *m, struct pt_regs *regs); 133 noinstr void mce_setup(struct mce *m) in mce_setup() 135 memset(m, 0, sizeof(struct mce)); in mce_setup() 153 DEFINE_PER_CPU(struct mce, injectm); 156 void mce_log(struct mce *m) in mce_log() 200 static void __print_mce(struct mce *m) in __print_mce() 243 static void print_mce(struct mce *m) in print_mce() 272 static noinstr void mce_panic(const char *msg, struct mce *final, char *exp) in mce_panic() 302 struct mce *m = &l->mce; in mce_panic() [all …]
|
D | Makefile | 9 mce-inject-y := inject.o 10 obj-$(CONFIG_X86_MCE_INJECT) += mce-inject.o
|
D | severity.c | 270 static int error_context(struct mce *m, struct pt_regs *regs) in error_context() 293 static int mce_severity_amd_smca(struct mce *m, enum context err_ctx) in mce_severity_amd_smca() 324 static int mce_severity_amd(struct mce *m, struct pt_regs *regs, int tolerant, in mce_severity_amd() 377 static int mce_severity_intel(struct mce *m, struct pt_regs *regs, in mce_severity_intel() 415 int (*mce_severity)(struct mce *m, struct pt_regs *regs, int tolerant, char **msg, bool is_excp) =
|
/kernel/linux/linux-5.10/drivers/acpi/nfit/ |
D | mce.c | 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() 25 if (!mce_usable_address(mce)) in nfit_handle_mce() 45 if (spa->address > mce->addr) in nfit_handle_mce() 47 if ((spa->address + spa->length - 1) < mce->addr) in nfit_handle_mce() 66 ALIGN(mce->addr, L1_CACHE_BYTES), in nfit_handle_mce() 79 mce->kflags |= MCE_HANDLED_NFIT; in nfit_handle_mce()
|
D | Makefile | 5 nfit-$(CONFIG_X86_MCE) += mce.o
|
/kernel/linux/linux-5.10/drivers/edac/ |
D | skx_common.c | 476 const struct mce *m, in skx_mce_output_error() 571 struct mce *mce = (struct mce *)data; in skx_mce_check_error() local 576 if (mce->kflags & MCE_HANDLED_CEC) in skx_mce_check_error() 580 if ((mce->status & 0xefff) >> 7 != 1 || !(mce->status & MCI_STATUS_ADDRV)) in skx_mce_check_error() 584 res.addr = mce->addr; in skx_mce_check_error() 598 if (mce->mcgstatus & MCG_STATUS_MCIP) in skx_mce_check_error() 606 "Bank %d: 0x%llx\n", mce->extcpu, type, in skx_mce_check_error() 607 mce->mcgstatus, mce->bank, mce->status); in skx_mce_check_error() 608 skx_mc_printk(mci, KERN_DEBUG, "TSC 0x%llx ", mce->tsc); in skx_mce_check_error() 609 skx_mc_printk(mci, KERN_DEBUG, "ADDR 0x%llx ", mce->addr); 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 573 static void decode_mc0_mce(struct mce *m) in decode_mc0_mce() 683 static void decode_mc1_mce(struct mce *m) in decode_mc1_mce() 829 static void decode_mc2_mce(struct mce *m) in decode_mc2_mce() 840 static void decode_mc3_mce(struct mce *m) in decode_mc3_mce() 869 static void decode_mc4_mce(struct mce *m) in decode_mc4_mce() 927 static void decode_mc5_mce(struct mce *m) in decode_mc5_mce() 959 static void decode_mc6_mce(struct mce *m) in decode_mc6_mce() [all …]
|
D | pnd2_edac.c | 1143 static void pnd2_mce_output_error(struct mem_ctl_info *mci, const struct mce *m, in pnd2_mce_output_error() 1394 struct mce *mce = (struct mce *)data; in pnd2_mce_check_error() local 1400 if (!mci || (mce->kflags & MCE_HANDLED_CEC)) in pnd2_mce_check_error() 1409 if ((mce->status & 0xefff) >> 7 != 1) in pnd2_mce_check_error() 1412 if (mce->mcgstatus & MCG_STATUS_MCIP) in pnd2_mce_check_error() 1419 mce->extcpu, type, mce->mcgstatus, mce->bank, mce->status); in pnd2_mce_check_error() 1420 pnd2_mc_printk(mci, KERN_INFO, "TSC %llx ", mce->tsc); in pnd2_mce_check_error() 1421 pnd2_mc_printk(mci, KERN_INFO, "ADDR %llx ", mce->addr); in pnd2_mce_check_error() 1422 pnd2_mc_printk(mci, KERN_INFO, "MISC %llx ", mce->misc); in pnd2_mce_check_error() 1424 mce->cpuvendor, mce->cpuid, mce->time, mce->socketid, mce->apicid); in pnd2_mce_check_error() [all …]
|
D | mce_amd.h | 79 void amd_register_ecc_decoder(void (*f)(int, struct mce *)); 80 void amd_unregister_ecc_decoder(void (*f)(int, struct mce *));
|
D | sb_edac.c | 2240 const struct mce *m, u8 *socket, in get_memory_error_data_from_mce() 2948 const struct mce *m) in sbridge_mce_output_error() 3130 struct mce *mce = (struct mce *)data; in sbridge_mce_check_error() local 3134 if (mce->kflags & MCE_HANDLED_CEC) in sbridge_mce_check_error() 3143 if ((mce->status & 0xefff) >> 7 != 1) in sbridge_mce_check_error() 3147 if (!GET_BITFIELD(mce->status, 58, 58)) in sbridge_mce_check_error() 3151 if (!GET_BITFIELD(mce->status, 59, 59)) in sbridge_mce_check_error() 3155 if (GET_BITFIELD(mce->misc, 6, 8) != 2) in sbridge_mce_check_error() 3158 mci = get_mci_for_node_id(mce->socketid, IMC0); in sbridge_mce_check_error() 3162 if (mce->mcgstatus & MCG_STATUS_MCIP) in sbridge_mce_check_error() [all …]
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | mce.h | 168 struct mce entry[]; 224 void mce_setup(struct mce *m); 225 void mce_log(struct mce *m); 248 bool mce_is_memory_error(struct mce *m); 249 bool mce_is_correctable(struct mce *m); 250 int mce_usable_address(struct mce *m); 268 DECLARE_PER_CPU(struct mce, injectm); 365 extern bool amd_mce_is_memory_error(struct mce *m); 377 static inline bool amd_mce_is_memory_error(struct mce *m) { return false; }; in amd_mce_is_memory_error()
|
/kernel/linux/linux-5.10/drivers/acpi/ |
D | acpi_extlog.c | 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()
|
/kernel/linux/linux-5.10/Documentation/vm/ |
D | hwpoison.rst | 162 x86 has mce-inject, mce-test 164 Some portable hwpoison test programs in mce-test, see below. 169 http://halobates.de/mce-lc09-2.pdf 172 git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git 175 git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git
|
/kernel/linux/linux-5.10/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 41 mce=bootlog 48 mce=nobootlog 50 mce=tolerancelevel[,monarchtimeout] (number,number) 61 mce=bios_cmci_threshold 68 mce=recovery [all …]
|
/kernel/linux/linux-5.10/drivers/staging/media/tegra-vde/ |
D | vde.h | 32 void __iomem *mce; member 89 if (vde->mce == base) in tegra_vde_reg_base_name()
|
/kernel/linux/linux-5.10/drivers/media/rc/keymaps/ |
D | Makefile | 37 rc-dvico-mce.o \ 47 rc-fusionhdtv-mce.o \ 54 rc-imon-mce.o \ 93 rc-rc6-mce.o \
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | mce.h | 3 #define TRACE_SYSTEM mce 14 TP_PROTO(struct mce *m),
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
D | rxe_recv.c | 238 struct rxe_mc_elem *mce; in rxe_rcv_mcast_pkt() local 258 list_for_each_entry(mce, &mcg->qp_list, qp_list) { in rxe_rcv_mcast_pkt() 259 qp = mce->qp; in rxe_rcv_mcast_pkt() 276 if (mce->qp_list.next != &mcg->qp_list) { in rxe_rcv_mcast_pkt()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/ |
D | nvidia,tegra-vde.txt | 16 - mce 53 reg-names = "sxe", "bsev", "mbe", "ppe", "mce",
|