habanalabs/gaudi2: use graceful hard reset for F/W events
authorTomer Tayar <ttayar@habana.ai>
Fri, 30 Sep 2022 13:57:54 +0000 (16:57 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 23 Nov 2022 14:13:43 +0000 (16:13 +0200)
commitd1ce7e5ea140bb01d8c6faded09b9264bb83f722
tree25e23de0a16ee864133e4266e710f33067e5388c
parent5b8873b39c5d4ee93e382389b199d553b38b19f3
habanalabs/gaudi2: use graceful hard reset for F/W events

Use graceful hard reset for F/W events on Gaudi2 device that require a
device reset.

While at it, do a small refactor of the checks and function calls,
to simplify it and to avoid code duplication.

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