Skip to content

Commit

Permalink
standardizing the sensors.conf psu section
Browse files Browse the repository at this point in the history
I.   Fix 4600c psu number inverted issue
II.  Fix 5600 second psu missing set_power_cap label
III. Standardized comments

Signed-off-by: Yuanzhe, Liu <yualiu@nvidia.com>
  • Loading branch information
yuazhe committed Apr 19, 2024
1 parent 0b8b503 commit 196bd0e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion device/mellanox/x86_64-mlnx_msn2010-r0/sensors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bus "i2c-7" "i2c-1-mux (chan_id 6)"
chip "lm75-i2c-*-4b"
label temp1 "Ambient Fan Side Temp (air intake)"

# Power supplies
# Power controllers
bus "i2c-5" "i2c-1-mux (chan_id 4)"
chip "tps53679-i2c-*-70"
label in1 "PMIC-1 PSU 12V Rail (in1)"
Expand Down
34 changes: 17 additions & 17 deletions device/mellanox/x86_64-mlnx_msn4600c-r0/sensors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -220,23 +220,6 @@ bus "i2c-15" "i2c-1-mux (chan_id 6)"
# Power supplies
bus "i2c-4" "i2c-1-mux (chan_id 3)"
chip "dps460-i2c-*-58"
label in1 "PSU-1(L) 220V Rail (in)"
ignore in2
label in3 "PSU-1(L) 12V Rail (out)"
label fan1 "PSU-1(L) Fan 1"
ignore fan2
ignore fan3
label temp1 "PSU-1(L) Temp 1"
label temp2 "PSU-1(L) Temp 2"
label temp3 "PSU-1(L) Temp 3"
label power1 "PSU-1(L) 220V Rail Pwr (in)"
label power2 "PSU-1(L) 12V Rail Pwr (out)"
label curr1 "PSU-1(L) 220V Rail Curr (in)"
label curr2 "PSU-1(L) 12V Rail Curr (out)"
set in3_lcrit in3_crit * 0.662
set in3_min in3_crit * 0.745
set in3_max in3_crit * 0.952
chip "dps460-i2c-*-59"
label in1 "PSU-2(R) 220V Rail (in)"
ignore in2
label in3 "PSU-2(R) 12V Rail (out)"
Expand All @@ -253,6 +236,23 @@ bus "i2c-4" "i2c-1-mux (chan_id 3)"
set in3_lcrit in3_crit * 0.662
set in3_min in3_crit * 0.745
set in3_max in3_crit * 0.952
chip "dps460-i2c-*-59"
label in1 "PSU-1(L) 220V Rail (in)"
ignore in2
label in3 "PSU-1(L) 12V Rail (out)"
label fan1 "PSU-1(L) Fan 1"
ignore fan2
ignore fan3
label temp1 "PSU-1(L) Temp 1"
label temp2 "PSU-1(L) Temp 2"
label temp3 "PSU-1(L) Temp 3"
label power1 "PSU-1(L) 220V Rail Pwr (in)"
label power2 "PSU-1(L) 12V Rail Pwr (out)"
label curr1 "PSU-1(L) 220V Rail Curr (in)"
label curr2 "PSU-1(L) 12V Rail Curr (out)"
set in3_lcrit in3_crit * 0.662
set in3_min in3_crit * 0.745
set in3_max in3_crit * 0.952

# Chassis fans
chip "mlxreg_fan-isa-*"
Expand Down
34 changes: 17 additions & 17 deletions device/mellanox/x86_64-mlnx_msn4600c-r0/sensors_respin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -255,23 +255,6 @@ bus "i2c-15" "i2c-1-mux (chan_id 6)"
# Power supplies
bus "i2c-4" "i2c-1-mux (chan_id 3)"
chip "dps460-i2c-*-58"
label in1 "PSU-1(L) 220V Rail (in)"
ignore in2
label in3 "PSU-1(L) 12V Rail (out)"
label fan1 "PSU-1(L) Fan 1"
ignore fan2
ignore fan3
label temp1 "PSU-1(L) Temp 1"
label temp2 "PSU-1(L) Temp 2"
label temp3 "PSU-1(L) Temp 3"
label power1 "PSU-1(L) 220V Rail Pwr (in)"
label power2 "PSU-1(L) 12V Rail Pwr (out)"
label curr1 "PSU-1(L) 220V Rail Curr (in)"
label curr2 "PSU-1(L) 12V Rail Curr (out)"
set in3_lcrit in3_crit * 0.662
set in3_min in3_crit * 0.745
set in3_max in3_crit * 0.952
chip "dps460-i2c-*-59"
label in1 "PSU-2(R) 220V Rail (in)"
ignore in2
label in3 "PSU-2(R) 12V Rail (out)"
Expand All @@ -288,6 +271,23 @@ bus "i2c-4" "i2c-1-mux (chan_id 3)"
set in3_lcrit in3_crit * 0.662
set in3_min in3_crit * 0.745
set in3_max in3_crit * 0.952
chip "dps460-i2c-*-59"
label in1 "PSU-1(L) 220V Rail (in)"
ignore in2
label in3 "PSU-1(L) 12V Rail (out)"
label fan1 "PSU-1(L) Fan 1"
ignore fan2
ignore fan3
label temp1 "PSU-1(L) Temp 1"
label temp2 "PSU-1(L) Temp 2"
label temp3 "PSU-1(L) Temp 3"
label power1 "PSU-1(L) 220V Rail Pwr (in)"
label power2 "PSU-1(L) 12V Rail Pwr (out)"
label curr1 "PSU-1(L) 220V Rail Curr (in)"
label curr2 "PSU-1(L) 12V Rail Curr (out)"
set in3_lcrit in3_crit * 0.662
set in3_min in3_crit * 0.745
set in3_max in3_crit * 0.952

# Chassis fans
chip "mlxreg_fan-isa-*"
Expand Down
2 changes: 1 addition & 1 deletion device/mellanox/x86_64-nvidia_sn2201-r0/sensors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ bus "i2c-8" "i2c-1-mux (chan_id 6)"
label in8 "MONITOR CPU Board V1P8"
label in9 "MONITOR CPU Board V1P24"

# PSU PMBus sensors
# Power supplies
bus "i2c-3" "i2c-1-mux (chan_id 1)"
chip "pmbus-i2c-3-58"
label in1 "PSU-1 220V Rail(in)"
Expand Down
1 change: 1 addition & 0 deletions device/mellanox/x86_64-nvidia_sn5600-r0/sensors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ chip "dps460-i2c-*-5a"
label power2 "PSU-2(R) 12V Rail Pwr (out)"
label curr1 "PSU-2(R) 220V Rail Curr (in)"
label curr2 "PSU-2(R) 12V Rail Curr (out)"
set power2_cap 0

# Power converters
chip "pmbus-i2c-*-10"
Expand Down

0 comments on commit 196bd0e

Please sign in to comment.