accel/habanalabs: update boot status print
authorAriel Suller <asuller@habana.ai>
Mon, 11 Sep 2023 14:43:07 +0000 (17:43 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:23 +0000 (12:37 +0300)
FW shutdown preparation status was added to spec.

Signed-off-by: Ariel Suller <asuller@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/firmware_if.c

index 0fb360cca9cc24742d8b0e884d5bb923a503dc91..47e8384134aa9133f634aa07c439a3f8a3060cb7 100644 (file)
@@ -1464,6 +1464,10 @@ static void detect_cpu_boot_status(struct hl_device *hdev, u32 status)
                dev_err(hdev->dev,
                        "Device boot progress - Stuck in preboot after security initialization\n");
                break;
+       case CPU_BOOT_STATUS_FW_SHUTDOWN_PREP:
+               dev_err(hdev->dev,
+                       "Device boot progress - Stuck in preparation for shutdown\n");
+               break;
        default:
                dev_err(hdev->dev,
                        "Device boot progress - Invalid or unexpected status code %d\n", status);