Commit 7693f5d3 authored by Oded Gabbay's avatar Oded Gabbay

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: default avatarOded Gabbay <ogabbay@kernel.org>
parent b31e59bc
...@@ -438,9 +438,9 @@ static int fw_read_errors(struct hl_device *hdev, u32 boot_err0_reg, ...@@ -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) { if (err_val & CPU_BOOT_ERR0_DEVICE_UNUSABLE_FAIL) {
dev_err(hdev->dev, /* Ignore this bit, don't prevent driver loading */
"Device boot error - device unusable\n"); dev_dbg(hdev->dev, "device unusable status is set\n");
err_exists = true; err_val &= ~CPU_BOOT_ERR0_DEVICE_UNUSABLE_FAIL;
} }
security_val = RREG32(cpu_security_boot_status_reg); security_val = RREG32(cpu_security_boot_status_reg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment