summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/habanalabs.h
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2020-12-18 20:12:56 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-01-27 22:03:49 +0300
commit1530d468178d90e1a2870f0693e5f1a240e74dc5 (patch)
treeacc723cb68126e20d9da71e19c0cd2c9d9caa2f6 /drivers/misc/habanalabs/common/habanalabs.h
parent2e368560080cf020cf149578e70d0594ca4d19d0 (diff)
downloadlinux-1530d468178d90e1a2870f0693e5f1a240e74dc5.tar.xz
habanalabs: add ASIC property of functional HBMs
The number of functional HBMs in the same ASIC can be different due to malfunctioning HBM banks. 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 dee73a04411b..f083487ca563 100644
--- a/drivers/misc/habanalabs/common/habanalabs.h
+++ b/drivers/misc/habanalabs/common/habanalabs.h
@@ -416,6 +416,7 @@ struct hl_mmu_properties {
* from BOOT_DEV_STS0
* @dram_supports_virtual_memory: is there an MMU towards the DRAM
* @hard_reset_done_by_fw: true if firmware is handling hard reset flow
+ * @num_functional_hbms: number of functional HBMs in each DCORE.
*/
struct asic_fixed_properties {
struct hw_queue_properties *hw_queues_props;
@@ -474,6 +475,7 @@ struct asic_fixed_properties {
u8 fw_security_status_valid;
u8 dram_supports_virtual_memory;
u8 hard_reset_done_by_fw;
+ u8 num_functional_hbms;
};
/**