]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: check for errors after preboot is ready
authorFarah Kassabri <fkassabri@habana.ai>
Sun, 3 Mar 2024 16:06:11 +0000 (18:06 +0200)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:53:03 +0000 (09:53 +0300)
commitb94488be083090b0933c2092aa6bb6956f476b3a
tree59e572ce0f52a593f8b66d38ea5d642810db9cbf
parent25abbe7ac1d96775a692a85d4272490b09af5fa4
accel/habanalabs: check for errors after preboot is ready

Driver should check and report any fatal errors detected by preboot,
before it attempts to load the boot fit.
Some errors may cause the driver to stop the boot process and mark
the device as unusable.
This check will allow the driver to fail and print the error reported
by preboot and skip the time wasting attempt of trying to load the
boot fit, which will fail due to the error.

Signed-off-by: Farah Kassabri <fkassabri@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
drivers/accel/habanalabs/common/firmware_if.c