Skip to content

Commit

Permalink
northdome: let ND BIC handle HOST_BOOT_TEMP's SDR (#2748)
Browse files Browse the repository at this point in the history
Summary:
northdome: let ND BIC handle HOST_BOOT_TEMP's  SDR

Pull Request resolved: facebookexternal/openbmc.quanta#2748

Test Plan:
For TL case,  HOST_BOOT_TEMP sensor SDR is handled by BMC,  since TL BIC can not access the sensor.
The sensor value would send from host server via IPMI commands at TL case.
By the way, BMC do not set any threshold  value for TL's HOST_BOOT_TEMP sensor.

However, for ND case,  HOST_BOOT_TEMP could be accessed by ND's BIC,
BMC let ND's BIC to set HOST_BOOT_TEMP sensor SDR and value instead.

root@bmc-oob:~# sensor-util slot4 0xa0 -t
HOST_BOOT_TEMP               (0xA0) :   24.00 C     | (ok) | UCR: 75.00
| UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA

Reviewed By: garnermic

fbshipit-source-id: 6b4d725696
  • Loading branch information
williamspatrick authored and facebook-github-bot committed Dec 6, 2021
1 parent dacb1b4 commit c26e15b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2246,6 +2246,7 @@ int
fby2_sensor_sdr_init(uint8_t fru, sensor_info_t *sinfo) {
char path[64] = {0};
int retry = 0;
uint8_t server_type = 0xFF;

switch(fru) {
case FRU_SLOT1:
Expand Down Expand Up @@ -2273,7 +2274,12 @@ fby2_sensor_sdr_init(uint8_t fru, sensor_info_t *sinfo) {
retry++;
sleep(1);
} else {
host_sensors_sdr_init(fru, sinfo);
if (fby2_get_server_type(fru, &server_type)) {
syslog(LOG_ERR, "%s, Get server type %d failed", __func__,server_type);
}
if (server_type != SERVER_TYPE_ND) { // ND handle host boot temp by BIC
host_sensors_sdr_init(fru, sinfo);
}
#ifdef CONFIG_FBY2_GPV2
gpv2_sensors_sdr_init(fru, sinfo);
#endif
Expand Down

0 comments on commit c26e15b

Please sign in to comment.