summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTal Cohen <talcohen@habana.ai>2023-03-21 17:27:24 +0200
committerOded Gabbay <ogabbay@kernel.org>2023-04-08 10:39:33 +0300
commita855f710f5d40537bc2bf5f924827416653db39f (patch)
tree3a7b2ba2468b7ae0a9ca66fc0ab32090b82e89d5
parent9d7fef7c5963b90160099b568f84188f394ebd11 (diff)
downloadlwn-a855f710f5d40537bc2bf5f924827416653db39f.tar.gz
lwn-a855f710f5d40537bc2bf5f924827416653db39f.zip
accel/habanalabs: remove duplicated disable pci msg
The disable pci message is sent in reset device. It informs the FW not to raise more EQs. The Driver may ignore received EQs, when the device is in disabled mode. The duplication happens when hard reset is scheduled during compute reset and also performs 'escalate_reset_flow'. 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>
-rw-r--r--drivers/accel/habanalabs/common/device.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/accel/habanalabs/common/device.c b/drivers/accel/habanalabs/common/device.c
index 2fb1e2ec3a83..c36de13d6729 100644
--- a/drivers/accel/habanalabs/common/device.c
+++ b/drivers/accel/habanalabs/common/device.c
@@ -1822,9 +1822,7 @@ kill_processes:
dev_info(hdev->dev, "Performing hard reset scheduled during compute reset\n");
flags = hdev->reset_info.hard_reset_schedule_flags;
hdev->reset_info.hard_reset_schedule_flags = 0;
- hdev->disabled = true;
hard_reset = true;
- handle_reset_trigger(hdev, flags);
goto escalate_reset_flow;
}
}