diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2021-04-12 08:38:22 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-05-08 10:21:57 +0200 |
commit | b5fd82a7af198db04408e218f64dc3d4178d585a (patch) | |
tree | a45ebff97aecc46273741e10abb0cf0a16bb0f93 /drivers/misc | |
parent | habanalabs: skip reading f/w errors on bad status (diff) | |
download | linux-b5fd82a7af198db04408e218f64dc3d4178d585a.tar.xz linux-b5fd82a7af198db04408e218f64dc3d4178d585a.zip |
habanalabs: change error level of security not ready
This error indicates a problem in the security initialization inside
the f/w so we need to stop the device loading because it won't be
usable.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/habanalabs/common/firmware_if.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/misc/habanalabs/common/firmware_if.c b/drivers/misc/habanalabs/common/firmware_if.c index fff29f057b6d..377a7ca886fe 100644 --- a/drivers/misc/habanalabs/common/firmware_if.c +++ b/drivers/misc/habanalabs/common/firmware_if.c @@ -362,12 +362,9 @@ static int fw_read_errors(struct hl_device *hdev, u32 boot_err0_reg, } if (err_val & CPU_BOOT_ERR0_SECURITY_NOT_RDY) { - dev_warn(hdev->dev, + dev_err(hdev->dev, "Device boot warning - security not ready\n"); - /* This is a warning so we don't want it to disable the - * device - */ - err_val &= ~CPU_BOOT_ERR0_SECURITY_NOT_RDY; + err_exists = true; } if (err_val & CPU_BOOT_ERR0_SECURITY_FAIL) { |