aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOded Gabbay <[email protected]>2021-04-29 16:50:05 +0300
committerOded Gabbay <[email protected]>2021-06-18 15:23:39 +0300
commit7693f5d39ee0134b1398a57c2998a0b67ef56700 (patch)
tree24957927cbbe4e839b082d1b627cbbcf9c2714f6
parentb31e59bc55435fd2e43817344dfaea85219e39a4 (diff)
habanalabs: ignore device unusable status
Some users might want to implement their own policy of when the device is unusable so we need to ignore this status in the driver and continue loading as normal. Signed-off-by: Oded Gabbay <[email protected]>
-rw-r--r--drivers/misc/habanalabs/common/firmware_if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/habanalabs/common/firmware_if.c b/drivers/misc/habanalabs/common/firmware_if.c
index 0f6cee8af0b6..03e26a1fd9c1 100644
--- a/drivers/misc/habanalabs/common/firmware_if.c
+++ b/drivers/misc/habanalabs/common/firmware_if.c
@@ -438,9 +438,9 @@ static int fw_read_errors(struct hl_device *hdev, u32 boot_err0_reg,
}
if (err_val & CPU_BOOT_ERR0_DEVICE_UNUSABLE_FAIL) {
- dev_err(hdev->dev,
- "Device boot error - device unusable\n");
- err_exists = true;
+ /* Ignore this bit, don't prevent driver loading */
+ dev_dbg(hdev->dev, "device unusable status is set\n");
+ err_val &= ~CPU_BOOT_ERR0_DEVICE_UNUSABLE_FAIL;
}
security_val = RREG32(cpu_security_boot_status_reg);