gc2: es: Modify sensor threshold and HSC's r_sense to correct HSC current/power scaling #2648
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.
…orrect HSC current/power scaling
[Task Description]
Modify BIC (Server Board) temperature sensor thresholds and adjust HSC r_sense scaling to correct HSC current/power calculation.
[Motivation]
[Design]
Update BIC (Server Board) sensor thresholds:
MB_PCH_TEMP_C (0x04)
MB_SOC_CPU_TEMP_C (0x05)
MB_DIMMA2_TEMP_C (0x06), MB_DIMMA3_TEMP_C (0x07), MB_DIMMA6_TEMP_C (0x0A), MB_DIMMA7_TEMP_C (0x0B)
MB_E1S_TEMP_C (0x0D)
HSC related scaling:
[Test Result]
Verified on GC2-ES platform using sensor-util. BIC related sensor outputs:
root@bmc-oob:~# sensor-util server --threshold | grep MB_PCH_TEMP_C
MB_PCH_TEMP_C (0x4) : 35.000 C | (ok) | UCR: 71.000 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
root@bmc-oob:~# sensor-util server --threshold | grep MB_SOC_CPU_TEMP_C
MB_SOC_CPU_TEMP_C (0x5) : 33.000 C | (ok) | UCR: 75.000 | UNC: NA | UNR: 78.000 | LCR: NA | LNC: NA | LNR: NA
root@bmc-oob:~# sensor-util server --threshold | grep DIMM | grep TEMP
MB_DIMMA2_TEMP_C (0x6) : 32.000 C | (ok) | UCR: 85.000 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
MB_DIMMA3_TEMP_C (0x7) : 31.000 C | (ok) | UCR: 85.000 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
MB_DIMMA6_TEMP_C (0xA) : 32.000 C | (ok) | UCR: 85.000 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
MB_DIMMA7_TEMP_C (0xB) : 32.000 C | (ok) | UCR: 85.000 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
root@bmc-oob:~# sensor-util server --threshold | grep MB_E1S_TEMP_C
MB_E1S_TEMP_C (0xD) : 32.000 C | (ok) | UCR: 70.000 | UNC: NA | UNR: NA | LCR: NA | LNC: NA | LNR: NA
HSC power/current sensors (added as verification): root@bmc-oob:~# sensor-util server --threshold | grep MB_HSC_OUTPUT_CURR_A
MB_HSC_OUTPUT_CURR_A (0x30) : 4.760 Amps | (ok) | UCR: 19.720 | UNC: 18.700 | UNR: 21.420 | LCR: NA | LNC: NA | LNR: NA
root@bmc-oob:~# sensor-util server --threshold | grep MB_HSC_INPUT_PWR_W
MB_HSC_INPUT_PWR_W (0x39) : 56.420 Watts | (ok) | UCR: 240.870 | UNC: 230.020 | UNR: 262.570 | LCR: NA | LNC: NA | LNR: NA