]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/habanalabs: get reset type indication from irq_map
authorOhad Sharabi <osharabi@habana.ai>
Sun, 13 Nov 2022 08:49:05 +0000 (10:49 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:12 +0000 (13:29 +0200)
commit32231b6c30ef6d4ec0ca077bfe7e274b5441140a
tree086ed5ec4d3042e554eb837b73cc4dc4bc13e1ae
parent18d1358459bd2a18f4582c9ecbdb63cb8825fce0
accel/habanalabs: get reset type indication from irq_map

When getting an event, add the ability to deduce the reset type from
the IRQ map table instead of using hard reset regardless.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
drivers/accel/habanalabs/gaudi2/gaudi2.c
drivers/accel/habanalabs/include/gaudi2/gaudi2_async_ids_map_extended.h