]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: wait for preboot ready after hard reset
authorOhad Sharabi <osharabi@habana.ai>
Tue, 28 Jun 2022 09:09:21 +0000 (12:09 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:28 +0000 (09:09 +0300)
commit9d0e3d9274f69bd4ebc514aed90b8a0db50f4205
treefb6b47e46825b27f20aa3d9e5aef122d0df2cea7
parent2d768a45454e14d1df8a97a7ca4fd12fa355c5ab
habanalabs: wait for preboot ready after hard reset

Currently we are not waiting for preboot ready after hard reset.
This leads to a race in which COMMs protocol begins but will get no
response from the f/w.

Signed-off-by: Ohad Sharabi <osharabi@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/common/habanalabs.h
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/gaudi2/gaudi2.c
drivers/misc/habanalabs/goya/goya.c