diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2020-10-01 12:44:22 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2020-11-30 09:47:27 +0100 |
commit | 28958207e9187da6171f3a418464a47216e0f3e2 (patch) | |
tree | 9353ed5c43e27ca64bedcd342cfb18d52e049a43 /drivers/misc/habanalabs/common/hwmon.c | |
parent | habanalabs/gaudi: move mmu_prepare to context init (diff) | |
download | linux-28958207e9187da6171f3a418464a47216e0f3e2.tar.xz linux-28958207e9187da6171f3a418464a47216e0f3e2.zip |
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 '')
-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) { |