]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/habanalabs: do soft-reset using cpucp packet
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Wed, 8 Feb 2023 14:16:08 +0000 (16:16 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 5 Jun 2023 12:31:34 +0000 (15:31 +0300)
commitcc7b790d412461520de49eb321a0aeed2735e5c4
treea31c5490b080b7cc6240da052b91060394f95517
parenta12428acf823a1a367d38a4113b7365e3e5603bf
accel/habanalabs: do soft-reset using cpucp packet

This is done depending on the FW version. The cpucp method is
preferable and saves scratchpads resource.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/firmware_if.c
drivers/accel/habanalabs/common/habanalabs.h
drivers/accel/habanalabs/gaudi2/gaudi2.c
drivers/accel/habanalabs/include/common/cpucp_if.h