]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad4bab9b6679d9a12ee037e4920b530029aad738
treedfb64be8f9653abbb2d0e075e6d1a309f790e707
parent42197263f2b8964742dcbe8dc61314c131dddce5
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