Home
last modified time | relevance | path

Searched refs:mce (Results 1 – 25 of 48) sorted by relevance

12

/Linux-v4.19/arch/powerpc/kernel/
Dmce.c57 static void mce_set_error_info(struct machine_check_event *mce, in mce_set_error_info() argument
60 mce->error_type = mce_err->error_type; in mce_set_error_info()
63 mce->u.ue_error.ue_error_type = mce_err->u.ue_error_type; in mce_set_error_info()
66 mce->u.slb_error.slb_error_type = mce_err->u.slb_error_type; in mce_set_error_info()
69 mce->u.erat_error.erat_error_type = mce_err->u.erat_error_type; in mce_set_error_info()
72 mce->u.tlb_error.tlb_error_type = mce_err->u.tlb_error_type; in mce_set_error_info()
75 mce->u.user_error.user_error_type = mce_err->u.user_error_type; in mce_set_error_info()
78 mce->u.ra_error.ra_error_type = mce_err->u.ra_error_type; in mce_set_error_info()
81 mce->u.link_error.link_error_type = mce_err->u.link_error_type; in mce_set_error_info()
98 struct machine_check_event *mce = this_cpu_ptr(&mce_event[index]); in save_mce_event() local
[all …]
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Dmce-genpool.c36 struct mce *m1, *m2; in is_duplicate_mce_record()
38 m1 = &t->mce; in is_duplicate_mce_record()
41 m2 = &node->mce; in is_duplicate_mce_record()
79 struct mce *mce; in mce_gen_pool_process() local
87 mce = &node->mce; in mce_gen_pool_process()
88 blocking_notifier_call_chain(&x86_mce_decoder_chain, 0, mce); in mce_gen_pool_process()
98 int mce_gen_pool_add(struct mce *mce) in mce_gen_pool_add() argument
111 memcpy(&node->mce, mce, sizeof(*mce)); in mce_gen_pool_add()
Dmce-internal.h35 struct mce mce; member
40 int mce_gen_pool_add(struct mce *mce);
44 extern int (*mce_severity)(struct mce *a, int tolerant, char **msg, bool is_excp);
65 int apei_write_mce(struct mce *m);
66 ssize_t apei_read_mce(struct mce *m, u64 *record_id);
70 static inline int apei_write_mce(struct mce *m) in apei_write_mce()
74 static inline ssize_t apei_read_mce(struct mce *m, u64 *record_id) in apei_read_mce()
88 void mce_inject_log(struct mce *m);
96 static inline bool mce_cmp(struct mce *m1, struct mce *m2) in mce_cmp()
Ddev-mcelog.c36 .recordlen = sizeof(struct mce),
47 struct mce *mce = (struct mce *)data; in dev_mce_log() local
65 memcpy(mcelog.entry + entry, mce, sizeof(struct mce)); in dev_mce_log()
168 struct mce m; in __mce_read_apei()
170 if (usize < sizeof(struct mce)) in __mce_read_apei()
186 if (copy_to_user(*ubuf, &m, sizeof(struct mce))) in __mce_read_apei()
199 *ubuf += sizeof(struct mce); in __mce_read_apei()
221 if (*off != 0 || usize < MCE_LOG_LEN*sizeof(struct mce)) in mce_chrdev_read()
228 struct mce *m = &mcelog.entry[i]; in mce_chrdev_read()
234 memset(mcelog.entry, 0, next * sizeof(struct mce)); in mce_chrdev_read()
[all …]
Dmce-inject.c46 static struct mce i_mce;
76 struct mce *m = (struct mce *)data; \
90 struct mce *m = (struct mce *)data; \
106 static void setup_inj_struct(struct mce *m) in setup_inj_struct()
108 memset(m, 0, sizeof(struct mce)); in setup_inj_struct()
114 static void inject_mce(struct mce *m) in inject_mce()
116 struct mce *i = &per_cpu(injectm, m->extcpu); in inject_mce()
126 memcpy(i, m, sizeof(struct mce)); in inject_mce()
132 static void raise_poll(struct mce *m) in raise_poll()
144 static void raise_exception(struct mce *m, struct pt_regs *pregs) in raise_exception()
[all …]
Dmce-apei.c43 struct mce m; in apei_mce_report_mem_error()
80 struct mce mce; member
83 int apei_write_mce(struct mce *m) in apei_write_mce()
101 rcd.sec_hdr.section_offset = (void *)&rcd.mce - (void *)&rcd; in apei_write_mce()
102 rcd.sec_hdr.section_length = sizeof(rcd.mce); in apei_write_mce()
110 memcpy(&rcd.mce, m, sizeof(*m)); in apei_write_mce()
115 ssize_t apei_read_mce(struct mce *m, u64 *record_id) in apei_read_mce()
140 memcpy(m, &rcd.mce, sizeof(*m)); in apei_read_mce()
DMakefile2 obj-y = mce.o mce-severity.o mce-genpool.o
8 obj-$(CONFIG_X86_MCE_INJECT) += mce-inject.o
12 obj-$(CONFIG_ACPI_APEI) += mce-apei.o
Dmce.c85 static DEFINE_PER_CPU(struct mce, mces_seen);
109 static void (*quirk_no_way_out)(int bank, struct mce *m, struct pt_regs *regs);
118 void mce_setup(struct mce *m) in mce_setup()
120 memset(m, 0, sizeof(struct mce)); in mce_setup()
136 DEFINE_PER_CPU(struct mce, injectm);
139 void mce_log(struct mce *m) in mce_log()
145 void mce_inject_log(struct mce *m) in mce_inject_log()
229 static void __print_mce(struct mce *m) in __print_mce()
269 static void print_mce(struct mce *m) in print_mce()
298 static void mce_panic(const char *msg, struct mce *final, char *exp) in mce_panic()
[all …]
Dmce-severity.c211 static int error_context(struct mce *m) in error_context()
220 static int mce_severity_amd_smca(struct mce *m, enum context err_ctx) in mce_severity_amd_smca()
251 static int mce_severity_amd(struct mce *m, int tolerant, char **msg, bool is_excp) in mce_severity_amd()
303 static int mce_severity_intel(struct mce *m, int tolerant, char **msg, bool is_excp) in mce_severity_intel()
334 int (*mce_severity)(struct mce *m, int tolerant, char **msg, bool is_excp) =
/Linux-v4.19/drivers/acpi/nfit/
Dmce.c24 struct mce *mce = (struct mce *)data; in nfit_handle_mce() local
29 if (!mce_is_memory_error(mce)) in nfit_handle_mce()
49 if (spa->address > mce->addr) in nfit_handle_mce()
51 if ((spa->address + spa->length - 1) < mce->addr) in nfit_handle_mce()
70 ALIGN(mce->addr, L1_CACHE_BYTES), in nfit_handle_mce()
DMakefile3 nfit-$(CONFIG_X86_MCE) += mce.o
/Linux-v4.19/arch/x86/include/asm/
Dmce.h138 struct mce entry[MCE_LOG_LEN];
182 void mce_setup(struct mce *m);
183 void mce_log(struct mce *m);
218 bool mce_is_memory_error(struct mce *m);
235 DECLARE_PER_CPU(struct mce, injectm);
329 extern bool amd_mce_is_memory_error(struct mce *m);
338 static inline bool amd_mce_is_memory_error(struct mce *m) { return false; }; in amd_mce_is_memory_error()
/Linux-v4.19/drivers/edac/
Dmce_amd.c13 static void (*decode_dram_ecc)(int node_id, struct mce *m);
21 void amd_register_ecc_decoder(void (*f)(int, struct mce *)) in amd_register_ecc_decoder() argument
27 void amd_unregister_ecc_decoder(void (*f)(int, struct mce *)) in amd_unregister_ecc_decoder() argument
451 static void decode_mc0_mce(struct mce *m) in decode_mc0_mce()
561 static void decode_mc1_mce(struct mce *m) in decode_mc1_mce()
707 static void decode_mc2_mce(struct mce *m) in decode_mc2_mce()
718 static void decode_mc3_mce(struct mce *m) in decode_mc3_mce()
747 static void decode_mc4_mce(struct mce *m) in decode_mc4_mce()
805 static void decode_mc5_mce(struct mce *m) in decode_mc5_mce()
837 static void decode_mc6_mce(struct mce *m) in decode_mc6_mce()
[all …]
Dskx_edac.c945 const struct mce *m, in skx_mce_output_error()
1030 struct mce *mce = (struct mce *)data; in skx_mce_check_error() local
1039 if ((mce->status & 0xefff) >> 7 != 1 || !(mce->status & MCI_STATUS_ADDRV)) in skx_mce_check_error()
1042 res.addr = mce->addr; in skx_mce_check_error()
1047 if (mce->mcgstatus & MCG_STATUS_MCIP) in skx_mce_check_error()
1055 "Bank %d: %016Lx\n", mce->extcpu, type, in skx_mce_check_error()
1056 mce->mcgstatus, mce->bank, mce->status); in skx_mce_check_error()
1057 skx_mc_printk(mci, KERN_DEBUG, "TSC %llx ", mce->tsc); in skx_mce_check_error()
1058 skx_mc_printk(mci, KERN_DEBUG, "ADDR %llx ", mce->addr); in skx_mce_check_error()
1059 skx_mc_printk(mci, KERN_DEBUG, "MISC %llx ", mce->misc); in skx_mce_check_error()
[all …]
Dpnd2_edac.c1146 static void pnd2_mce_output_error(struct mem_ctl_info *mci, const struct mce *m, in pnd2_mce_output_error()
1397 struct mce *mce = (struct mce *)data; in pnd2_mce_check_error() local
1415 if ((mce->status & 0xefff) >> 7 != 1) in pnd2_mce_check_error()
1418 if (mce->mcgstatus & MCG_STATUS_MCIP) in pnd2_mce_check_error()
1425 mce->extcpu, type, mce->mcgstatus, mce->bank, mce->status); in pnd2_mce_check_error()
1426 pnd2_mc_printk(mci, KERN_INFO, "TSC %llx ", mce->tsc); in pnd2_mce_check_error()
1427 pnd2_mc_printk(mci, KERN_INFO, "ADDR %llx ", mce->addr); in pnd2_mce_check_error()
1428 pnd2_mc_printk(mci, KERN_INFO, "MISC %llx ", mce->misc); in pnd2_mce_check_error()
1430 mce->cpuvendor, mce->cpuid, mce->time, mce->socketid, mce->apicid); in pnd2_mce_check_error()
1432 pnd2_mce_output_error(mci, mce, &daddr); in pnd2_mce_check_error()
[all …]
Dmce_amd.h81 void amd_register_ecc_decoder(void (*f)(int, struct mce *));
82 void amd_unregister_ecc_decoder(void (*f)(int, struct mce *));
Dsb_edac.c2865 const struct mce *m) in sbridge_mce_output_error()
3046 struct mce *mce = (struct mce *)data; in sbridge_mce_check_error() local
3054 mci = get_mci_for_node_id(mce->socketid, IMC0); in sbridge_mce_check_error()
3065 if ((mce->status & 0xefff) >> 7 != 1) in sbridge_mce_check_error()
3068 if (mce->mcgstatus & MCG_STATUS_MCIP) in sbridge_mce_check_error()
3076 "Bank %d: %016Lx\n", mce->extcpu, type, in sbridge_mce_check_error()
3077 mce->mcgstatus, mce->bank, mce->status); in sbridge_mce_check_error()
3078 sbridge_mc_printk(mci, KERN_DEBUG, "TSC %llx ", mce->tsc); in sbridge_mce_check_error()
3079 sbridge_mc_printk(mci, KERN_DEBUG, "ADDR %llx ", mce->addr); in sbridge_mce_check_error()
3080 sbridge_mc_printk(mci, KERN_DEBUG, "MISC %llx ", mce->misc); in sbridge_mce_check_error()
[all …]
/Linux-v4.19/drivers/acpi/
Dacpi_extlog.c139 struct mce *mce = (struct mce *)data; in extlog_print() local
140 int bank = mce->bank; in extlog_print()
141 int cpu = mce->extcpu; in extlog_print()
/Linux-v4.19/Documentation/vm/
Dhwpoison.rst162 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
/Linux-v4.19/Documentation/x86/x86_64/
Dboot-options.txt10 mce=off
12 mce=no_cmci
20 mce=dont_log_ce
25 mce=ignore_ce
34 mce=no_lmce
37 mce=bootlog
44 mce=nobootlog
46 mce=tolerancelevel[,monarchtimeout] (number,number)
57 mce=bios_cmci_threshold
64 mce=recovery
[all …]
/Linux-v4.19/drivers/media/rc/keymaps/
DMakefile37 rc-dvico-mce.o \
47 rc-fusionhdtv-mce.o \
54 rc-imon-mce.o \
91 rc-rc6-mce.o \
/Linux-v4.19/Documentation/devicetree/bindings/media/
Drc.txt47 * "rc-fusionhdtv-mce"
53 * "rc-imon-mce"
91 * "rc-rc6-mce"
Dnvidia,tegra-vde.txt16 - mce
52 reg-names = "sxe", "bsev", "mbe", "ppe", "mce",
/Linux-v4.19/include/trace/events/
Dmce.h3 #define TRACE_SYSTEM mce
14 TP_PROTO(struct mce *m),
/Linux-v4.19/drivers/infiniband/sw/rxe/
Drxe_recv.c283 struct rxe_mc_elem *mce; in rxe_rcv_mcast_pkt() local
301 list_for_each_entry(mce, &mcg->qp_list, qp_list) { in rxe_rcv_mcast_pkt()
302 qp = mce->qp; in rxe_rcv_mcast_pkt()
317 if (mce->qp_list.next != &mcg->qp_list) in rxe_rcv_mcast_pkt()

12