Commit 0ca3b1b7 authored by Igor Grinberg's avatar Igor Grinberg Committed by Oded Gabbay

habanalabs: add new device CPU boot status

This patch adds a definition of a new status in the device CPU boot stages
and add the handling of the new status.
Signed-off-by: default avatarIgor Grinberg <igrinberg@habana.ai>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent d358b173
...@@ -2550,6 +2550,11 @@ static int goya_init_cpu(struct hl_device *hdev, u32 cpu_timeout) ...@@ -2550,6 +2550,11 @@ static int goya_init_cpu(struct hl_device *hdev, u32 cpu_timeout)
"ARM status %d - DDR initialization failed\n", "ARM status %d - DDR initialization failed\n",
status); status);
break; break;
case CPU_BOOT_STATUS_UBOOT_NOT_READY:
dev_err(hdev->dev,
"ARM status %d - u-boot stopped by user\n",
status);
break;
default: default:
dev_err(hdev->dev, dev_err(hdev->dev,
"ARM status %d - Invalid status code\n", "ARM status %d - Invalid status code\n",
......
...@@ -18,7 +18,8 @@ enum cpu_boot_status { ...@@ -18,7 +18,8 @@ enum cpu_boot_status {
CPU_BOOT_STATUS_IN_SPL, CPU_BOOT_STATUS_IN_SPL,
CPU_BOOT_STATUS_IN_UBOOT, CPU_BOOT_STATUS_IN_UBOOT,
CPU_BOOT_STATUS_DRAM_INIT_FAIL, CPU_BOOT_STATUS_DRAM_INIT_FAIL,
CPU_BOOT_STATUS_FIT_CORRUPTED CPU_BOOT_STATUS_FIT_CORRUPTED,
CPU_BOOT_STATUS_UBOOT_NOT_READY,
}; };
enum kmd_msg { enum kmd_msg {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment