habanalabs: provide historical maximum of various sensors
authorChristine Gharzuzi <cgharzuzi@habana.ai>
Tue, 28 Jan 2020 13:19:38 +0000 (15:19 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 24 Mar 2020 08:54:16 +0000 (10:54 +0200)
commit0da10e683eb4644b104e8b552a1d2c946af3145b
treed935a9fffa241016c3afff2238272e5b7811b094
parentd57b83c3dfe55747f1a43f9d9fbadeff7b5a3cd5
habanalabs: provide historical maximum of various sensors

Add support for hwmon_in_highest, hwmon_temp_highest and hwmon_curr_highest
attributes. These attributes retrieve the historical maximum voltage,
temperature and current that were sampled, respectively.

Signed-off-by: Christine Gharzuzi <cgharzuzi@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/hwmon.c
drivers/misc/habanalabs/include/armcp_if.h