Lines Matching refs:afsr
467 static void spitfire_cee_log(unsigned long afsr, unsigned long afar, unsigned long udbh, unsigned l… in spitfire_cee_log() argument
472 smp_processor_id(), afsr, afar, udbl, udbh, tl1); in spitfire_cee_log()
488 static void spitfire_ue_log(unsigned long afsr, unsigned long afar, unsigned long udbh, unsigned lo… in spitfire_ue_log() argument
494 smp_processor_id(), afsr, afar, udbl, udbh, tt, tl1); in spitfire_ue_log()
536 unsigned long afsr, tt, udbh, udbl; in spitfire_access_error() local
539 afsr = (status_encoded & SFSTAT_AFSR_MASK) >> SFSTAT_AFSR_SHIFT; in spitfire_access_error()
557 if (afsr & SFAFSR_UE) in spitfire_access_error()
558 spitfire_ue_log(afsr, afar, udbh, udbl, tt, tl1, regs); in spitfire_access_error()
564 if (afsr & SFAFSR_UE) { in spitfire_access_error()
583 spitfire_cee_log(afsr, afar, udbh, udbl, tl1, regs); in spitfire_access_error()
786 static inline struct cheetah_err_info *cheetah_get_error_log(unsigned long afsr) in cheetah_get_error_log() argument
795 if ((afsr & CHAFSR_TL1) != 0UL) in cheetah_get_error_log()
878 cheetah_error_log[i].afsr = CHAFSR_INVALID; in cheetah_ecache_flush_init()
1106 static inline unsigned long cheetah_get_hipri(unsigned long afsr) in cheetah_get_hipri() argument
1112 if ((tmp = (afsr & cheetah_error_table[i].mask)) != 0UL) in cheetah_get_hipri()
1130 unsigned long afsr, unsigned long afar, int recoverable) in cheetah_log_errors() argument
1137 afsr, afar, in cheetah_log_errors()
1138 (afsr & CHAFSR_TL1) ? 1 : 0); in cheetah_log_errors()
1147 (afsr & CHAFSR_M_SYNDROME) >> CHAFSR_M_SYNDROME_SHIFT, in cheetah_log_errors()
1148 (afsr & CHAFSR_E_SYNDROME) >> CHAFSR_E_SYNDROME_SHIFT, in cheetah_log_errors()
1149 (afsr & CHAFSR_ME) ? ", Multiple Errors" : "", in cheetah_log_errors()
1150 (afsr & CHAFSR_PRIV) ? ", Privileged" : ""); in cheetah_log_errors()
1151 hipri = cheetah_get_hipri(afsr); in cheetah_log_errors()
1164 if (afsr & ESYND_ERRORS) { in cheetah_log_errors()
1168 syndrome = (afsr & CHAFSR_E_SYNDROME) >> CHAFSR_E_SYNDROME_SHIFT; in cheetah_log_errors()
1175 } else if (afsr & MSYND_ERRORS) { in cheetah_log_errors()
1179 syndrome = (afsr & CHAFSR_M_SYNDROME) >> CHAFSR_M_SYNDROME_SHIFT; in cheetah_log_errors()
1232 afsr = (afsr & ~hipri) & cheetah_afsr_errors; in cheetah_log_errors()
1233 while (afsr != 0UL) { in cheetah_log_errors()
1234 unsigned long bit = cheetah_get_hipri(afsr); in cheetah_log_errors()
1240 afsr &= ~bit; in cheetah_log_errors()
1249 unsigned long afsr, afar; in cheetah_recheck_errors() local
1253 : "=r" (afsr) in cheetah_recheck_errors()
1255 if ((afsr & cheetah_afsr_errors) != 0) { in cheetah_recheck_errors()
1260 logp->afsr = afsr; in cheetah_recheck_errors()
1267 : : "r" (afsr), "i" (ASI_AFSR)); in cheetah_recheck_errors()
1272 void cheetah_fecc_handler(struct pt_regs *regs, unsigned long afsr, unsigned long afar) in cheetah_fecc_handler() argument
1280 p = cheetah_get_error_log(afsr); in cheetah_fecc_handler()
1283 afsr, afar); in cheetah_fecc_handler()
1299 if (p->afsr != afsr || p->afar != afar) in cheetah_fecc_handler()
1300 local_snapshot.afsr = CHAFSR_INVALID; in cheetah_fecc_handler()
1302 p->afsr = CHAFSR_INVALID; in cheetah_fecc_handler()
1331 if (afsr & (CHAFSR_PERR | CHAFSR_IERR | CHAFSR_ISAP)) in cheetah_fecc_handler()
1338 unsigned long new_afsr = local_snapshot.afsr; in cheetah_fecc_handler()
1349 cheetah_log_errors(regs, &local_snapshot, afsr, afar, recoverable); in cheetah_fecc_handler()
1433 void cheetah_cee_handler(struct pt_regs *regs, unsigned long afsr, unsigned long afar) in cheetah_cee_handler() argument
1438 p = cheetah_get_error_log(afsr); in cheetah_cee_handler()
1441 afsr, afar); in cheetah_cee_handler()
1457 if (p->afsr != afsr || p->afar != afar) in cheetah_cee_handler()
1458 local_snapshot.afsr = CHAFSR_INVALID; in cheetah_cee_handler()
1460 p->afsr = CHAFSR_INVALID; in cheetah_cee_handler()
1464 if (is_memory && (afsr & CHAFSR_CE) != 0UL) { in cheetah_cee_handler()
1475 if ((afsr & CHAFSR_EDC) != 0UL) { in cheetah_cee_handler()
1476 if ((afsr & cheetah_afsr_errors) == CHAFSR_EDC) in cheetah_cee_handler()
1480 } else if ((afsr & CHAFSR_CPC) != 0UL) { in cheetah_cee_handler()
1481 if ((afsr & cheetah_afsr_errors) == CHAFSR_CPC) in cheetah_cee_handler()
1520 if (afsr & (CHAFSR_PERR | CHAFSR_IERR | CHAFSR_ISAP)) in cheetah_cee_handler()
1527 cheetah_log_errors(regs, &local_snapshot, afsr, afar, recoverable); in cheetah_cee_handler()
1533 void cheetah_deferred_handler(struct pt_regs *regs, unsigned long afsr, unsigned long afar) in cheetah_deferred_handler() argument
1573 p = cheetah_get_error_log(afsr); in cheetah_deferred_handler()
1576 afsr, afar); in cheetah_deferred_handler()
1592 if (p->afsr != afsr || p->afar != afar) in cheetah_deferred_handler()
1593 local_snapshot.afsr = CHAFSR_INVALID; in cheetah_deferred_handler()
1595 p->afsr = CHAFSR_INVALID; in cheetah_deferred_handler()
1603 if ((afsr & CHAFSR_EDU) != 0UL) { in cheetah_deferred_handler()
1604 if ((afsr & cheetah_afsr_errors) == CHAFSR_EDU) in cheetah_deferred_handler()
1608 } else if ((afsr & CHAFSR_BERR) != 0UL) { in cheetah_deferred_handler()
1609 if ((afsr & cheetah_afsr_errors) == CHAFSR_BERR) in cheetah_deferred_handler()
1648 if (afsr & (CHAFSR_PERR | CHAFSR_IERR | CHAFSR_ISAP)) in cheetah_deferred_handler()
1655 unsigned long new_afsr = local_snapshot.afsr; in cheetah_deferred_handler()
1666 cheetah_log_errors(regs, &local_snapshot, afsr, afar, recoverable); in cheetah_deferred_handler()