accel/habanalabs/gaudi2: perform hard-reset upon PCIe AXI drain event
authorTomer Tayar <ttayar@habana.ai>
Tue, 19 Sep 2023 07:32:23 +0000 (10:32 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:24 +0000 (12:37 +0300)
commit0426e03126fba3e3e8c549504283f7213d31831f
tree28bda381427e81cb48d5e4bc425c6b78ebc62f53
parent84190b92cc1fd6cdbcb90b65dedeb32fb49336e7
accel/habanalabs/gaudi2: perform hard-reset upon PCIe AXI drain event

Non-completed transactions from PCIe towards the device are handled by
the AXI drain mechanism. This handling is in the PCIe level, but the
transactions are still there in the device consuming some queues
entries, and therefore the device must be reset.
Modify to perform hard-reset upon PCIe AXI drain events.

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/include/gaudi2/gaudi2_async_ids_map_extended.h