habanalabs: print context refcount value if hard reset fails
authorTomer Tayar <ttayar@habana.ai>
Mon, 14 Nov 2022 11:26:21 +0000 (13:26 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 23 Nov 2022 14:45:23 +0000 (16:45 +0200)
commit408c46bd6eb7a4e2fb9fd686218e4a13b9de844c
treea91cd60f8b1c19bf95e3edcbb17301a18f7bca40
parent0abcae8b48850e0f488d0eb7232323d93bdc4b13
habanalabs: print context refcount value if hard reset fails

Failing to kill a user process during a hard reset can be due to a
reference to the user context which isn't released.
To make it easier to understand if this the reason for the failure and
not something else, add a print of the context refcount value.

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/common/device.c