Skip to content

Commit

Permalink
GTA: Fix sensor-util timeout
Browse files Browse the repository at this point in the history
Summary:
# Description
Extend the sensor-util timeout of FRU MEB and ACB.

# Motivation
During the multi-session stress test of the sensor-util tool, we have observed potential timeouts occurring for the FRU MEB and ACB. We suspect that this is due to the higher number of sensors associated with these two FRUs and the concurrent access by multiple sessions to retrieve sensor readings, which is causing slower retrieval speeds for individual sessions and leading to timeout.

X-link: facebookexternal/openbmc.wiwynn#2867

Test Plan:
1. Build and test pass on GTA system. pass

2. Stress over 1500 cycles and didn't see any time out message. pass

Reviewed By: amithash

Differential Revision: D51247171

fbshipit-source-id: b70d52a722efbb756ad0af0cf284bdd7c15dc4da
  • Loading branch information
SeanChuangWiwynn authored and facebook-github-bot committed Nov 13, 2023
1 parent abec539 commit a5b7b12
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -771,11 +771,14 @@ pal_set_post_end(uint8_t slot, uint8_t *req_data, uint8_t *res_data, uint8_t *re

int
pal_get_sensor_util_timeout(uint8_t fru) {

if ( fru == FRU_MB ) {
return 10;
} else {
return 4;
switch (fru) {
case FRU_MB:
return 10;
case FRU_ACB:
case FRU_MEB:
return 15;
default:
return 4;
}
}

Expand Down

0 comments on commit a5b7b12

Please sign in to comment.