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. 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>
This commit is contained in:
parent
bcfcd084aa
commit
4713ace324
8 changed files with 52 additions and 4 deletions
|
|
@ -885,6 +885,7 @@ 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.
|
||||
* @tpc_interrupt_id: interrupt id for TPC to use in order to raise events towards the host.
|
||||
* @engine_core_interrupt_reg_addr: interrupt register address for engine core to use
|
||||
* in order to raise events toward FW.
|
||||
*/
|
||||
|
|
@ -922,7 +923,7 @@ struct hl_info_hw_ip_info {
|
|||
__u32 reserved7;
|
||||
__u8 reserved8;
|
||||
__u8 revision_id;
|
||||
__u8 pad[2];
|
||||
__u16 tpc_interrupt_id;
|
||||
__u32 reserved9;
|
||||
__u8 pad3[4];
|
||||
__u64 engine_core_interrupt_reg_addr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue