Fby3.5 hd support bom3 sensor#468
Closed
Yi-Shum wants to merge 8 commits into
Closed
Conversation
Summary: - Set UCT/LCT of some sensor. Test Plan: - Build Code: PASS
Summary: - Read DIMM temperatures of TS0 and TS1, and select the higher as the result. Test Plan: - Build Code: PASS
Summary: - Support temperature sensor G788P87U. - Support VR sensor xdpe19283b. - Check HSC sensor type by GPIO HSC_TYPE_0/1. - Check VR and temperature sensor type by board revision. Test Plan: - Build Code: PASS. Log: Second source board ``` Summary: Support temperature sensor G788P87U. Support VR sensor xdpe19283b. Check HSC sensor type by GPIO HSC_TYPE_0/1. Check VR and temperature sensor type by board revision. Dependency: facebook#462 Test Plan: Build Code: PASS. Log: Second source board root@bmc-oob:~# sensor-util slot1 ... HSC Temp (0xE) : 48.12 C | (ok) CPU0 VR Temp (0xF) : 57.00 C | (ok) SOC VR Temp (0x10) : 56.00 C | (ok) CPU1 VR Temp (0x11) : 38.00 C | (ok) PVDDIO VR Temp (0x12) : 38.00 C | (ok) PVDD11 VR Temp (0x13) : 36.00 C | (ok) P12V_STBY Vol (0x14) : 12.11 Volts | (ok) PVDD18_S5 Vol (0x15) : 1.83 Volts | (ok) P3V3_STBY Vol (0x16) : 3.34 Volts | (ok) PVDD11_S3 Vol (0x17) : 1.11 Volts | (ok) P3V_BAT Vol (0x18) : 3.19 Volts | (ok) PVDD33_S5 Vol (0x19) : 3.34 Volts | (ok) P5V_STBY Vol (0x1A) : 5.01 Volts | (ok) P12V_MEM_1 Vol (0x1B) : 12.11 Volts | (ok) P12V_MEM_0 Vol (0x1C) : 12.13 Volts | (ok) P1V2_STBY Vol (0x1D) : 1.21 Volts | (ok) P3V3_M2 Vol (0x1E) : 3.33 Volts | (ok) P1V8_STBY Vol (0x1F) : 1.81 Volts | (ok) HSC Input Vol (0x20) : 12.05 Volts | (ok) CPU0 VR Vol (0x21) : 0.92 Volts | (ok) SOC VR Vol (0x22) : 1.19 Volts | (ok) CPU1 VR Vol (0x23) : 0.92 Volts | (ok) PVDDIO VR Vol (0x24) : 1.10 Volts | (ok) PVDD11 VR Vol (0x25) : 1.10 Volts | (ok) HSC Output Cur (0x26) : 13.26 Amps | (ok) CPU0 VR Cur (0x27) : 8.56 Amps | (ok) SOC VR Cur (0x28) : 60.31 Amps | (ok) CPU1 VR Cur (0x29) : 13.69 Amps | (ok) PVDDIO VR Cur (0x2A) : 29.00 Amps | (ok) PVDD11 VR Cur (0x2B) : 2.00 Amps | (ok) HSC Input Pwr (0x2C) : 159.84 Watts | (ok) CPU0 VR Pwr (0x2D) : 7.88 Watts | (ok) SOC VR Pwr (0x2E) : 72.12 Watts | (ok) CPU1 VR Pwr (0x2F) : 12.38 Watts | (ok) PVDDIO VR Pwr (0x30) : 31.88 Watts | (ok) PVDD11 VR Pwr (0x31) : 2.25 Watts | (ok) ... ```
garnermic
requested changes
Aug 5, 2022
garnermic
left a comment
Contributor
There was a problem hiding this comment.
Few minor changes requested. Thanks!
| nct7718w) sensor_name_to_num(ltc4286) | ||
| sensor_name_to_num(amd_tsi) | ||
| sensor_name_to_num(apml_mailbox) | ||
| sensor_name_to_num(xdpe15284) sensor_name_to_num(ltc4282) sensor_name_to_num( |
Contributor
There was a problem hiding this comment.
Please reformat to make this section easier to read.
| gpio_set(HSC_OCP_GPIO3_R, GPIO_HIGH); | ||
| } else if (hsc_module == HSC_MODULE_LTC4282) { | ||
| ilim_adjust = ILIM_ADJUST_2OU_EXP; | ||
| } |
Contributor
There was a problem hiding this comment.
Please add an else to capture invalid hsc_module value.
| } | ||
| } else if (_1ou_status.present && (_1ou_status.card_type != TYPE_1OU_RAINBOW_FALLS)) { | ||
| printf("Unsupported configuration, 1ou card type %d\n", _1ou_status.card_type); | ||
| } |
Contributor
There was a problem hiding this comment.
Add an else statemetn here or change else-if to else if it handles all failure cases.
Summary: - Add else statement to handle all condition of HSC module and 1ou card type. - Reformat array 'sensor_type_name' and 'sensor_status_name' to make it easier to read. Test Plan: - Build Code: Pass
Summary: - When HSC is ADM1278: Default or 1ou is RBF, set HSC_OCP_GPIO1_R high. If 2ou present, set HSC_OCP_GPIO3_R high, others low. - When HSC is LTC4282: Default or 1ou is RBF, set ILIM adjust to 0b001. If 2ou present, set ILIM adjust to 0b011. Test Plan: - Build code: Pass
Summary: - Support VR sensor MP2856GUT - Add the sensor config table of 3rd source sensor, replace sensor talbe to it if board revision is SYS_BOARD_EVT_BOM3. Test Plan: - Build Code: Pass Known issue: - Pout reading for MP2856GUT is larger than expected, still checking with FAE. Log: Third source boar ``` Summary: Support VR sensor MP2856GUT Add the sensor config table of 3rd source sensor, replace sensor talbe to it if board revision is SYS_BOARD_EVT_BOM3. Dependency: facebook#467 Test Plan: Build Code: Pass Known issue: Pout reading for MP2856GUT is larger than expected, still checking with FAE. Log: Third source boar root@bmc-oob:~# sensor-util slot1 ... HSC Temp (0xE) : 47.12 C | (ok) CPU0 VR Temp (0xF) : 49.00 C | (ok) SOC VR Temp (0x10) : 51.00 C | (ok) CPU1 VR Temp (0x11) : 34.00 C | (ok) PVDDIO VR Temp (0x12) : 34.00 C | (ok) PVDD11 VR Temp (0x13) : 31.00 C | (ok) P12V_STBY Vol (0x14) : 12.00 Volts | (ok) PVDD18_S5 Vol (0x15) : 1.81 Volts | (ok) P3V3_STBY Vol (0x16) : 3.30 Volts | (ok) PVDD11_S3 Vol (0x17) : 1.10 Volts | (ok) P3V_BAT Vol (0x18) : 3.08 Volts | (ok) PVDD33_S5 Vol (0x19) : 3.31 Volts | (ok) P5V_STBY Vol (0x1A) : 4.99 Volts | (ok) P12V_MEM_1 Vol (0x1B) : 12.05 Volts | (ok) P12V_MEM_0 Vol (0x1C) : 12.03 Volts | (ok) P1V2_STBY Vol (0x1D) : 1.20 Volts | (ok) P3V3_M2 Vol (0x1E) : 3.31 Volts | (ok) P1V8_STBY Vol (0x1F) : 1.81 Volts | (ok) HSC Input Vol (0x20) : 12.05 Volts | (ok) CPU0 VR Vol (0x21) : 0.92 Volts | (ok) SOC VR Vol (0x22) : 1.19 Volts | (ok) CPU1 VR Vol (0x23) : 0.93 Volts | (ok) PVDDIO VR Vol (0x24) : 1.10 Volts | (ok) PVDD11 VR Vol (0x25) : 1.10 Volts | (ok) HSC Output Cur (0x26) : 12.75 Amps | (ok) CPU0 VR Cur (0x27) : 12.75 Amps | (ok) SOC VR Cur (0x28) : 59.75 Amps | (ok) CPU1 VR Cur (0x29) : 16.75 Amps | (ok) PVDDIO VR Cur (0x2A) : 31.75 Amps | (ok) PVDD11 VR Cur (0x2B) : 3.25 Amps | (ok) HSC Input Pwr (0x2C) : 155.15 Watts | (ok) CPU0 VR Pwr (0x2D) : 96.00 Watts | (ok) SOC VR Pwr (0x2E) : 568.00 Watts | (ucr) CPU1 VR Pwr (0x2F) : 120.00 Watts | (ok) PVDDIO VR Pwr (0x30) : 280.00 Watts | (ucr) PVDD11 VR Pwr (0x31) : 32.00 Watts | (ok) ... ```
3c59978 to
81d2c41
Compare
Collaborator
Author
|
Hi @garnermic , |
Contributor
|
@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Collaborator
Author
|
Close this PR since HSC OCP setting will be changed. |
facebook-github-bot
pushed a commit
that referenced
this pull request
Aug 12, 2022
Summary: - Support VR sensor MP2856GUT - Add the sensor config table of 3rd source sensor, replace sensor talbe to it if board revision is SYS_BOARD_EVT_BOM3. Dependency: #467 Pull Request resolved: #468 Test Plan: - Build Code: Pass Known issue: - Pout reading for MP2856GUT is larger than expected, still checking with FAE. Log: Third source boar ``` root@bmc-oob:~# sensor-util slot1 ... HSC Temp (0xE) : 47.12 C | (ok) CPU0 VR Temp (0xF) : 49.00 C | (ok) SOC VR Temp (0x10) : 51.00 C | (ok) CPU1 VR Temp (0x11) : 34.00 C | (ok) PVDDIO VR Temp (0x12) : 34.00 C | (ok) PVDD11 VR Temp (0x13) : 31.00 C | (ok) P12V_STBY Vol (0x14) : 12.00 Volts | (ok) PVDD18_S5 Vol (0x15) : 1.81 Volts | (ok) P3V3_STBY Vol (0x16) : 3.30 Volts | (ok) PVDD11_S3 Vol (0x17) : 1.10 Volts | (ok) P3V_BAT Vol (0x18) : 3.08 Volts | (ok) PVDD33 (8abd13595b91e80483a23f1f1a3af919a502a536)_S5 Vol (0x19) : 3.31 Volts | (ok) P5V_STBY Vol (0x1A) : 4.99 Volts | (ok) P12V_MEM_1 Vol (0x1B) : 12.05 Volts | (ok) P12V_MEM_0 Vol (0x1C) : 12.03 Volts | (ok) P1V2_STBY Vol (0x1D) : 1.20 Volts | (ok) P3V3_M2 Vol (0x1E) : 3.31 Volts | (ok) P1V8_STBY Vol (0x1F) : 1.81 Volts | (ok) HSC Input Vol (0x20) : 12.05 Volts | (ok) CPU0 VR Vol (0x21) : 0.92 Volts | (ok) SOC VR Vol (0x22) : 1.19 Volts | (ok) CPU1 VR Vol (0x23) : 0.93 Volts | (ok) PVDDIO VR Vol (0x24) : 1.10 Volts | (ok) PVDD11 VR Vol (0x25) : 1.10 Volts | (ok) HSC Output Cur (0x26) : 12.75 Amps | (ok) CPU0 VR Cur (0x27) : 12.75 Amps | (ok) SOC VR Cur (0x28) : 59.75 Amps | (ok) CPU1 VR Cur (0x29) : 16.75 Amps | (ok) PVDDIO VR Cur (0x2A) : 31.75 Amps | (ok) PVDD11 VR Cur (0x2B) : 3.25 Amps | (ok) HSC Input Pwr (0x2C) : 155.15 Watts | (ok) CPU0 VR Pwr (0x2D) : 96.00 Watts | (ok) SOC VR Pwr (0x2E) : 568.00 Watts | (ucr) CPU1 VR Pwr (0x2F) : 120.00 Watts | (ok) PVDDIO VR Pwr (0x30) : 280.00 Watts | (ucr) PVDD11 VR Pwr (0x31) : 32.00 Watts | (ok) ... ``` Reviewed By: garnermic Differential Revision: D38518270 Pulled By: GoldenBug fbshipit-source-id: 15483ab462188061fca94e564f422fccd734fd6d
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:
Dependency: #467
Test Plan:
Known issue:
Log:
Third source boar