Skip to content

[Y35/CL]Added get device id command.#33

Closed
GoldenBug wants to merge 1 commit into
gh/goldenbug/25/basefrom
gh/goldenbug/25/head
Closed

[Y35/CL]Added get device id command.#33
GoldenBug wants to merge 1 commit into
gh/goldenbug/25/basefrom
gh/goldenbug/25/head

Conversation

@GoldenBug

Copy link
Copy Markdown
Contributor

Stack from ghstack:

  • (to be filled)

Summary:

  • Impletmented get device id command.

Test plan:
-Build code: Pass
root@bmc-oob:~# bic-util slot4 0x18 0x1
00 80 01 01 02 BF 9C 9C 00 00 00 00 00 00 00

Summary:
- Impletmented get device id command.

Test plan:
-Build code: Pass
root@bmc-oob:~# bic-util slot4 0x18 0x1
00 80 01 01 02 BF 9C 9C 00 00 00 00 00 00 00

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 21, 2021
@GoldenBug GoldenBug closed this Oct 21, 2021
@GoldenBug GoldenBug deleted the gh/goldenbug/25/head branch October 21, 2021 09:26
Scron-Chang added a commit to Scron-Chang/OpenBIC that referenced this pull request Jul 5, 2022
Associate the CXL power LED with the PWRGD_CARD_PWROK(GPIOE1).

Tested:
1. Rainbow Falls build platform: Pass.
   (Removed the unused variable in the xdpe12284c c file.)
2. Check GPIO state on the BMC side. When PWRGD_CARD_PWROK(facebook#33) is high,
the CXL power LED is bright, and vice versa.
```
root@bmc-oob:~# power-util slot1 status
Power status for fru 1 : ON
root@bmc-oob:~# power-util slot1 off
Powering fru 1 to OFF state...
root@bmc-oob:~# bic-util slot1 0xe0 0x2 0x9c 0x9c 0x00 0x5 0xE0 0x41 0x9C 0x9c 0x00 0 33
9C 9C 00 05 39 41 00 9C 9C 00 21 00
root@bmc-oob:~# bic-util slot1 0xe0 0x2 0x9c 0x9c 0x00 0x5 0xE0 0x41 0x9C 0x9c 0x00 0 66
9C 9C 00 05 39 41 00 9C 9C 00 5A 00
root@bmc-oob:~# power-util slot1 on
Powering fru 1 to ON state...
root@bmc-oob:~# bic-util slot1 0xe0 0x2 0x9c 0x9c 0x00 0x5 0xE0 0x41 0x9C 0x9c 0x00 0 33
9C 9C 00 05 39 41 00 9C 9C 00 21 01
root@bmc-oob:~# bic-util slot1 0xe0 0x2 0x9c 0x9c 0x00 0x5 0xE0 0x41 0x9C 0x9c 0x00 0 66
9C 9C 00 05 39 41 00 9C 9C 00 5A 01
root@bmc-oob:~#
```

Signed-off-by: Scron Chang <Scron.Chang@quantatw.com>
Scron-Chang added a commit to Scron-Chang/OpenBIC that referenced this pull request Jul 5, 2022
Associate the CXL power LED with the PWRGD_CARD_PWROK(GPIOE1).

Tested:
1. Rainbow Falls build platform: Pass.
   (Removed the unused variable in the xdpe12284c c file.)
2. Check GPIO state on the BMC side. When PWRGD_CARD_PWROK(facebook#33) is high,
the CXL power LED is bright, and vice versa.
```
root@bmc-oob:~# power-util slot1 status
Power status for fru 1 : ON
root@bmc-oob:~# power-util slot1 off
Powering fru 1 to OFF state...
root@bmc-oob:~# bic-util slot1 0xe0 0x2 0x9c 0x9c 0x00 0x5 0xE0 0x41 0x9C 0x9c 0x00 0 33
9C 9C 00 05 39 41 00 9C 9C 00 21 00
root@bmc-oob:~# bic-util slot1 0xe0 0x2 0x9c 0x9c 0x00 0x5 0xE0 0x41 0x9C 0x9c 0x00 0 66
9C 9C 00 05 39 41 00 9C 9C 00 5A 00
root@bmc-oob:~# power-util slot1 on
Powering fru 1 to ON state...
root@bmc-oob:~# bic-util slot1 0xe0 0x2 0x9c 0x9c 0x00 0x5 0xE0 0x41 0x9C 0x9c 0x00 0 33
9C 9C 00 05 39 41 00 9C 9C 00 21 01
root@bmc-oob:~# bic-util slot1 0xe0 0x2 0x9c 0x9c 0x00 0x5 0xE0 0x41 0x9C 0x9c 0x00 0 66
9C 9C 00 05 39 41 00 9C 9C 00 5A 01
root@bmc-oob:~#
```

Signed-off-by: Scron Chang <Scron.Chang@quantatw.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

2 participants