habanalabs/gaudi2: read F/W security indication after hard reset
authorTomer Tayar <ttayar@habana.ai>
Thu, 1 Sep 2022 11:12:56 +0000 (14:12 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 19 Sep 2022 12:08:38 +0000 (15:08 +0300)
commita0fc8688c003172455f99b6b7e185b167ed964a0
treedfb64be8f9653abbb2d0e075e6d1a309f790e707
parentaee3fd74fe579b6de5d8661dac559df91ab36b12
habanalabs/gaudi2: read F/W security indication after hard reset

F/W security status might change after every reset.

Add the reading of the preboot status to the hard reset sequence, which
among others reads this security indication.

As this preboot status reading includes the waiting for the preboot to
be ready, it can be removed from the CPU init which is done in a later
stage.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/firmware_if.c