diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2020-10-01 13:44:22 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2020-11-30 11:47:27 +0300 |
commit | 28958207e9187da6171f3a418464a47216e0f3e2 (patch) | |
tree | 9353ed5c43e27ca64bedcd342cfb18d52e049a43 /drivers/misc/habanalabs | |
parent | 20b7525dc430aa97748c5ddaff9f791ce1022690 (diff) | |
download | linux-28958207e9187da6171f3a418464a47216e0f3e2.tar.xz |
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
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs')
-rw-r--r-- | drivers/misc/habanalabs/common/hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/hwmon.c b/drivers/misc/habanalabs/common/hwmon.c index 2ac29cb2fe61..892a5e2b0b9d 100644 --- a/drivers/misc/habanalabs/common/hwmon.c +++ b/drivers/misc/habanalabs/common/hwmon.c @@ -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) { |