habanalabs: improve communication protocol with cpucp
authorOfir Bitton <obitton@habana.ai>
Thu, 28 Jan 2021 14:30:25 +0000 (16:30 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 8 Feb 2021 16:20:08 +0000 (18:20 +0200)
commit5dbd7b4de6ef84321cc1378eccdd92d4730c2e56
treef356ec10cf6ca9f7a9ae591b44b243491a8c7a70
parent6c1e3f92f9f1dfc7f14b43fd432c8ec95b1a188f
habanalabs: improve communication protocol with cpucp

Current messaging communictaion protocol with cpucp can get out
of sync due to coherency issues. In order to improve the protocol
reliability, we modify the protocol to expect a different
acknowledgment for every packet sent to cpucp.

Signed-off-by: Ofir Bitton <obitton@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/common/habanalabs.h
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/include/common/hl_boot_if.h