]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/habanalabs: assert return value of hw_fini
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Wed, 15 Feb 2023 10:15:57 +0000 (12:15 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:14 +0000 (13:29 +0200)
commit86b74d843897fdb9f2366bc515e9d52816e3d247
tree80d6aaa65fc82efa33fd40f80f6eb14f99141b0d
parentd85f0531b9285cf7dc6784b06e7e7dbc1c04dcee
accel/habanalabs: assert return value of hw_fini

Since hw_fini return error code for failure indication, we should
check its return value. Currently it might only fail upon soft-reset
from hl_device_reset. Later patch will add hw_fini failure in case of
polling timeout in hard-reset.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/device.c
drivers/accel/habanalabs/gaudi/gaudi.c
drivers/accel/habanalabs/gaudi2/gaudi2.c
drivers/accel/habanalabs/goya/goya.c