Skip to content

Commit d0445e9

Browse files
vadimp-nvidiaacoifmannvidia
authored andcommitted
hw-mgmt: leakage: Add missed entries for GB300 and Kyber high density
Add missed entries of synch process. Fixes: #4564230: fix leak detection in cpu side on gb300 Signed-off-by: Vadim Pasternak <[email protected]>
1 parent 27b9d14 commit d0445e9

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

usr/usr/bin/hw-management.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,6 +2368,7 @@ n51xxld_specific()
23682368
add_i2c_dynamic_bus_dev_connection_table "${so_cartridge_eeprom_connect_table[@]}"
23692369
echo -n "${so_cartridge_eeprom_connect_table[@]}" >> "$devtree_file"
23702370
echo 4 > $config_path/cartridge_counter
2371+
echo 2 > $config_path/cpld_num
23712372
;;
23722373
HI177) # Kyber
23732374
echo 0 > $config_path/cartridge_counter

usr/usr/bin/hw_management_sync.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,14 @@
293293
"asic2": {"fin": "/sys/module/sx_core/asic1/"}
294294
}
295295
},
296-
296+
{"fin": "/sys/devices/platform/mlxplat/mlxreg-io/hwmon/{hwmon}/leakage1",
297+
"fn": "run_cmd",
298+
"arg": ["/usr/bin/hw-management-chassis-events.sh hotplug-event LEAKAGE1 {arg1}"],
299+
"poll": 2, "ts": 0},
300+
{"fin": "/sys/devices/platform/mlxplat/mlxreg-io/hwmon/{hwmon}/leakage2",
301+
"fn": "run_cmd",
302+
"arg": ["/usr/bin/hw-management-chassis-events.sh hotplug-event LEAKAGE2 {arg1}"],
303+
"poll": 2, "ts": 0},
297304
{"fin": None,
298305
"fn": "redfish_get_sensor", "arg": ["/redfish/v1/Chassis/MGX_BMC_0/Sensors/BMC_TEMP", "bmc", 1000], "poll": 30, "ts": 0}
299306
],
@@ -307,6 +314,14 @@
307314
"asic3": {"fin": "/sys/module/sx_core/asic2/"}
308315
}
309316
},
317+
{"fin": "/sys/devices/platform/mlxplat/mlxreg-io/hwmon/{hwmon}/leakage1",
318+
"fn": "run_cmd",
319+
"arg": ["/usr/bin/hw-management-chassis-events.sh hotplug-event LEAKAGE1 {arg1}"],
320+
"poll": 2, "ts": 0},
321+
{"fin": "/sys/devices/platform/mlxplat/mlxreg-io/hwmon/{hwmon}/leakage2",
322+
"fn": "run_cmd",
323+
"arg": ["/usr/bin/hw-management-chassis-events.sh hotplug-event LEAKAGE2 {arg1}"],
324+
"poll": 2, "ts": 0},
310325
{"fin": None,
311326
"fn": "redfish_get_sensor", "arg": ["/redfish/v1/Chassis/MGX_BMC_0/Sensors/BMC_TEMP", "bmc", 1000], "poll": 30, "ts": 0}
312327
],

0 commit comments

Comments
 (0)