]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ea30120d81a1af2d2a6fd2f1cd8e62ad4e7276d
tree6dddd20d44aa5c95ff04f1373e11f963eee6c083
parentec517bd505e9d034c685b6acc6b1daff54b1741a
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