Skip to content

Commit

Permalink
hw-mgmt: thermal: TC fix blacklist not working issue
Browse files Browse the repository at this point in the history
Fix Fan_blacklist not working issue

Bug: 4256275

Signed-off-by: Oleksandr Shamray <oleksandrs@nvidia.com>
  • Loading branch information
sholeksandr committed Jan 20, 2025
1 parent 362c98e commit e471008
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions usr/usr/bin/hw_management_thermal_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -3651,16 +3651,14 @@ def run(self):
for dev_obj in self.dev_obj_list:
if dev_obj.enable:
if curr_timestamp >= dev_obj.get_timestump():
# process sensors
for name, conf in self.dev_err_exclusion_conf.items():
name_mask = conf["name_mask"]
# if exists min err rule for current device
if re.match(name_mask, dev_obj.name):
dev_obj.set_dynamic_filter_ena(conf["skip_err"])

dev_obj.handle_err(self.sys_config[CONST.SYS_CONF_DMIN], self.system_flow_dir, self.amb_tmp)
if dev_obj.name == "sensor_amb":
self.amb_tmp = dev_obj.get_value()
if dev_obj.state == CONST.RUNNING:
# process sensors
for name, conf in self.dev_err_exclusion_conf.items():
name_mask = conf["name_mask"]
# if exists min err rule for current device
if re.match(name_mask, dev_obj.name):
dev_obj.set_dynamic_filter_ena(conf["skip_err"])
dev_obj.handle_err(self.sys_config[CONST.SYS_CONF_DMIN], self.system_flow_dir, self.amb_tmp)
dev_obj.update_timestump()

pwm = dev_obj.get_pwm()
Expand Down

0 comments on commit e471008

Please sign in to comment.