habanalabs: support DEVICE_UNUSABLE error indication from FW
authorKoby Elbaz <kelbaz@habana.ai>
Thu, 11 Mar 2021 13:32:55 +0000 (15:32 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 9 Apr 2021 11:09:24 +0000 (14:09 +0300)
commit7d21114b03618a1b528804a631098b471eac6481
treee52a4d42eabccd957273e452f8148419391981f1
parentae382c22fc06058b24bb49c92f3b0af653499589
habanalabs: support DEVICE_UNUSABLE error indication from FW

In case of multiple ECC errors, FW will set the DEVICE_UNUSABLE bit.
On boot-up, the driver will therefore fail inserting the device.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/include/common/hl_boot_if.h