-
Notifications
You must be signed in to change notification settings - Fork 52
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: bb: Fix build code fail issue and correct LTC4282 sensor reading #475
fby3.5: bb: Fix build code fail issue and correct LTC4282 sensor reading #475
Conversation
b360e39
to
a8684fd
Compare
@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Is line 87 in meta-facebook/yv35-bb/src/platform/plat_hook.c supposed to be
If so we probably just want to fix it in this PR. |
Summary: - Correct BB BIC LTC4282 sensor reading. - Modify LTC4282 sensor initial flag from true to false, making LTC4282 sensor to get adjust parameter of sensor reading from register. Test Plan: - Build code: Pass - LTC4282 sensor reading is correct: Pass Log: - Before modifying LTC4282 sensor initial flag from true to false LTC4282 sensor doesn't do initial function (Doesn't get adjust parameter of sensor reading from register) [BMC console] root@bmc-oob:~# sensor-util slot1 --thre | grep BB_MEDUSA BB_MEDUSA_VIN (0xDB) : 4.13 Volts | (lnr) | UCR: 13.88 | UNC: 13.75 | UNR: 14.00 | LCR: 11.12 | LNC: 11.25 | LNR: 9.25 BB_MEDUSA_VOUT (0xD7) : 4.13 Volts | (lnr) | UCR: 13.88 | UNC: 13.75 | UNR: 14.00 | LCR: 11.12 | LNC: 11.25 | LNR: 9.25 BB_MEDUSA_CUR (0xDF) : 17.77 Amps | (ok) | UCR: 144.00 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA BB_MEDUSA_PWR (0xD8) : 73.33 Watts | (ok) | UCR: 1800.00 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA - After modifying LTC4282 sensor initial flag from true to false [BMC console] root@bmc-oob:~# sensor-util slot1 --thre | grep BB_MEDUSA BB_MEDUSA_VIN (0xDB) : 12.39 Volts | (ok) | UCR: 13.88 | UNC: 13.75 | UNR: 14.00 | LCR: 11.12 | LNC: 11.25 | LNR: 9.25 BB_MEDUSA_VOUT (0xD7) : 12.39 Volts | (ok) | UCR: 13.88 | UNC: 13.75 | UNR: 14.00 | LCR: 11.12 | LNC: 11.25 | LNR: 9.25 BB_MEDUSA_CUR (0xDF) : 17.58 Amps | (ok) | UCR: 144.00 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA BB_MEDUSA_PWR (0xD8) : 217.65 Watts | (ok) | UCR: 1800.00 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
a8684fd
to
23e5976
Compare
@DelphineChiu has updated the pull request. You must reimport the pull request before landing. |
Hi @GoldenBug , |
@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary:
Test Plan:
Log:
LTC4282 sensor doesn't do initial function (Doesn't get adjust parameter of sensor reading from register)
[BMC console]
root@bmc-oob:~# sensor-util slot1 --thre | grep BB_MEDUSA
BB_MEDUSA_VIN (0xDB) : 4.13 Volts | (lnr) | UCR: 13.88 | UNC: 13.75 | UNR: 14.00 | LCR: 11.12 | LNC: 11.25 | LNR: 9.25
BB_MEDUSA_VOUT (0xD7) : 4.13 Volts | (lnr) | UCR: 13.88 | UNC: 13.75 | UNR: 14.00 | LCR: 11.12 | LNC: 11.25 | LNR: 9.25
BB_MEDUSA_CUR (0xDF) : 17.77 Amps | (ok) | UCR: 144.00 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
BB_MEDUSA_PWR (0xD8) : 73.33 Watts | (ok) | UCR: 1800.00 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
[BMC console]
root@bmc-oob:~# sensor-util slot1 --thre | grep BB_MEDUSA
BB_MEDUSA_VIN (0xDB) : 12.39 Volts | (ok) | UCR: 13.88 | UNC: 13.75 | UNR: 14.00 | LCR: 11.12 | LNC: 11.25 | LNR: 9.25
BB_MEDUSA_VOUT (0xD7) : 12.39 Volts | (ok) | UCR: 13.88 | UNC: 13.75 | UNR: 14.00 | LCR: 11.12 | LNC: 11.25 | LNR: 9.25
BB_MEDUSA_CUR (0xDF) : 17.58 Amps | (ok) | UCR: 144.00 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
BB_MEDUSA_PWR (0xD8) : 217.65 Watts | (ok) | UCR: 1800.00 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA