diff options
author | Ofir Bitton <obitton@habana.ai> | 2023-01-16 20:56:23 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-03-15 14:29:13 +0300 |
commit | 4713ace3246644519bf93cc8ea6e44efe57fc3ec (patch) | |
tree | bf3a846f5b621f97a30a91613c8b240ba3b07b77 /drivers/accel/habanalabs/gaudi/gaudi.c | |
parent | bcfcd084aacddbb1893ff0c8f41fda23ed861458 (diff) | |
download | linux-4713ace3246644519bf93cc8ea6e44efe57fc3ec.tar.xz |
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>
Diffstat (limited to 'drivers/accel/habanalabs/gaudi/gaudi.c')
-rw-r--r-- | drivers/accel/habanalabs/gaudi/gaudi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/accel/habanalabs/gaudi/gaudi.c b/drivers/accel/habanalabs/gaudi/gaudi.c index 0e02aebb6ea6..688efd7b55a1 100644 --- a/drivers/accel/habanalabs/gaudi/gaudi.c +++ b/drivers/accel/habanalabs/gaudi/gaudi.c @@ -679,6 +679,7 @@ static int gaudi_set_fixed_properties(struct hl_device *hdev) (num_sync_stream_queues * HL_RSVD_MONS); prop->first_available_user_interrupt = USHRT_MAX; + prop->tpc_interrupt_id = USHRT_MAX; for (i = 0 ; i < HL_MAX_DCORES ; i++) prop->first_available_cq[i] = USHRT_MAX; |