Lines Matching full:ec
146 static bool f12h_mc0_mce(u16 ec, u8 xec) in f12h_mc0_mce() argument
150 if (MEM_ERROR(ec)) { in f12h_mc0_mce()
151 u8 ll = LL(ec); in f12h_mc0_mce()
157 pr_cont("Data/Tag %s error.\n", R4_MSG(ec)); in f12h_mc0_mce()
164 static bool f10h_mc0_mce(u16 ec, u8 xec) in f10h_mc0_mce() argument
166 if (R4(ec) == R4_GEN && LL(ec) == LL_L1) { in f10h_mc0_mce()
170 return f12h_mc0_mce(ec, xec); in f10h_mc0_mce()
173 static bool k8_mc0_mce(u16 ec, u8 xec) in k8_mc0_mce() argument
175 if (BUS_ERROR(ec)) { in k8_mc0_mce()
180 return f10h_mc0_mce(ec, xec); in k8_mc0_mce()
183 static bool cat_mc0_mce(u16 ec, u8 xec) in cat_mc0_mce() argument
185 u8 r4 = R4(ec); in cat_mc0_mce()
188 if (MEM_ERROR(ec)) { in cat_mc0_mce()
190 if (TT(ec) != TT_DATA || LL(ec) != LL_L1) in cat_mc0_mce()
208 } else if (BUS_ERROR(ec)) { in cat_mc0_mce()
210 if ((II(ec) != II_MEM && II(ec) != II_IO) || LL(ec) != LL_LG) in cat_mc0_mce()
235 static bool f15h_mc0_mce(u16 ec, u8 xec) in f15h_mc0_mce() argument
239 if (MEM_ERROR(ec)) { in f15h_mc0_mce()
270 } else if (BUS_ERROR(ec)) { in f15h_mc0_mce()
276 } else if (INT_ERROR(ec)) { in f15h_mc0_mce()
290 u16 ec = EC(m->status); in decode_mc0_mce() local
296 if (TLB_ERROR(ec)) { in decode_mc0_mce()
297 if (TT(ec) == TT_DATA) { in decode_mc0_mce()
298 pr_cont("%s TLB %s.\n", LL_MSG(ec), in decode_mc0_mce()
303 } else if (fam_ops.mc0_mce(ec, xec)) in decode_mc0_mce()
309 static bool k8_mc1_mce(u16 ec, u8 xec) in k8_mc1_mce() argument
311 u8 ll = LL(ec); in k8_mc1_mce()
314 if (!MEM_ERROR(ec)) in k8_mc1_mce()
320 switch (R4(ec)) { in k8_mc1_mce()
343 static bool cat_mc1_mce(u16 ec, u8 xec) in cat_mc1_mce() argument
345 u8 r4 = R4(ec); in cat_mc1_mce()
348 if (!MEM_ERROR(ec)) in cat_mc1_mce()
351 if (TT(ec) != TT_INSTR) in cat_mc1_mce()
368 static bool f15h_mc1_mce(u16 ec, u8 xec) in f15h_mc1_mce() argument
372 if (!MEM_ERROR(ec)) in f15h_mc1_mce()
400 u16 ec = EC(m->status); in decode_mc1_mce() local
405 if (TLB_ERROR(ec)) in decode_mc1_mce()
406 pr_cont("%s TLB %s.\n", LL_MSG(ec), in decode_mc1_mce()
408 else if (BUS_ERROR(ec)) { in decode_mc1_mce()
412 } else if (INT_ERROR(ec)) { in decode_mc1_mce()
417 } else if (fam_ops.mc1_mce(ec, xec)) in decode_mc1_mce()
428 static bool k8_mc2_mce(u16 ec, u8 xec) in k8_mc2_mce() argument
436 else if (xec == 0x2 && MEM_ERROR(ec)) in k8_mc2_mce()
437 pr_cont(": %s error in the L2 cache tags.\n", R4_MSG(ec)); in k8_mc2_mce()
439 if (TLB_ERROR(ec)) in k8_mc2_mce()
441 TT_MSG(ec)); in k8_mc2_mce()
442 else if (BUS_ERROR(ec)) in k8_mc2_mce()
444 R4_MSG(ec), PP_MSG(ec)); in k8_mc2_mce()
445 else if (MEM_ERROR(ec)) { in k8_mc2_mce()
446 u8 r4 = R4(ec); in k8_mc2_mce()
450 R4_MSG(ec)); in k8_mc2_mce()
453 "access from L2.\n", R4_MSG(ec)); in k8_mc2_mce()
464 static bool f15h_mc2_mce(u16 ec, u8 xec) in f15h_mc2_mce() argument
468 if (TLB_ERROR(ec)) { in f15h_mc2_mce()
475 } else if (BUS_ERROR(ec)) { in f15h_mc2_mce()
480 } else if (MEM_ERROR(ec)) { in f15h_mc2_mce()
493 } else if (INT_ERROR(ec)) { in f15h_mc2_mce()
503 static bool f16h_mc2_mce(u16 ec, u8 xec) in f16h_mc2_mce() argument
505 u8 r4 = R4(ec); in f16h_mc2_mce()
507 if (!MEM_ERROR(ec)) in f16h_mc2_mce()
546 u16 ec = EC(m->status); in decode_mc2_mce() local
551 if (!fam_ops.mc2_mce(ec, xec)) in decode_mc2_mce()
557 u16 ec = EC(m->status); in decode_mc3_mce() local
569 u8 r4 = R4(ec); in decode_mc3_mce()
571 if (!BUS_ERROR(ec) || (r4 != R4_DRD && r4 != R4_DWR)) in decode_mc3_mce()
574 pr_cont(" during %s.\n", R4_MSG(ec)); in decode_mc3_mce()
588 u16 ec = EC(m->status); in decode_mc4_mce() local
612 if (TLB_ERROR(ec)) in decode_mc4_mce()
614 else if (BUS_ERROR(ec)) in decode_mc4_mce()
645 u16 ec = EC(m->status); in decode_mc5_mce() local
653 if (INT_ERROR(ec)) { in decode_mc5_mce()
752 static inline void amd_decode_err_code(u16 ec) in amd_decode_err_code() argument
754 if (INT_ERROR(ec)) { in amd_decode_err_code()
755 pr_emerg(HW_ERR "internal: %s\n", UU_MSG(ec)); in amd_decode_err_code()
759 pr_emerg(HW_ERR "cache level: %s", LL_MSG(ec)); in amd_decode_err_code()
761 if (BUS_ERROR(ec)) in amd_decode_err_code()
762 pr_cont(", mem/io: %s", II_MSG(ec)); in amd_decode_err_code()
764 pr_cont(", tx: %s", TT_MSG(ec)); in amd_decode_err_code()
766 if (MEM_ERROR(ec) || BUS_ERROR(ec)) { in amd_decode_err_code()
767 pr_cont(", mem-tx: %s", R4_MSG(ec)); in amd_decode_err_code()
769 if (BUS_ERROR(ec)) in amd_decode_err_code()
770 pr_cont(", part-proc: %s (%s)", PP_MSG(ec), TO_MSG(ec)); in amd_decode_err_code()