habanalabs: read device boot errors after cpucp is up
authorOfir Bitton <obitton@habana.ai>
Sun, 27 Dec 2020 15:09:09 +0000 (17:09 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 27 Jan 2021 19:03:50 +0000 (21:03 +0200)
commitedb07cb69caacb9be06a299cdf62f266292cc890
treed7033d53d7fbf6b83f7afaf28ccd8d88426decb2
parent6769cea8de590920c95603c4f3ce063e38033423
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>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/include/common/hl_boot_if.h