OSDN Git Service

habanalabs: add power information type to POWER_GET packet
authorTomer Tayar <ttayar@habana.ai>
Thu, 18 Nov 2021 08:44:05 +0000 (10:44 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:07 +0000 (08:59 +0200)
commit75a5c44d143bc1818e8004a8bee6993aba3a75cf
tree864950fa0e4e97c646dceda4d0c6a218737e6ffc
parent411943344599d1a3340b4f720157cd24f4768c92
habanalabs: add power information type to POWER_GET packet

In new f/w versions, it is required to explicitly indicate the power
information type when querying the F/W for power info.
When getting the current power level it should be set to power_input.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c
include/uapi/misc/habanalabs.h