]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:24 +0000 (07:18 +0100)
commitcf221b1506a4b1ac76d8630367b61b27756e1417
tree5d2e3a380bcf8e1b1bbcd9a910ae9448d9f312e4
parent1927cc4b770a07d2da98d5b251a6d6bc22ffc1ad
habanalabs: halt the engines before hard-reset

[ Upstream commit 908087ffbe896c100ed73d5f0ce11a5b7264af4a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/habanalabs/device.c
drivers/misc/habanalabs/goya/goya.c