Skip to content

Commit

Permalink
fbrc: Add Processor Fail(65h) discrete sensor and FRB3 event log
Browse files Browse the repository at this point in the history
Summary: 1. As title, add Processor Fail(65h) discrete sensor and FRB3 event log.

Test Plan:
Build and test pass on RC EVT system.

Assertion:

root@bmc-oob:/tmp# bic-util slot3 --read_sensor | grep -i 101
sensor#101: value: 0x0, flags: 0xC0, status: 0x10, ext_status: 0x0

root@bmc-oob:/tmp# log-util all --print
FRU# FRU_NAME TIME_STAMP             APP_NAME         MESSAGE
2018 Jan 01 00:05:33 log-util: User cleared all logs

3    slot3    2018-01-01 00:07:36    sensord          ASSERT: FRB3 discrete - raised - FRU: 3, num: 0x65, snr: PROC_FAIL val: 1

De-assertion:

root@bmc-oob:/tmp# bic-util slot3 --read_sensor | grep -i 101
sensor#101: value: 0x0, flags: 0xC0, status: 0x0, ext_status: 0x0

root@bmc-oob:/tmp# log-util all --print
FRU# FRU_NAME TIME_STAMP             APP_NAME         MESSAGE
2018 Jan 01 00:05:33 log-util: User cleared all logs

3    slot3    2018-01-01 00:07:36    sensord          ASSERT: FRB3 discrete - raised - FRU: 3, num: 0x65, snr: PROC_FAIL val: 1
3    slot3    2018-01-01 00:09:11    sensord          DEASSERT: FRB3 discrete - settled - FRU: 3, num: 0x65, snr: PROC_FAIL val: 0

Reviewed By: benwei13

fbshipit-source-id: 2b960a8
  • Loading branch information
benwei13 authored and facebook-github-bot committed Jun 25, 2018
1 parent fa7b037 commit 39d8b7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ const uint8_t bic_rc_discrete_list[] = {
BIC_RC_SENSOR_SYSTEM_STATUS ,
BIC_RC_SENSOR_VR_HOT ,
BIC_RC_SENSOR_SYS_BOOTING_STS,
BIC_RC_SENSOR_PROC_FAIL,
};

#ifdef CONFIG_FBY2_EP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ enum {
BIC_RC_SENSOR_SYSTEM_STATUS = 0x10, // Discrete
BIC_RC_SENSOR_VR_HOT = 0xB2, // Discrete
BIC_RC_SENSOR_SYS_BOOTING_STS = 0x7E, // Discrete
BIC_RC_SENSOR_PROC_FAIL = 0x65, //Discrete
BIC_RC_SENSOR_RAS_UNCORR = 0xCB, //Event-only
BIC_RC_SENSOR_RAS_CORR_INFO = 0xCC, //Event-only
BIC_RC_SENSOR_RAS_FATAL = 0xCD, //Event-only
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4056,6 +4056,10 @@ pal_sensor_discrete_check_rc(uint8_t fru, uint8_t snr_num, char *snr_name,
sprintf(name, "CPU0_FIVR_Fault");
valid = true;
break;
case BIC_RC_SENSOR_PROC_FAIL:
sprintf(name, "FRB3");
valid = true;
break;
}
if (valid) {
_print_sensor_discrete_log(fru, snr_num, snr_name, GETBIT(n_val, 4), name);
Expand Down

0 comments on commit 39d8b7e

Please sign in to comment.