habanalabs: support receiving ascii message from preboot f/w
authorTal Cohen <talcohen@habana.ai>
Thu, 1 Dec 2022 14:37:30 +0000 (16:37 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 26 Jan 2023 08:56:22 +0000 (10:56 +0200)
commit2dd89591d8c7fe7b24daeac0faf8a0afa30f9b0b
treef0217e314585ab9600460395dc3e5e316d5b0095
parent2b30873abd49fa8f8e21c3e1cbcf2795adfb7f73
habanalabs: support receiving ascii message from preboot f/w

An Ascii message that is sent from preboot towards the driver
will indicate the specific error that occurred on the f/w.
This commit supports that message and parse the ascii string
in order to print it into the kernel log

The commit also changes the way the descriptor struct is declared.
While its size increased (it now above 1024 bytes), it will be
allocated by using kmalloc instead of stack declaration.

Signed-off-by: Tal Cohen <talcohen@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/include/common/hl_boot_if.h