habanalabs: add support for f/w reset
authorOded Gabbay <ogabbay@kernel.org>
Mon, 9 Aug 2021 19:43:37 +0000 (22:43 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 1 Sep 2021 15:38:24 +0000 (18:38 +0300)
commit8d9aa980beb8664457011e57e84fea4143b214a9
treef408777d1bb957461a9158e7650ca1d645513b2c
parent56e753d5956647f942f76611cd179bc27c739bd8
habanalabs: add support for f/w reset

When the f/w runs in secured mode, it can reset the ASIC when certain
events occur. In unsecured mode, the driver asks the f/w to reset the
ASIC for those events.

We need to perform the entire reset procedure but without accessing the
ASIC. i.e. without halting the engines and without sending messages
to the f/w.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_drv.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c