]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd15945085beda47b8e506ec93f0be608965aa8fa
tree173eb80e2e181500999f0a36c94affe3b6c62424
parent728e31df3105b8cb23fc6531114ccf470d7917ce
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