habanalabs: ignore f/w status error
authorOded Gabbay <ogabbay@kernel.org>
Mon, 12 Apr 2021 06:52:05 +0000 (09:52 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sat, 8 May 2021 08:21:57 +0000 (11:21 +0300)
commit27a9e35daad080f3770401a1a11eda2f9f7732dd
tree6dddd20d44aa5c95ff04f1373e11f963eee6c083
parentb5fd82a7af198db04408e218f64dc3d4178d585a
habanalabs: ignore f/w status error

In case firmware has a bug and erroneously reports a status error
(e.g. device unusable) during boot, allow the user to tell the driver
to continue the boot regardless of the error status.

This will be done via kernel parameter which exposes a mask. The
user that loads the driver can decide exactly which status error to
ignore and which to take into account. The bitmask is according to
defines in hl_boot_if.h

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_drv.c