habanalabs: add opcode to INFO IOCTL to return clock rate
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 10 Oct 2019 12:48:59 +0000 (15:48 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 21 Nov 2019 09:35:45 +0000 (11:35 +0200)
commit62c1e124a9e03ccb8bb39efe1d092c2376967528
treec6fc20d051587eb6f10a3698467bcb58548d39ac
parent8fdacf2a530f36f6f0621a95ef0e37d8db2d2f89
habanalabs: add opcode to INFO IOCTL to return clock rate

Add a new opcode to the INFO IOCTL to allow the user application to
retrieve the ASIC's current and maximum clock rate. The rate is
returned in MHz.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/goya/goyaP.h
drivers/misc/habanalabs/goya/goya_hwmgr.c
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/habanalabs_ioctl.c
include/uapi/misc/habanalabs.h