Searched hist:"4 baf41c8" (Results 1 – 1 of 1) sorted by relevance
/openbmc/google-ipmi-sys/ |
H A D | handler.cpp | 4baf41c8 Thu Jul 06 17:34:04 CDT 2023 Hao Zhou <haoooamazing@google.com> Add flags for bmc modes transitions
1. When /run/bm-drive-cleaning-done.flag is present, it means cleaning is done and we are in BM_MODE. Also, it is acked by renaming flag to bm-drive-cleaning-done-ack.flag 2. if not case 1, when /run/bm-drive-cleaning-done-ack.flag is present, it means the cleaing is done and acked 3. if not case 2, when bm-ready.flag is present, it means we are in BM_CLEANING_MODE. /run/bm-drive-cleaning.flag is created if needed 4. otherwise, we are in NON_BM_MODE
Tested: bm-ready.flag is not present. Respond Non-BM mode:
ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x10 79 2b 00 10 00
bm-ready.flah is present. For next call, respond Cleaning Mode and bm-drive-cleaning.flag is created:
ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x10 79 2b 00 10 02
keep responding Cleaning Mode until bm-drive-cleaning-done.flag is created. So cleaning is done and for next call, respond BM mode and rename bm-drive-cleaning-done.flag to bm-drive-cleaning-done-ack.flag:
ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x10 79 2b 00 10 01
Change-Id: Id8a6049550631c30c68a536313b81a8d800fede0 Signed-off-by: Hao Zhou <haoooamazing@google.com>
|