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)
commit6b9b9e244fdd0d6c5ee21b7b9d74282d9e43733a
tree677d39443be433c577fb24659a1e209280dca22c
parent8412bb69ed789464adadf7f0906971c7be29e204
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