habanalabs: add new opcodes for INFO IOCTL
authorfarah kassabri <fkassabri@habana.ai>
Sun, 24 Oct 2021 16:02:32 +0000 (19:02 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:05 +0000 (08:59 +0200)
commit49c052dad691ba1a3dc3559b74e99f2ec2fa0319
tree6499d85f1144eb3786a64e4da547a4102386536f
parentd4194f21400e9b2caef2d48c63ec5ef102eead22
habanalabs: add new opcodes for INFO IOCTL

Add implementation for new opcodes in the INFO IOCTL:
1. Retrieve the replaced DRAM rows from f/w.
2. Retrieve the pending DRAM rows from f/w.

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
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_ioctl.c
drivers/misc/habanalabs/include/common/cpucp_if.h
include/uapi/misc/habanalabs.h