diff options
author | Potin Lai <potin.lai@quantatw.com> | 2022-08-19 09:56:49 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2022-09-06 20:58:53 +0300 |
commit | aafe18780bb86f76d2a79301775bb20b7d2eb151 (patch) | |
tree | adfeacfd6b36ad4d361975495ca2f3255654deac | |
parent | 157bd36e6ec565d38e7f939301b31a09deb243fa (diff) | |
download | openbmc-aafe18780bb86f76d2a79301775bb20b7d2eb151.tar.xz |
meta-bletchley: power-ctrl: add delay in do_action_on()
In Bletchley, we check host link status from switch to identify the
host power state. During the power on process, the host (MAC mini)
need some extra times to stable link status.
Add extra 10 seconeds delay into do_action_on() to avoid get wrong
host power state during stress testing of host power on/off.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ica628df42e29912029b44675aacdf555263cb6fa
-rwxr-xr-x | meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/power-ctrl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/power-ctrl b/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/power-ctrl index 2c9dfe1b85..7a6a96c8dd 100755 --- a/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/power-ctrl +++ b/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/power-ctrl @@ -377,6 +377,7 @@ function do_action_on() local SLED_NUM=$1 echo "sled${SLED_NUM}: power on host" trigger_power_button "$SLED_NUM" "$DELAY_POWER_ON" + sleep 10 # Mac mini need about 10 second to stable link status echo "$ACTION_ON" > "/tmp/sled${SLED_NUM}-last-action" } |