Lines Matching refs:ec

501 static bool f12h_mc0_mce(u16 ec, u8 xec)  in f12h_mc0_mce()  argument
505 if (MEM_ERROR(ec)) { in f12h_mc0_mce()
506 u8 ll = LL(ec); in f12h_mc0_mce()
512 pr_cont("Data/Tag %s error.\n", R4_MSG(ec)); in f12h_mc0_mce()
519 static bool f10h_mc0_mce(u16 ec, u8 xec) in f10h_mc0_mce() argument
521 if (R4(ec) == R4_GEN && LL(ec) == LL_L1) { in f10h_mc0_mce()
525 return f12h_mc0_mce(ec, xec); in f10h_mc0_mce()
528 static bool k8_mc0_mce(u16 ec, u8 xec) in k8_mc0_mce() argument
530 if (BUS_ERROR(ec)) { in k8_mc0_mce()
535 return f10h_mc0_mce(ec, xec); in k8_mc0_mce()
538 static bool cat_mc0_mce(u16 ec, u8 xec) in cat_mc0_mce() argument
540 u8 r4 = R4(ec); in cat_mc0_mce()
543 if (MEM_ERROR(ec)) { in cat_mc0_mce()
545 if (TT(ec) != TT_DATA || LL(ec) != LL_L1) in cat_mc0_mce()
563 } else if (BUS_ERROR(ec)) { in cat_mc0_mce()
565 if ((II(ec) != II_MEM && II(ec) != II_IO) || LL(ec) != LL_LG) in cat_mc0_mce()
590 static bool f15h_mc0_mce(u16 ec, u8 xec) in f15h_mc0_mce() argument
594 if (MEM_ERROR(ec)) { in f15h_mc0_mce()
625 } else if (BUS_ERROR(ec)) { in f15h_mc0_mce()
631 } else if (INT_ERROR(ec)) { in f15h_mc0_mce()
645 u16 ec = EC(m->status); in decode_mc0_mce() local
651 if (TLB_ERROR(ec)) { in decode_mc0_mce()
652 if (TT(ec) == TT_DATA) { in decode_mc0_mce()
653 pr_cont("%s TLB %s.\n", LL_MSG(ec), in decode_mc0_mce()
658 } else if (fam_ops.mc0_mce(ec, xec)) in decode_mc0_mce()
664 static bool k8_mc1_mce(u16 ec, u8 xec) in k8_mc1_mce() argument
666 u8 ll = LL(ec); in k8_mc1_mce()
669 if (!MEM_ERROR(ec)) in k8_mc1_mce()
675 switch (R4(ec)) { in k8_mc1_mce()
698 static bool cat_mc1_mce(u16 ec, u8 xec) in cat_mc1_mce() argument
700 u8 r4 = R4(ec); in cat_mc1_mce()
703 if (!MEM_ERROR(ec)) in cat_mc1_mce()
706 if (TT(ec) != TT_INSTR) in cat_mc1_mce()
723 static bool f15h_mc1_mce(u16 ec, u8 xec) in f15h_mc1_mce() argument
727 if (!MEM_ERROR(ec)) in f15h_mc1_mce()
755 u16 ec = EC(m->status); in decode_mc1_mce() local
760 if (TLB_ERROR(ec)) in decode_mc1_mce()
761 pr_cont("%s TLB %s.\n", LL_MSG(ec), in decode_mc1_mce()
763 else if (BUS_ERROR(ec)) { in decode_mc1_mce()
767 } else if (INT_ERROR(ec)) { in decode_mc1_mce()
772 } else if (fam_ops.mc1_mce(ec, xec)) in decode_mc1_mce()
783 static bool k8_mc2_mce(u16 ec, u8 xec) in k8_mc2_mce() argument
791 else if (xec == 0x2 && MEM_ERROR(ec)) in k8_mc2_mce()
792 pr_cont(": %s error in the L2 cache tags.\n", R4_MSG(ec)); in k8_mc2_mce()
794 if (TLB_ERROR(ec)) in k8_mc2_mce()
796 TT_MSG(ec)); in k8_mc2_mce()
797 else if (BUS_ERROR(ec)) in k8_mc2_mce()
799 R4_MSG(ec), PP_MSG(ec)); in k8_mc2_mce()
800 else if (MEM_ERROR(ec)) { in k8_mc2_mce()
801 u8 r4 = R4(ec); in k8_mc2_mce()
805 R4_MSG(ec)); in k8_mc2_mce()
808 "access from L2.\n", R4_MSG(ec)); in k8_mc2_mce()
819 static bool f15h_mc2_mce(u16 ec, u8 xec) in f15h_mc2_mce() argument
823 if (TLB_ERROR(ec)) { in f15h_mc2_mce()
830 } else if (BUS_ERROR(ec)) { in f15h_mc2_mce()
835 } else if (MEM_ERROR(ec)) { in f15h_mc2_mce()
848 } else if (INT_ERROR(ec)) { in f15h_mc2_mce()
858 static bool f16h_mc2_mce(u16 ec, u8 xec) in f16h_mc2_mce() argument
860 u8 r4 = R4(ec); in f16h_mc2_mce()
862 if (!MEM_ERROR(ec)) in f16h_mc2_mce()
901 u16 ec = EC(m->status); in decode_mc2_mce() local
906 if (!fam_ops.mc2_mce(ec, xec)) in decode_mc2_mce()
912 u16 ec = EC(m->status); in decode_mc3_mce() local
924 u8 r4 = R4(ec); in decode_mc3_mce()
926 if (!BUS_ERROR(ec) || (r4 != R4_DRD && r4 != R4_DWR)) in decode_mc3_mce()
929 pr_cont(" during %s.\n", R4_MSG(ec)); in decode_mc3_mce()
943 u16 ec = EC(m->status); in decode_mc4_mce() local
967 if (TLB_ERROR(ec)) in decode_mc4_mce()
969 else if (BUS_ERROR(ec)) in decode_mc4_mce()
1000 u16 ec = EC(m->status); in decode_mc5_mce() local
1008 if (INT_ERROR(ec)) { in decode_mc5_mce()
1079 static inline void amd_decode_err_code(u16 ec) in amd_decode_err_code() argument
1081 if (INT_ERROR(ec)) { in amd_decode_err_code()
1082 pr_emerg(HW_ERR "internal: %s\n", UU_MSG(ec)); in amd_decode_err_code()
1086 pr_emerg(HW_ERR "cache level: %s", LL_MSG(ec)); in amd_decode_err_code()
1088 if (BUS_ERROR(ec)) in amd_decode_err_code()
1089 pr_cont(", mem/io: %s", II_MSG(ec)); in amd_decode_err_code()
1091 pr_cont(", tx: %s", TT_MSG(ec)); in amd_decode_err_code()
1093 if (MEM_ERROR(ec) || BUS_ERROR(ec)) { in amd_decode_err_code()
1094 pr_cont(", mem-tx: %s", R4_MSG(ec)); in amd_decode_err_code()
1096 if (BUS_ERROR(ec)) in amd_decode_err_code()
1097 pr_cont(", part-proc: %s (%s)", PP_MSG(ec), TO_MSG(ec)); in amd_decode_err_code()