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>
This commit is contained in:
parent
20b7525dc4
commit
28958207e9
@ -542,7 +542,7 @@ int hl_hwmon_init(struct hl_device *hdev)
|
|||||||
struct asic_fixed_properties *prop = &hdev->asic_prop;
|
struct asic_fixed_properties *prop = &hdev->asic_prop;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if ((hdev->hwmon_initialized) || !(hdev->fw_loading))
|
if ((hdev->hwmon_initialized) || !(hdev->cpu_queues_enable))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (hdev->hl_chip_info->info) {
|
if (hdev->hl_chip_info->info) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user