habanalabs: halt the engines before hard-reset
authorOded Gabbay <oded.gabbay@gmail.com>
Mon, 23 Dec 2019 15:51:48 +0000 (17:51 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 11 Feb 2020 09:12:47 +0000 (11:12 +0200)
commit908087ffbe896c100ed73d5f0ce11a5b7264af4a
treea41b2d17e120ed8b1a7a857bc24b92b96268130d
parent95ba79e89c107851bad4492ca23e9b9c399b8592
habanalabs: halt the engines before hard-reset

The driver must halt the engines before doing hard-reset, otherwise the
device can go into undefined state. There is a place where the driver
didn't do that and this patch fixes it.

Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/device.c
drivers/misc/habanalabs/goya/goya.c