accel/habanalabs: send disable pci when compute ctx is active
authorTal Cohen <talcohen@habana.ai>
Wed, 22 Mar 2023 09:20:05 +0000 (11:20 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sat, 8 Apr 2023 07:39:33 +0000 (10:39 +0300)
commit3a8d7c3a7d1bf7d1f2121c1f467d6b349b7bf807
treec417fa926d737c2743ad82a1e8123445b3aaad47
parenta855f710f5d40537bc2bf5f924827416653db39f
accel/habanalabs: send disable pci when compute ctx is active

Fix an issue in hard reset flow in which the driver didn't send a
disable pci message if there was an active compute context.
In hard reset, disable pci message should be sent no matter if
a compute context exists or not.

Signed-off-by: Tal Cohen <talcohen@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