summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/habanalabs.h
diff options
context:
space:
mode:
authorTomer Tayar <ttayar@habana.ai>2022-01-18 20:27:14 +0300
committerOded Gabbay <ogabbay@kernel.org>2022-02-28 15:22:05 +0300
commit2908826d09f829528cb507ce547967beccf4388d (patch)
tree512c97d0674bccfc024aaac4fddfbeeb1976a91f /drivers/misc/habanalabs/common/habanalabs.h
parent35629bc171b642d5f0bbb59345471d20ecff5ff7 (diff)
downloadlinux-2908826d09f829528cb507ce547967beccf4388d.tar.xz
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/common/habanalabs.h')
-rw-r--r--drivers/misc/habanalabs/common/habanalabs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/habanalabs.h b/drivers/misc/habanalabs/common/habanalabs.h
index 93116fe71ef6..b5055ab528b8 100644
--- a/drivers/misc/habanalabs/common/habanalabs.h
+++ b/drivers/misc/habanalabs/common/habanalabs.h
@@ -562,6 +562,7 @@ struct hl_hints_range {
* to the fact that training runs on multiple
* devices)
* @configurable_stop_on_err: is stop-on-error option configurable via debugfs.
+ * @set_max_power_on_device_init: true if need to set max power in F/W on device init.
*/
struct asic_fixed_properties {
struct hw_queue_properties *hw_queues_props;
@@ -646,6 +647,7 @@ struct asic_fixed_properties {
u8 supports_soft_reset;
u8 allow_inference_soft_reset;
u8 configurable_stop_on_err;
+ u8 set_max_power_on_device_init;
};
/**