]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: remove some f/w descriptor validations
authorfarah kassabri <fkassabri@habana.ai>
Tue, 30 Aug 2022 10:01:03 +0000 (13:01 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 20 Sep 2022 12:46:45 +0000 (15:46 +0300)
commit68628e6d91435f3735c6ff567a59cbbb7f04c3e0
tree677d39443be433c577fb24659a1e209280dca22c
parentc9d2b49e4339b7ee47b4ba4cd61f39e1fb599fc4
habanalabs: remove some f/w descriptor validations

To be forward-backward compatible with the firmware in the initial
communication during preboot, we need to remove the validation of the
header size. This will allow us to add more fields to the
lkd_fw_comms_desc structure.

Instead of the validation of the header size, we just print warning
when some mismatch in descriptor has been revealed, and we calculate
the CRC base on descriptor size reported by the firmware instead of
calculating it ourselves.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c