accel/habanalabs: extract and save the FW's SW major/minor/sub-minor
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Thu, 16 Mar 2023 08:20:44 +0000 (10:20 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 5 Jun 2023 12:31:33 +0000 (15:31 +0300)
commitdd5667ff6f9c52c6a49aa9725b80542793613036
tree646a041fe09d79c01c63c55ae877860b76949f51
parent3071247ca06195eed4261b99035e0c031fa5ddd0
accel/habanalabs: extract and save the FW's SW major/minor/sub-minor

It is not always possible to know the FW's SW version from the inner FW
version. Therefore we should extract the general SW version in addition
to the FW version and use it in functions like
'hl_is_fw_ver_below_1_9' etc.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/firmware_if.c
drivers/accel/habanalabs/common/habanalabs.h