habanalabs/gaudi2: change device f/w security check
authorfarah kassabri <fkassabri@habana.ai>
Wed, 20 Jul 2022 10:53:37 +0000 (13:53 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 18 Sep 2022 10:29:51 +0000 (13:29 +0300)
commit6419b5232efacb59b227c7088d1c00b98bdb82de
tree173eb80e2e181500999f0a36c94affe3b6c62424
parentab6c08f0d597408ce7ab4a0f92088cf7cefd2915
habanalabs/gaudi2: change device f/w security check

On Gaudi2 the f/w always configures the PCIe iATU and allows access to
scratchpad registers. Therefore, we can know if the f/w is secured
by reading a status bit from the f/w registers.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/gaudi2/gaudi2.c