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

fby3.5: cl:Support PMIC power measurement sensor #278

Closed

Conversation

DelphineChiu
Copy link

Summary:

  • Add PMIC power measurement sensor.
  • Decrease IPMB Tx/Rx stack size to expand SRAM size.

Note:

  • Users should disable PMIC secure mode in BIOS setting menu before reading PMIC power measurement sensor.

Test Plan:

  • Build code: Pass
  • Get sensor reading: Pass
  • Test decrease IPMB Tx/Rx stack size: Host reboot pass in 200 times
  • Test decrease IPMB Tx/Rx stack size: BIOS update pass in 90 times
  • Test decrease IPMB Tx/Rx stack size: IPMI releated IPMB transfer(bic-util/me-util/sensor-util) pass in 19366 times

Log:
root@bmc-oob:~# sensor-util slot2 --threshold | grep PMIC
DIMMA PMIC_Pout (0x1E) : 0.38 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMMC PMIC_Pout (0x1F) : 0.75 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMMD PMIC_Pout (0x36) : 0.50 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMME PMIC_Pout (0x37) : 0.62 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMMG PMIC_Pout (0x42) : 0.62 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMMH PMIC_Pout (0x47) : 0.50 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA

@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 May 11, 2022
@facebook-github-bot
Copy link
Contributor

@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
- Add PMIC power measurement sensor.
- Decrease IPMB Tx/Rx stack size to expand SRAM size.

Note:
- Users should disable PMIC secure mode in BIOS setting menu before reading PMIC power measurement sensor.

Test Plan:
- Build code: Pass
- Get sensor reading: Pass
- Test decrease IPMB Tx/Rx stack size: Host reboot pass in 200 times
- Test decrease IPMB Tx/Rx stack size: BIOS update pass in 90 times
- Test decrease IPMB Tx/Rx stack size: IPMI releated IPMB transfer(bic-util/me-util/sensor-util) pass in 19366 times

Log:
root@bmc-oob:~# sensor-util slot2 --threshold | grep PMIC
DIMMA PMIC_Pout              (0x1E) :    0.38 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMMC PMIC_Pout              (0x1F) :    0.75 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMMD PMIC_Pout              (0x36) :    0.50 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMME PMIC_Pout              (0x37) :    0.62 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMMG PMIC_Pout              (0x42) :    0.62 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
DIMMH PMIC_Pout              (0x47) :    0.50 Watts | (ok) | UCR: 32.20 | UNC: 31.50 | UNR: NA | LCR: NA | LNC: NA | LNR: NA
@LoraLin1 LoraLin1 force-pushed the Lora/main_v2/Add_PMIC_sensor branch from b700c4e to eb25c3f Compare May 12, 2022 03:07
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

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

Successfully merging this pull request may close these issues.

None yet

3 participants