diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2022-01-18 14:58:30 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-02-28 14:22:03 +0200 |
commit | aa3766def7506e5d9bd6c8387dcfe3629eb2a1f2 (patch) | |
tree | 2ae828a48864eff3a4a157e8d993300169ffa2cb /include/uapi/misc/habanalabs.h | |
parent | 008255ec3d799e82a5aa3e913800d196bcc5393a (diff) | |
download | linux-stable-aa3766def7506e5d9bd6c8387dcfe3629eb2a1f2.tar.gz linux-stable-aa3766def7506e5d9bd6c8387dcfe3629eb2a1f2.tar.bz2 linux-stable-aa3766def7506e5d9bd6c8387dcfe3629eb2a1f2.zip |
habanalabs: expose number of user interrupts
Currently we only expose to the user the ID of the first available
user interrupt. To make user interrupts allocation truly dynamic, we
need to also expose the number of user interrupts.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'include/uapi/misc/habanalabs.h')
-rw-r--r-- | include/uapi/misc/habanalabs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h index 371dfc4243b3..12976f7a8d84 100644 --- a/include/uapi/misc/habanalabs.h +++ b/include/uapi/misc/habanalabs.h @@ -404,6 +404,8 @@ enum hl_server_type { * @cpucp_version: The CPUCP f/w version. * @card_name: The card name as passed by the f/w. * @dram_page_size: The DRAM physical page size. + * @number_of_user_interrupts: The number of interrupts that are available to the userspace + * application to use. Relevant for Gaudi2 and later. */ struct hl_info_hw_ip_info { __u64 sram_base_address; @@ -428,6 +430,9 @@ struct hl_info_hw_ip_info { __u8 card_name[HL_INFO_CARD_NAME_MAX_LEN]; __u64 reserved2; __u64 dram_page_size; + __u32 reserved3; + __u16 number_of_user_interrupts; + __u16 pad2; }; struct hl_info_dram_usage { |