aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/goya/goyaP.h
diff options
context:
space:
mode:
authorKoby Elbaz <kelbaz@habana.ai>2021-02-23 21:31:27 +0200
committerOded Gabbay <ogabbay@kernel.org>2021-04-09 14:09:24 +0300
commitcd5def8020637836b7836fc8228b70cdc9af4ea1 (patch)
treefc619127a1d7f64fb1f12560fb731ce326781374 /drivers/misc/habanalabs/goya/goyaP.h
parenthabanalabs: support legacy and new pll indexes (diff)
downloadlinux-dev-cd5def8020637836b7836fc8228b70cdc9af4ea1.tar.xz
linux-dev-cd5def8020637836b7836fc8228b70cdc9af4ea1.zip
habanalabs: improve utilization calculation
The new approach is based on the notion that the relative current power consumption is in relation of proportionality to device's true utilization. Utilization info ranges between [0,100]% Currently, dc_power values are hard-coded. Signed-off-by: Koby Elbaz <kelbaz@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/goya/goyaP.h')
-rw-r--r--drivers/misc/habanalabs/goya/goyaP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/goya/goyaP.h b/drivers/misc/habanalabs/goya/goyaP.h
index 23fe099ed218..ef8c6c8b5c8d 100644
--- a/drivers/misc/habanalabs/goya/goyaP.h
+++ b/drivers/misc/habanalabs/goya/goyaP.h
@@ -49,6 +49,8 @@
#define MAX_POWER_DEFAULT 200000 /* 200W */
+#define DC_POWER_DEFAULT 20000 /* 20W */
+
#define DRAM_PHYS_DEFAULT_SIZE 0x100000000ull /* 4GB */
#define GOYA_DEFAULT_CARD_NAME "HL1000"