diff options
author | Ofir Bitton <obitton@habana.ai> | 2023-03-13 22:30:23 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-03-20 17:35:34 +0200 |
commit | 958e47977bd12e06752a559541867028b120de76 (patch) | |
tree | 4652b2ce8bbf20e4bee055a26ed645520a12a05e /include/uapi/drm | |
parent | 481e9a0fda5cf38b795d473058cb8c77d9d1dc5c (diff) | |
download | linux-958e47977bd12e06752a559541867028b120de76.tar.gz linux-958e47977bd12e06752a559541867028b120de76.tar.bz2 linux-958e47977bd12e06752a559541867028b120de76.zip |
accel/habanalabs: expose rotator mask to userspace
All engine masks are exposed to user, make sure user gets the
correct rotator enabled mask in gaudi2.
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/drm/habanalabs_accel.h b/include/uapi/drm/habanalabs_accel.h index e43688d30e96..c139aab17c8a 100644 --- a/include/uapi/drm/habanalabs_accel.h +++ b/include/uapi/drm/habanalabs_accel.h @@ -886,6 +886,8 @@ enum hl_server_type { * @device_mem_alloc_default_page_size: default page size used in device memory allocation. * @revision_id: PCI revision ID of the ASIC. * @tpc_interrupt_id: interrupt id for TPC to use in order to raise events towards the host. + * @rotator_enabled_mask: Bit-mask that represents which rotators are enabled. + * Relevant for Gaudi3 and later. * @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. @@ -926,7 +928,7 @@ struct hl_info_hw_ip_info { __u8 reserved7; __u8 revision_id; __u16 tpc_interrupt_id; - __u32 reserved8; + __u32 rotator_enabled_mask; __u32 reserved9; __u64 engine_core_interrupt_reg_addr; __u64 reserved_dram_size; |