summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/goya/goya.c
diff options
context:
space:
mode:
authorTomer Tayar <ttayar@habana.ai>2022-01-18 19:27:14 +0200
committerOded Gabbay <ogabbay@kernel.org>2022-02-28 14:22:05 +0200
commit2908826d09f829528cb507ce547967beccf4388d (patch)
tree512c97d0674bccfc024aaac4fddfbeeb1976a91f /drivers/misc/habanalabs/goya/goya.c
parent35629bc171b642d5f0bbb59345471d20ecff5ff7 (diff)
habanalabs: set max power on device init per ASIC
For current devices there is a need to send the max power value to F/W during device init, for example because there might be several card types. In future devices, this info will be programmed in the device's EEPROM and will be read by F/W, and hence the driver should not send it. Modify the sending of the relevant message to be done only for ASIC types that need it. Signed-off-by: Tomer Tayar <ttayar@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/goya/goya.c')
-rw-r--r--drivers/misc/habanalabs/goya/goya.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c
index c8143b6616af..c08d96e43c9f 100644
--- a/drivers/misc/habanalabs/goya/goya.c
+++ b/drivers/misc/habanalabs/goya/goya.c
@@ -485,6 +485,8 @@ int goya_set_fixed_properties(struct hl_device *hdev)
prop->configurable_stop_on_err = true;
+ prop->set_max_power_on_device_init = true;
+
return 0;
}