diff options
author | Ofir Bitton <obitton@habana.ai> | 2023-03-13 17:10:28 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-03-20 17:35:33 +0200 |
commit | 76e1ff37b6872c9f2d11660258fc8c88b2f97b06 (patch) | |
tree | 0950f5653d2273c500e7022c20905db9db62867b /include/uapi/drm | |
parent | 0e418ab71829238135756dde3d63952e80821b43 (diff) | |
download | linux-76e1ff37b6872c9f2d11660258fc8c88b2f97b06.tar.gz linux-76e1ff37b6872c9f2d11660258fc8c88b2f97b06.tar.bz2 linux-76e1ff37b6872c9f2d11660258fc8c88b2f97b06.zip |
accel/habanalabs: expose dram reserved size by kmd
We expose this in order for user applications to know how much dram
is reserved for internal use.
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r-- | include/uapi/drm/habanalabs_accel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/drm/habanalabs_accel.h b/include/uapi/drm/habanalabs_accel.h index 7d457eb4da74..e43688d30e96 100644 --- a/include/uapi/drm/habanalabs_accel.h +++ b/include/uapi/drm/habanalabs_accel.h @@ -888,6 +888,7 @@ enum hl_server_type { * @tpc_interrupt_id: interrupt id for TPC to use in order to raise events towards the host. * @engine_core_interrupt_reg_addr: interrupt register address for engine core to use * in order to raise events toward FW. + * @reserved_dram_size: DRAM size reserved for driver and firmware. */ struct hl_info_hw_ip_info { __u64 sram_base_address; @@ -928,6 +929,7 @@ struct hl_info_hw_ip_info { __u32 reserved8; __u32 reserved9; __u64 engine_core_interrupt_reg_addr; + __u64 reserved_dram_size; }; struct hl_info_dram_usage { |