fby3.5: common: Delay ready time#251
Closed
DelphineChiu wants to merge 1 commit into
Closed
Conversation
Author
|
Dependency: #250 |
1edb7ae to
0083af1
Compare
Contributor
|
Hi @GoldenBug , |
Contributor
|
@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
GoldenBug
reviewed
Apr 21, 2022
Summary: - Check sensor polling once before BIC pulls ready GPIO high. To avoid BMC too early to ask for any pieces of information. Test plan - Build code: Pass - Ready pin is delay: Pass Log: 1. Check BIC ready GPIO is delay. - Before: Due to didn't check sensor reading, BIC ready value changed too fast to get different. root@bmc-oob:~# fw-util slot1 --force --update bic oby35-cl-2022.13.01.bin; while [ 1 ]; do date; bic-util slot1 0xe0 0x41 0x9c 0x9c 0x0 0x0 28; sleep 0.5; done; slot_id: 1, comp: 2, intf: 0, img: oby35-cl-2022.13.01.bin, force: 1 Set fan mode to manual and set PWM to 70% file size = 327680 bytes, slot = 1, intf = 0xff updating fw on slot 1: updated bic: 100 % Elapsed time: 20 sec. Set fan mode to auto and start fscd Force upgrade of slot1 : bic succeeded Fri Mar 9 04:37:43 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:44 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:44 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:45 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:45 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:46 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:47 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:47 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:48 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:48 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:49 PST 2018 9C 9C 00 1C 01 - After: Due to checking sensor are polling once, we can get BIC ready value change. root@bmc-oob:~# fw-util slot1 --force --update bic Y35BCL.bin; while [ 1 ]; do date; bic-util slot1 0xe0 0x41 0x9c 0x9c 0x0 0x0 28; sleep 0.5; done; slot_id: 1, comp: 2, intf: 0, img: Y35BCL.bin, force: 1 Set fan mode to manual and set PWM to 70% file size = 296440 bytes, slot = 1, intf = 0xff updating fw on slot 1: updated bic: 100 % Elapsed time: 18 sec. Set fan mode to auto and start fscd Force upgrade of slot1 : bic succeeded Fri Mar 9 04:38:21 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:21 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:22 PST 2018 9C 9C 00 1C 00 Fri Mar 9 04:38:23 PST 2018 9C 9C 00 1C 00 Fri Mar 9 04:38:23 PST 2018 9C 9C 00 1C 00 Fri Mar 9 04:38:24 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:24 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:25 PST 2018 9C 9C 00 1C 01
0083af1 to
a4f4d9f
Compare
Contributor
|
@DelphineChiu has updated the pull request. You must reimport the pull request before landing. |
Contributor
|
Hi @GoldenBug , |
Contributor
|
Looks good to me! |
facebook-github-bot
pushed a commit
that referenced
this pull request
Apr 22, 2022
Summary: fby3.5: common: Delay ready time - Check sensor polling once before BIC pulls ready GPIO high. To avoid BMC too early to ask for any pieces of information. Pull Request resolved: #251 Test Plan: - Build code: Pass - Ready pin is delay: Pass Log: 1. Check BIC ready GPIO is delay. - Before: Due to didn't check sensor reading, BIC ready value changed too fast to get different. root@bmc-oob:~# fw-util slot1 --force --update bic oby35-cl-2022.13.01.bin; while [ 1 ]; do date; bic-util slot1 0xe0 0x41 0x9c 0x9c 0x0 0x0 28; sleep 0.5; done; slot_id: 1, comp: 2, intf: 0, img: oby35-cl-2022.13.01.bin, force: 1 Set fan mode to manual and set PWM to 70% file size = 327680 bytes, slot = 1, intf = 0xff updating fw on slot 1: updated bic: 100 % Elapsed time: 20 sec. Set fan mode to auto and start fscd Force upgrade of slot1 : bic succeeded Fri Mar 9 04:37:43 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:44 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:44 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:45 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:45 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:46 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:47 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:47 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:48 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:48 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:49 PST 2018 9C 9C 00 1C 01 - After: Due to checking sensor are polling once, we can get BIC ready value change. root@bmc-oob:~# fw-util slot1 --force --update bic Y35BCL.bin; while [ 1 ]; do date; bic-util slot1 0xe0 0x41 0x9c 0x9c 0x0 0x0 28; sleep 0.5; done; slot_id: 1, comp: 2, intf: 0, img: Y35BCL.bin, force: 1 Set fan mode to manual and set PWM to 70% file size = 296440 bytes, slot = 1, intf = 0xff updating fw on slot 1: updated bic: 100 % Elapsed time: 18 sec. Set fan mode to auto and start fscd Force upgrade of slot1 : bic succeeded Fri Mar 9 04:38:21 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:21 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:22 PST 2018 9C 9C 00 1C 00 Fri Mar 9 04:38:23 PST 2018 9C 9C 00 1C 00 Fri Mar 9 04:38:23 PST 2018 9C 9C 00 1C 00 Fri Mar 9 04:38:24 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:24 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:25 PST 2018 9C 9C 00 1C 01 Reviewed By: garnermic Differential Revision: D35820076 Pulled By: GoldenBug fbshipit-source-id: 9257f04ce67e08cc931a96e94f1d98cdd42d8184
facebook-github-bot
pushed a commit
that referenced
this pull request
Apr 26, 2022
Summary: fby3.5: common: Delay ready time - Check sensor polling once before BIC pulls ready GPIO high. To avoid BMC too early to ask for any pieces of information. Pull Request resolved: #251 Test Plan: - Build code: Pass - Ready pin is delay: Pass Log: 1. Check BIC ready GPIO is delay. - Before: Due to didn't check sensor reading, BIC ready value changed too fast to get different. root@bmc-oob:~# fw-util slot1 --force --update bic oby35-cl-2022.13.01.bin; while [ 1 ]; do date; bic-util slot1 0xe0 0x41 0x9c 0x9c 0x0 0x0 28; sleep 0.5; done; slot_id: 1, comp: 2, intf: 0, img: oby35-cl-2022.13.01.bin, force: 1 Set fan mode to manual and set PWM to 70% file size = 327680 bytes, slot = 1, intf = 0xff updating fw on slot 1: updated bic: 100 % Elapsed time: 20 sec. Set fan mode to auto and start fscd Force upgrade of slot1 : bic succeeded Fri Mar 9 04:37:43 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:44 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:44 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:45 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:45 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:46 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:47 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:47 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:48 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:48 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:37:49 PST 2018 9C 9C 00 1C 01 - After: Due to checking sensor are polling once, we can get BIC ready value change. root@bmc-oob:~# fw-util slot1 --force --update bic Y35BCL.bin; while [ 1 ]; do date; bic-util slot1 0xe0 0x41 0x9c 0x9c 0x0 0x0 28; sleep 0.5; done; slot_id: 1, comp: 2, intf: 0, img: Y35BCL.bin, force: 1 Set fan mode to manual and set PWM to 70% file size = 296440 bytes, slot = 1, intf = 0xff updating fw on slot 1: updated bic: 100 % Elapsed time: 18 sec. Set fan mode to auto and start fscd Force upgrade of slot1 : bic succeeded Fri Mar 9 04:38:21 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:21 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:22 PST 2018 9C 9C 00 1C 00 Fri Mar 9 04:38:23 PST 2018 9C 9C 00 1C 00 Fri Mar 9 04:38:23 PST 2018 9C 9C 00 1C 00 Fri Mar 9 04:38:24 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:24 PST 2018 9C 9C 00 1C 01 Fri Mar 9 04:38:25 PST 2018 9C 9C 00 1C 01 Reviewed By: garnermic Differential Revision: D35941609 Pulled By: GoldenBug fbshipit-source-id: e077fb3cd967a6ef692bca0d8b71f44c97518983
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fby3.5: common: Delay ready time
Summary:
To avoid BMC too early to ask for any pieces of information.
Test plan
Log:
root@bmc-oob:~# fw-util slot1 --force --update bic oby35-cl-2022.13.01.bin; while [ 1 ]; do date; bic-util slot1 0xe0 0x41 0x9c 0x9c 0x0 0x0 28; sleep 0.5; done;
slot_id: 1, comp: 2, intf: 0, img: oby35-cl-2022.13.01.bin, force: 1
Set fan mode to manual and set PWM to 70%
file size = 327680 bytes, slot = 1, intf = 0xff
updating fw on slot 1:
updated bic: 100 %
Elapsed time: 20 sec.
Set fan mode to auto and start fscd
Force upgrade of slot1 : bic succeeded
Fri Mar 9 04:37:43 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:44 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:44 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:45 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:45 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:46 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:47 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:47 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:48 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:48 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:37:49 PST 2018
9C 9C 00 1C 01
root@bmc-oob:~# fw-util slot1 --force --update bic Y35BCL.bin; while [ 1 ]; do date; bic-util slot1 0xe0 0x41 0x9c 0x9c 0x0 0x0 28; sleep 0.5; done;
slot_id: 1, comp: 2, intf: 0, img: Y35BCL.bin, force: 1
Set fan mode to manual and set PWM to 70%
file size = 296440 bytes, slot = 1, intf = 0xff
updating fw on slot 1:
updated bic: 100 %
Elapsed time: 18 sec.
Set fan mode to auto and start fscd
Force upgrade of slot1 : bic succeeded
Fri Mar 9 04:38:21 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:38:21 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:38:22 PST 2018
9C 9C 00 1C 00
Fri Mar 9 04:38:23 PST 2018
9C 9C 00 1C 00
Fri Mar 9 04:38:23 PST 2018
9C 9C 00 1C 00
Fri Mar 9 04:38:24 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:38:24 PST 2018
9C 9C 00 1C 01
Fri Mar 9 04:38:25 PST 2018
9C 9C 00 1C 01