]> 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)
commite79b0e028383aa4348abf8c688a5453807fddca7
tree6dddd20d44aa5c95ff04f1373e11f963eee6c083
parent190e84aa731b0b5fc01c93ce2ca11ed73269f8d9
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