Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fby4: sd: Obtain BIOS information via PLDM SMBIOS #1500

Closed

Conversation

BonnieLo
Copy link

@BonnieLo BonnieLo commented Dec 1, 2023

Description:

  • Enable KSC for setting bios information.

Motivation:

  • Support BMC can obtain BIOS version by standard PLDM command.

Test plan:

  • BMC can get bios version from bic.

Log:

[First query]
root@bmc:/tmp# pldmtool raw -m 40 -v -d 0x80 0x01 0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 pldmtool: Tx: 80 01 05 00 00 00 00 00 00 00 00
pldmtool: Rx: 00 01 05 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

[Power on the host]
root@bmc:/tmp# busctl set-property xyz.openbmc_project.State.Host4 /xyz/openbmc_project/state/host4 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_project.State.Host.Transition.On"

[Wait for post code complete and query again]
root@bmc:/tmp# pldmtool raw -m 40 -v -d 0x80 0x01 0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 pldmtool: Tx: 80 01 05 00 00 00 00 00 00 00 00
pldmtool: Rx: 00 01 05 00 00 00 00 00 05 00 0c 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 59 34 54 52 5f 31 31 30 38 00 00
|
[bios version: first text string] [Y4TR_1108]

# Description:
- Enable KSC for setting bios information.

# Motivation:
- Support BMC can obtain BIOS version by standard PLDM command.

# Test plan:
- BMC can get bios version from bic.

# Log:

[First query]
root@bmc:/tmp#  pldmtool raw -m 40 -v -d 0x80 0x01 0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
pldmtool: Tx: 80 01 05 00 00 00 00 00 00 00 00
pldmtool: Rx: 00 01 05 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

[Power on the host]
root@bmc:/tmp# busctl set-property xyz.openbmc_project.State.Host4 /xyz/openbmc_project/state/host4 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_project.State.Host.Transition.On"

[Wait for post code complete and query again]
root@bmc:/tmp#  pldmtool raw -m 40 -v -d 0x80 0x01 0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
pldmtool: Tx: 80 01 05 00 00 00 00 00 00 00 00
pldmtool: Rx: 00 01 05 00 00 00 00 00 05 00 0c 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 59 34 54 52 5f 31 31 30 38 00 00
                                                         |
                                                        [bios version: first text string]                              [Y4TR_1108]
@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 Dec 1, 2023
@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@BonnieLo has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7258775.

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. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants