accel/habanalabs: disable PCI when escalating compute to hard-reset
authorKoby Elbaz <kelbaz@habana.ai>
Sun, 29 Jan 2023 11:35:58 +0000 (13:35 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:12 +0000 (13:29 +0200)
commit57479adb41852b668c6f25a3c6aef4ad3fe35f97
tree902167263edfe57f304cb3fa2839228859dbe5d4
parente0ad6bad80b52b84cc0592b949a0efd2106928c2
accel/habanalabs: disable PCI when escalating compute to hard-reset

In case a compute reset has failed or a request for a hard reset has
just arrived, then we escalate current reset procedure from compute
to hard-reset.
In such a case, the FW should be aware of the updated error cause,
and if LKD is the one who performs the reset (rather than the FW),
then we ask the FW to disable PCI access.

We would also like to have relevant debug info and therefore
we print the currently escalating reset type.

Signed-off-by: Koby Elbaz <kelbaz@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/common/device.c