diff options
author | Ohad Sharabi <osharabi@habana.ai> | 2022-11-27 12:38:49 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-01-26 10:56:20 +0200 |
commit | cda6797b0018771cf240525b1b3d225d118e23fe (patch) | |
tree | c06eeff72a7b071eff60b933f2ab4597a6ba9598 /drivers/misc/habanalabs/common | |
parent | 39d15301f43eed211344e534ede8e4da7b2d018b (diff) | |
download | linux-stable-cda6797b0018771cf240525b1b3d225d118e23fe.tar.gz linux-stable-cda6797b0018771cf240525b1b3d225d118e23fe.tar.bz2 linux-stable-cda6797b0018771cf240525b1b3d225d118e23fe.zip |
habanalabs: make set_dram_properties an ASIC function
As ASICs are evolving, we will need to update the DRAM properties at
various points because we may get different information from the f/w
at different points of the initialization.
This ASIC function is a foundation for this capability.
Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/common')
-rw-r--r-- | drivers/misc/habanalabs/common/habanalabs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/habanalabs.h b/drivers/misc/habanalabs/common/habanalabs.h index ecf7e5da8f1d..893ebcba170b 100644 --- a/drivers/misc/habanalabs/common/habanalabs.h +++ b/drivers/misc/habanalabs/common/habanalabs.h @@ -1683,6 +1683,7 @@ struct hl_asic_funcs { int (*set_engine_cores)(struct hl_device *hdev, u32 *core_ids, u32 num_cores, u32 core_command); int (*send_device_activity)(struct hl_device *hdev, bool open); + int (*set_dram_properties)(struct hl_device *hdev); }; |