diff options
author | Ofir Bitton <[email protected]> | 2023-06-12 14:51:15 +0300 |
---|---|---|
committer | Oded Gabbay <[email protected]> | 2023-10-09 12:37:19 +0300 |
commit | d33c3d0541339fb16e241283f9c1ef369b4a7093 (patch) | |
tree | d7fb3ea8ca2c261698c91283bf3c76daa39a6445 | |
parent | 37d72439a4b17dda2adc2de98bcb98932fd6ceb2 (diff) |
accel/habanalabs: dump temperature threshold boot error
Add dump of an error reported from f/w during boot time.
This error indicates a failure with setting temperature threshold.
Signed-off-by: Ofir Bitton <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
-rw-r--r-- | drivers/accel/habanalabs/common/firmware_if.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/accel/habanalabs/common/firmware_if.c b/drivers/accel/habanalabs/common/firmware_if.c index 370508e98854..c7da69dbfa0a 100644 --- a/drivers/accel/habanalabs/common/firmware_if.c +++ b/drivers/accel/habanalabs/common/firmware_if.c @@ -724,6 +724,11 @@ static bool fw_report_boot_dev0(struct hl_device *hdev, u32 err_val, err_exists = true; } + if (err_val & CPU_BOOT_ERR0_TMP_THRESH_INIT_FAIL) { + dev_err(hdev->dev, "Device boot error - Failed to set threshold for temperature sensor\n"); + err_exists = true; + } + if (err_val & CPU_BOOT_ERR0_DEVICE_UNUSABLE_FAIL) { /* Ignore this bit, don't prevent driver loading */ dev_dbg(hdev->dev, "device unusable status is set\n"); |