accel/habanalabs: print return code when process termination fails
authorKoby Elbaz <kelbaz@habana.ai>
Mon, 5 Jun 2023 08:11:05 +0000 (11:11 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:18 +0000 (12:37 +0300)
commit2b541cf91373b1bc1634a82b668022d50c05603c
treec6e7ae57b467b98f2d9e8b69cf81e672854b82dd
parentbffd2f16ae374decdeb5bc714b1aa2e0c23f3708
accel/habanalabs: print return code when process termination fails

As part of driver teardown, we attempt to kill all user processes.
It shouldn't fail, but if it does we want to print the error code that
the kapi returned to us.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/device.c