Skip to content

Commit 93e90f9

Browse files
committed
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 2f1147a commit 93e90f9

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
@@ -2393,6 +2393,7 @@ n51xxld_specific()
23932393
add_i2c_dynamic_bus_dev_connection_table "${so_cartridge_eeprom_connect_table[@]}"
23942394
echo -n "${so_cartridge_eeprom_connect_table[@]}" >> "$devtree_file"
23952395
echo 4 > $config_path/cartridge_counter
2396+
echo 2 > $config_path/cpld_num
23962397
;;
23972398
HI177) # Kyber
23982399
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
@@ -301,7 +301,14 @@
301301
"asic2": {"fin": "/sys/module/sx_core/asic1/"}
302302
}
303303
},
304-
304+
{"fin": "/sys/devices/platform/mlxplat/mlxreg-io/hwmon/{hwmon}/leakage1",
305+
"fn": "run_cmd",
306+
"arg": ["/usr/bin/hw-management-chassis-events.sh hotplug-event LEAKAGE1 {arg1}"],
307+
"poll": 2, "ts": 0},
308+
{"fin": "/sys/devices/platform/mlxplat/mlxreg-io/hwmon/{hwmon}/leakage2",
309+
"fn": "run_cmd",
310+
"arg": ["/usr/bin/hw-management-chassis-events.sh hotplug-event LEAKAGE2 {arg1}"],
311+
"poll": 2, "ts": 0},
305312
{"fin": None,
306313
"fn": "redfish_get_sensor", "arg": ["/redfish/v1/Chassis/MGX_BMC_0/Sensors/BMC_TEMP", "bmc", 1000], "poll": 30, "ts": 0}
307314
],
@@ -315,6 +322,14 @@
315322
"asic3": {"fin": "/sys/module/sx_core/asic2/"}
316323
}
317324
},
325+
{"fin": "/sys/devices/platform/mlxplat/mlxreg-io/hwmon/{hwmon}/leakage1",
326+
"fn": "run_cmd",
327+
"arg": ["/usr/bin/hw-management-chassis-events.sh hotplug-event LEAKAGE1 {arg1}"],
328+
"poll": 2, "ts": 0},
329+
{"fin": "/sys/devices/platform/mlxplat/mlxreg-io/hwmon/{hwmon}/leakage2",
330+
"fn": "run_cmd",
331+
"arg": ["/usr/bin/hw-management-chassis-events.sh hotplug-event LEAKAGE2 {arg1}"],
332+
"poll": 2, "ts": 0},
318333
{"fin": None,
319334
"fn": "redfish_get_sensor", "arg": ["/redfish/v1/Chassis/MGX_BMC_0/Sensors/BMC_TEMP", "bmc", 1000], "poll": 30, "ts": 0}
320335
],

0 commit comments

Comments
 (0)