]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
habanalabs: read f/w's 2-nd sts and err registers
authorOhad Sharabi <osharabi@habana.ai>
Sun, 2 May 2021 12:45:21 +0000 (15:45 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:39 +0000 (15:23 +0300)
commite67a60400ffc75f52705ae8cac937fd8f00e153a
tree2640c7d4d0cfeed76c18f48b8b18a173aad48d8d
parentea7d5e7b102bf0bd41eef1faa6b2337e45791a62
habanalabs: read f/w's 2-nd sts and err registers

Maintain both STS1 and ERR1 registers used for status communication
with F/W.
Those are not maintained as we currently have less than 31
statuses/error defined and so LKD did not refer to those register.
The reason to read them now is to try to support future f/w versions
with current driver.

Signed-off-by: Ohad Sharabi <osharabi@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