summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/goya/goya.c
diff options
context:
space:
mode:
authorIgor Grinberg <igrinberg@habana.ai>2019-02-24 11:20:02 +0200
committerOded Gabbay <oded.gabbay@gmail.com>2019-02-24 11:20:02 +0200
commit0ca3b1b7b9652875861eaa24ae2c514771c2750e (patch)
tree4d672ecbadc44af39ab97fad26a974d46ac16dbe /drivers/misc/habanalabs/goya/goya.c
parentd358b1733fc33d9f0261ce07c3d328787652245d (diff)
downloadlwn-0ca3b1b7b9652875861eaa24ae2c514771c2750e.tar.gz
lwn-0ca3b1b7b9652875861eaa24ae2c514771c2750e.zip
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: Igor Grinberg <igrinberg@habana.ai> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/goya/goya.c')
-rw-r--r--drivers/misc/habanalabs/goya/goya.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c
index ea979ebd62fb..0185f11c5577 100644
--- a/drivers/misc/habanalabs/goya/goya.c
+++ b/drivers/misc/habanalabs/goya/goya.c
@@ -2550,6 +2550,11 @@ static int goya_init_cpu(struct hl_device *hdev, u32 cpu_timeout)
"ARM status %d - DDR initialization failed\n",
status);
break;
+ case CPU_BOOT_STATUS_UBOOT_NOT_READY:
+ dev_err(hdev->dev,
+ "ARM status %d - u-boot stopped by user\n",
+ status);
+ break;
default:
dev_err(hdev->dev,
"ARM status %d - Invalid status code\n",