summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2023-01-22 13:06:15 +0100
committerOded Gabbay <ogabbay@kernel.org>2023-03-15 12:29:12 +0100
commit7fc0d011c378c6b2abc65cb536e0df0ee055ed39 (patch)
treef1205c6dcbe8ac6c7744f1a400824ad44e055447 /include
parentaccel/habanalabs: add critical-event bit in notifier (diff)
downloadlinux-7fc0d011c378c6b2abc65cb536e0df0ee055ed39.tar.xz
linux-7fc0d011c378c6b2abc65cb536e0df0ee055ed39.zip
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. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org> Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/drm/habanalabs_accel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/drm/habanalabs_accel.h b/include/uapi/drm/habanalabs_accel.h
index 3a62652a6452..c1fdbb85d1d5 100644
--- a/include/uapi/drm/habanalabs_accel.h
+++ b/include/uapi/drm/habanalabs_accel.h
@@ -885,6 +885,8 @@ enum hl_server_type {
* application to use. Relevant for Gaudi2 and later.
* @device_mem_alloc_default_page_size: default page size used in device memory allocation.
* @revision_id: PCI revision ID of the ASIC.
+ * @engine_core_interrupt_reg_addr: interrupt register address for engine core to use
+ * in order to raise events toward FW.
*/
struct hl_info_hw_ip_info {
__u64 sram_base_address;
@@ -921,6 +923,9 @@ struct hl_info_hw_ip_info {
__u8 reserved8;
__u8 revision_id;
__u8 pad[2];
+ __u32 reserved9;
+ __u8 pad3[4];
+ __u64 engine_core_interrupt_reg_addr;
};
struct hl_info_dram_usage {