accel/habanalabs: print task name and request code upon ioctl failure
authorTomer Tayar <ttayar@habana.ai>
Tue, 16 May 2023 08:10:52 +0000 (11:10 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:17 +0000 (12:37 +0300)
commit7dccb064a7ab54068b5a92466361dcd0db069c73
tree0ac31e80d1c64d8dd6beea7b46e2e62cee6cc4e0
parentc6a4f256aee17e18dbc14039d746e0450e4b199b
accel/habanalabs: print task name and request code upon ioctl failure

When an ioctl fails, it is useful to know what is the task command name
and the full ioctl request code, in addition to the task pid and the
ioctl number.
Add the additional information to the relevant debug error prints.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/habanalabs_ioctl.c