]> 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)
commit92b029fe24731616fea720f6b86367c6cddad489
tree677d39443be433c577fb24659a1e209280dca22c
parentfab2ee5c45ca0d1246c34542d0aa35e0f2d54e38
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