accel/habanalabs: extend preboot timeout when preboot might take longer
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Thu, 7 Sep 2023 04:44:23 +0000 (07:44 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:22 +0000 (12:37 +0300)
commit674f77798e432509e60919e2909fe6c72f5f2267
tree8ce214c5fd4c90cdb75aa6724f33ac6ef604885a
parent9dca13141332e69fd657873194e77a1960fc9ab2
accel/habanalabs: extend preboot timeout when preboot might take longer

There are cases such when FW runs MBIST, that preboot is expected to take
longer than the usual. In such cases the firmware reports status
SECURITY_READY/IN_PREBOOT and we extend the timeout waiting for it.
This is currently implemented for Gaudi2 only.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/firmware_if.c
drivers/accel/habanalabs/common/habanalabs.h
drivers/accel/habanalabs/gaudi2/gaudi2.c
drivers/accel/habanalabs/gaudi2/gaudi2P.h