Skip to contentSkip to conversation

habanalabs: we need CPU queues for hwmon

PATCH New Oded Gabbay 1 participant 1 message Nov 2, 2020 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 habanalabs: we need CPU queues for hwmon

F/W can be loaded but device CPU queues disabled. In that case, HWMON should be disabled. This is only relevant when debugging

---
 drivers/misc/habanalabs/common/hwmon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/habanalabs/common/hwmon.c +1 -1
index 2ac29cb2fe61..892a5e2b0b9d 100644
@@ -542,7 +542,7 @@ int hl_hwmon_init(struct hl_device *hdev)
 	struct asic_fixed_properties *prop = &hdev->asic_prop;
 	int rc;
 
-	if ((hdev->hwmon_initialized) || !(hdev->fw_loading))
+	if ((hdev->hwmon_initialized) || !(hdev->cpu_queues_enable))
 		return 0;
 
 	if (hdev->hl_chip_info->info) {
Signature · 1 line
2.17.1