History

accel/habanalabs: add support for TPC assert

In order to allow TPC engines to raise an assert, we must expose the relevant MSIX interrupt to the user so he will configure the engine correctly. In addition, we implement the corresponding interrupt handler that will notify the user upon such an event.

Ofir Bitton committed 3 years ago

Commit 4713ace1 parent bcfcd088 files · +52 −4Browse files

Showing the changes to include/uapi (1 of 8 files). Show all

Unified · Split

include/uapi/drm/habanalabs_accel.h+2−1
@@ -885,6 +885,7 @@ enum hl_server_type { · 884 unmodified lines
885 * application to use. Relevant for Gaudi2 and later.885 * application to use. Relevant for Gaudi2 and later.
886 * @device_mem_alloc_default_page_size: default page size used in device memory allocation.886 * @device_mem_alloc_default_page_size: default page size used in device memory allocation.
887 * @revision_id: PCI revision ID of the ASIC.887 * @revision_id: PCI revision ID of the ASIC.
888 * @tpc_interrupt_id: interrupt id for TPC to use in order to raise events towards the host.
888 * @engine_core_interrupt_reg_addr: interrupt register address for engine core to use889 * @engine_core_interrupt_reg_addr: interrupt register address for engine core to use
889 * in order to raise events toward FW.890 * in order to raise events toward FW.
890 */891 */
@@ -922,7 +923,7 @@ struct hl_info_hw_ip_info { · 31 unmodified lines
922 __u32 reserved7;923 __u32 reserved7;
923 __u8 reserved8;924 __u8 reserved8;
924 __u8 revision_id;925 __u8 revision_id;
925 __u8 pad[2];926 __u16 tpc_interrupt_id;
926 __u32 reserved9;927 __u32 reserved9;
927 __u8 pad3[4];928 __u8 pad3[4];
928 __u64 engine_core_interrupt_reg_addr;929 __u64 engine_core_interrupt_reg_addr;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t