fby3.5: rf: Support power sequence#311
Closed
DelphineChiu wants to merge 1 commit into
Closed
Conversation
Contributor
|
@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: - Support power on/off sequence of CXL controller and device. - When power on/off failed, send SEL to BMC and close the power. Test plan: - Build code: Pass - Power on CXL: Pass - Power off CXL: Pass - Send SEL: Pass Log: 1. Check CXL pwoer on successfully. [BIC console] [set_MB_DC_status] gpio number(32) status(1) [set_DC_status] gpio number(33) status(0) uart:~$ [control_power_on_sequence] power on success uart:~$ platform gpio list_all ... [27 ] PVPP_CD_PG_R : PP | input (I) | 1(1) [28 ] P0V8_ASICA_PWRGD : PP | input (I) | 1(1) [29 ] PVTT_AB_PG_R : PP | input (I) | 1(1) [31 ] PVTT_CD_PG_R : PP | input (I) | 1(1) [33 ] PWRGD_CARD_PWROK : PP | output(O) | 1(1) [43 ] P0V9_ASICA_PWRGD : PP | input (I) | 1(1) [44 ] P1V8_ASIC_PG_R : PP | input (I) | 1(1) [49 ] PVPP_AB_PG_R : PP | input (I) | 1(1) [53 ] P0V8_ASICD_PWRGD : PP | input (I) | 1(1) [54 ] PWRGD_PVDDQ_CD : PP | input (I) | 1(1) [59 ] PWRGD_PVDDQ_AB : PP | input (I) | 1(1) ... 2. Check CXL power off successfully. uart:~$ [set_MB_DC_status] gpio number(32) status(0) [control_power_off_sequence] power off success uart:~$ platform gpio list_all ... [27 ] PVPP_CD_PG_R : PP | input (I) | 0(0) [28 ] P0V8_ASICA_PWRGD : PP | input (I) | 0(0) [29 ] PVTT_AB_PG_R : PP | input (I) | 0(0) [31 ] PVTT_CD_PG_R : PP | input (I) | 0(0) [33 ] PWRGD_CARD_PWROK : PP | output(O) | 0(0) [43 ] P0V9_ASICA_PWRGD : PP | input (I) | 0(0) [44 ] P1V8_ASIC_PG_R : PP | input (I) | 0(0) [49 ] PVPP_AB_PG_R : PP | input (I) | 0(0) [53 ] P0V8_ASICD_PWRGD : PP | input (I) | 0(0) [54 ] PWRGD_PVDDQ_CD : PP | input (I) | 0(0) [59 ] PWRGD_PVDDQ_AB : PP | input (I) | 0(0) ... 3. Check can send SEL when power on or off failed. root@bmc-oob:~# log-util --print all ... 2 slot2 2022-05-23 22:01:18 ipmid SEL Entry: FRU: 2, Record: Standard (0x02), Time: 2022-05-23 22:01:18, Sensor: PWR_ERR (0x56), Event Data: (030A0A) EXP PWROK Failure Assertion 2 slot2 2022-05-23 22:01:18 ipmid SEL Entry: FRU: 2, Record: Standard (0x02), Time: 2022-05-23 22:01:18, Sensor: PWR_ERR (0x56), Event Data: (04030A) EXP PWROFF Failure Assertion
9a5f1cc to
a11b13a
Compare
Contributor
|
@DelphineChiu has updated the pull request. You must reimport the pull request before landing. |
Contributor
|
Hi @GoldenBug , |
Contributor
|
@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
Summary:
Test plan:
Log:
[BIC console]
[set_MB_DC_status] gpio number(32) status(1)
[set_DC_status] gpio number(33) status(0)
uart:~$ [control_power_on_sequence] power on success
uart:~$ platform gpio list_all
...
[27 ] PVPP_CD_PG_R : PP | input (I) | 1(1)
[28 ] P0V8_ASICA_PWRGD : PP | input (I) | 1(1)
[29 ] PVTT_AB_PG_R : PP | input (I) | 1(1)
[31 ] PVTT_CD_PG_R : PP | input (I) | 1(1)
[33 ] PWRGD_CARD_PWROK : PP | output(O) | 1(1)
[43 ] P0V9_ASICA_PWRGD : PP | input (I) | 1(1)
[44 ] P1V8_ASIC_PG_R : PP | input (I) | 1(1)
[49 ] PVPP_AB_PG_R : PP | input (I) | 1(1)
[53 ] P0V8_ASICD_PWRGD : PP | input (I) | 1(1)
[54 ] PWRGD_PVDDQ_CD : PP | input (I) | 1(1)
[59 ] PWRGD_PVDDQ_AB : PP | input (I) | 1(1)
...
uart:~$ [set_MB_DC_status] gpio number(32) status(0)
[control_power_off_sequence] power off success
uart:~$ platform gpio list_all
...
[27 ] PVPP_CD_PG_R : PP | input (I) | 0(0)
[28 ] P0V8_ASICA_PWRGD : PP | input (I) | 0(0)
[29 ] PVTT_AB_PG_R : PP | input (I) | 0(0)
[31 ] PVTT_CD_PG_R : PP | input (I) | 0(0)
[33 ] PWRGD_CARD_PWROK : PP | output(O) | 0(0)
[43 ] P0V9_ASICA_PWRGD : PP | input (I) | 0(0)
[44 ] P1V8_ASIC_PG_R : PP | input (I) | 0(0)
[49 ] PVPP_AB_PG_R : PP | input (I) | 0(0)
[53 ] P0V8_ASICD_PWRGD : PP | input (I) | 0(0)
[54 ] PWRGD_PVDDQ_CD : PP | input (I) | 0(0)
[59 ] PWRGD_PVDDQ_AB : PP | input (I) | 0(0)
...
root@bmc-oob:~# log-util --print all
...
2 slot2 2022-05-23 22:01:18 ipmid SEL Entry: FRU: 2, Record: Standard (0x02), Time: 2022-05-23 22:01:18, Sensor: PWR_ERR (0x56), Event Data: (030A0A) EXP PWROK Failure Assertion
2 slot2 2022-05-23 22:01:18 ipmid SEL Entry: FRU: 2, Record: Standard (0x02), Time: 2022-05-23 22:01:18, Sensor: PWR_ERR (0x56), Event Data: (04030A) EXP PWROFF Failure Assertion