habanalabs/gaudi: use COMMS to reset device / halt CPU
authorKoby Elbaz <kelbaz@habana.ai>
Thu, 20 May 2021 09:45:58 +0000 (12:45 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:40 +0000 (15:23 +0300)
commit4080308e33bd6ebdb10d0ce62545690cb9be23e4
treeab3f5fce9e934d5965fd6d5c55a0646eeab10296
parent3649eaea2754e0d64a5a6726e46093b490c226d7
habanalabs/gaudi: use COMMS to reset device / halt CPU

This is needed because legacy FW 'communication' protocol will soon
become obsolete.
Because COMMS is a boot protocol, communicating through it is supported
only until Linux is loaded to the device CPU, where in that case we
will fallback to the former implementation.

Signed-off-by: Koby Elbaz <kelbaz@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