Skip to content

Commit

Permalink
[Mellanox] updating sensors.conf and psu_sensors.json accordingly (so…
Browse files Browse the repository at this point in the history
…nic-net#19927)

- Why I did it
Support new psu model and align to hw definition

- How I did it
Add psu model MTEF-AC-I data to psu_sensors.json
Add place holder for model MTEF-AC-G-DELTA
Fix 4700/4700a1 inverted psu designation

- How to verify it
check the sensors command output on system with the psu model MTEF-AC-I

Signed-off-by: Yuanzhe, Liu <[email protected]>
  • Loading branch information
yuazhe authored and Aidan Gallagher committed Nov 16, 2024
1 parent c8ddcea commit 5b98417
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 29 deletions.
23 changes: 18 additions & 5 deletions device/mellanox/x86_64-mlnx_msn2700-r0/psu_sensors.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@
"i2c-1-mux (chan_id 3)"
],
"chip": {
"dps460-i2c-*-58": ["1", "L"],
"dps460-i2c-*-59": ["2", "R"]
"dps460-i2c-*-58": ["2", "R"],
"dps460-i2c-*-59": ["1", "L"]
}
},
"a1": {
Expand All @@ -229,8 +229,8 @@
"i2c-1-mux (chan_id 3)"
],
"chip": {
"dps460-i2c-*-58": ["1", "L"],
"dps460-i2c-*-59": ["2", "R"]
"dps460-i2c-*-58": ["2", "R"],
"dps460-i2c-*-59": ["1", "L"]
}
}
},
Expand Down Expand Up @@ -376,8 +376,21 @@
"curr2 PSU 12V Rail Curr (out)"
]
},
"MTEF-AC-I": {
"MTEF-AC-G-DELTA":{

},
"MTEF-AC-I": {
"label": [
"in1 PSU 220V Rail (in)",
"in2 PSU 12V Rail (out)",
"fan1 PSU Fan 1",
"temp1 PSU Temp 1",
"temp2 PSU Temp 2",
"power1 PSU 220V Rail Pwr (in)",
"power2 PSU 12V Rail Pwr (out)",
"curr1 PSU 220V Rail Curr (in)",
"curr2 PSU 12V Rail Curr (out)"
]
},
"MTEF-AC-M": {
"label": [
Expand Down
24 changes: 12 additions & 12 deletions device/mellanox/x86_64-mlnx_msn4700-r0/sensors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,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"
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)"
chip "dps460-i2c-*-59"
label in1 "PSU-2(R) 220V Rail (in)"
ignore in2
label in3 "PSU-2(R) 12V Rail (out)"
Expand All @@ -211,6 +199,18 @@ bus "i2c-4" "i2c-1-mux (chan_id 3)"
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)"
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"
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)"

# Chassis fans
chip "mlxreg_fan-isa-*"
Expand Down
25 changes: 13 additions & 12 deletions device/mellanox/x86_64-mlnx_msn4700-r0/sensors.conf.a1
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,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"
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)"
chip "dps460-i2c-*-59"
label in1 "PSU-2(R) 220V Rail (in)"
ignore in2
label in3 "PSU-2(R) 12V Rail (out)"
Expand All @@ -156,6 +144,19 @@ bus "i2c-4" "i2c-1-mux (chan_id 3)"
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)"
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"
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)"


# Chassis fans
chip "mlxreg_fan-isa-*"
Expand Down

0 comments on commit 5b98417

Please sign in to comment.