habanalabs: add information about PCIe controller
authorOfir Bitton <obitton@habana.ai>
Tue, 21 Jul 2020 07:49:51 +0000 (10:49 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:49 +0000 (18:49 +0300)
commit0a068adde505a90ece23caaf19b77567e1d18298
treebb4a8b951eef94143747d05ac8ef68c19d1549ba
parenta98d73c7fae486f7fea83bdec8599d4fccb6807d
habanalabs: add information about PCIe controller

Update firmware header with new API for getting pcie info
such as tx/rx throughput and replay counter.
These counters are needed by customers for monitor and maintenance
of multiple devices.
Add new opcodes to the INFO ioctl to retrieve these counters.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_ioctl.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/include/common/armcp_if.h
include/uapi/misc/habanalabs.h