]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4617ce4409eb9029b4ebd3eab6b029be923d8d69
treea41b2d17e120ed8b1a7a857bc24b92b96268130d
parentbad6b347464a68279bae4d0d875277b7ae766f7f
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