diff options
author | Ofir Bitton <obitton@habana.ai> | 2020-12-27 16:09:09 +0100 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-01-27 20:03:50 +0100 |
commit | edb07cb69caacb9be06a299cdf62f266292cc890 (patch) | |
tree | d7033d53d7fbf6b83f7afaf28ccd8d88426decb2 /drivers/misc/habanalabs/gaudi | |
parent | habanalabs: report correct dram size in info ioctl (diff) | |
download | linux-edb07cb69caacb9be06a299cdf62f266292cc890.tar.xz linux-edb07cb69caacb9be06a299cdf62f266292cc890.zip |
habanalabs: read device boot errors after cpucp is up
Boot cpu can report errors in various boot stages.
Current implementaion does not take into consideration errors
reported in late stages, hence we will check for errors at the most
late stage when fetching cpucp information.
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/gaudi')
-rw-r--r-- | drivers/misc/habanalabs/gaudi/gaudi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c index 66194b7d3806..f6cfd6e075e2 100644 --- a/drivers/misc/habanalabs/gaudi/gaudi.c +++ b/drivers/misc/habanalabs/gaudi/gaudi.c @@ -7451,7 +7451,7 @@ static int gaudi_cpucp_info_get(struct hl_device *hdev) if (!(gaudi->hw_cap_initialized & HW_CAP_CPU_Q)) return 0; - rc = hl_fw_cpucp_info_get(hdev, mmCPU_BOOT_DEV_STS0); + rc = hl_fw_cpucp_info_get(hdev, mmCPU_BOOT_DEV_STS0, mmCPU_BOOT_ERR0); if (rc) return rc; |