Skip to content

Commit

Permalink
hw-mgmt: thermal: TC: disable auto add asic sensors to monitoring
Browse files Browse the repository at this point in the history
Disable auto add asic sensors to monitoring. Add ASIC thermal sensors only
if it defined in TC thermal data .json

Signed-off-by: Oleksandr Shamray <oleksandrs@nvidia.com>
  • Loading branch information
sholeksandr committed Jul 1, 2024
1 parent 53fb87d commit 2f642bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion usr/etc/hw-management-thermal/tc_config_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"gearbox\\d+": {"pwm_min": 20, "pwm_max" : 100, "val_min":"!70000", "val_max":"!105000", "poll_time": 6},
"pch": {"pwm_min": 20, "pwm_max" : 100, "val_min": 50000, "val_max": 85000, "poll_time": 10, "enable" : 0},
"comex_amb": {"pwm_min": 20, "pwm_max" : 100, "val_min": 45000, "val_max": 85000, "poll_time": 10, "enable" : 0}
}
},
"sensor_list" : ["asic1", "cpu", "sensor_amb"]
}


2 changes: 0 additions & 2 deletions usr/usr/bin/hw_management_thermal_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -2531,8 +2531,6 @@ def _collect_hw_info(self):
# Collect asic sensors
try:
self.asic_counter = int(self.read_file("config/asic_num"))
for asic_idx in range(1, self.asic_counter + 1):
sensor_list.append("asic{}".format(asic_idx))
except BaseException:
self.log.error("Missing ASIC num config.", 1)
sys.exit(1)
Expand Down

0 comments on commit 2f642bd

Please sign in to comment.