History

accel/habanalabs: expose engine core int reg address

In order for engine cores to raise interrupts towards FW, They need to know which register the event data should be written to. Hence, we forward the relevant scratchpad register received during dynamic regs handshake with FW.

Ofir Bitton committed 3 years ago

Commit 7fc0d011 parent 313e9f64 files · +14 −0Browse files

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

Unified · Split

include/uapi/drm/habanalabs_accel.h+5−0
@@ -885,6 +885,8 @@ 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 * @engine_core_interrupt_reg_addr: interrupt register address for engine core to use
889 * in order to raise events toward FW.
888 */890 */
889struct hl_info_hw_ip_info {891struct hl_info_hw_ip_info {
890 __u64 sram_base_address;892 __u64 sram_base_address;
@@ -921,6 +923,9 @@ struct hl_info_hw_ip_info { · 30 unmodified lines
921 __u8 reserved8;923 __u8 reserved8;
922 __u8 revision_id;924 __u8 revision_id;
923 __u8 pad[2];925 __u8 pad[2];
926 __u32 reserved9;
927 __u8 pad3[4];
928 __u64 engine_core_interrupt_reg_addr;
924};929};
925 930
926struct hl_info_dram_usage {931struct hl_info_dram_usage {

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