]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs/gaudi2: increase hard-reset sleep time to 2 sec
authorTomer Tayar <ttayar@habana.ai>
Tue, 6 Sep 2022 13:37:14 +0000 (16:37 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 19 Sep 2022 12:08:39 +0000 (15:08 +0300)
commit1b012fa64c6bfc0b6d95569d39a06bc110a28374
tree219eba05f599634bb42d837ae57b7b9816aa6479
parentb85a0189f7e8cb6f5782295cf4ca80b6be619217
habanalabs/gaudi2: increase hard-reset sleep time to 2 sec

The access to the device registers is blocked during hard reset, until
preboot runs and allows the access to specific registers, including the
PSOC BTM_FSM register which is used to know when the reset is done.
Between the reset request and until this register is polled there is a
small delay of 500 msec which is not enough for F/W to process the reset
and for preboot to run, so the register might be accessed while it is
blocked.
To avoid it, increase the delay to 2 sec.

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/gaudi2/gaudi2.c