diff options
author | Tal Cohen <talcohen@habana.ai> | 2023-03-21 09:59:28 +0100 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-04-08 09:39:34 +0200 |
commit | 802f25b6c2c0377c681dd1e4f799a648c3df50dd (patch) | |
tree | 5d1f273eb477af299e803cc5bdfd186689891aa9 /drivers/accel/habanalabs/goya | |
parent | accel/habanalabs: fix wrong reset and event flags (diff) | |
download | linux-802f25b6c2c0377c681dd1e4f799a648c3df50dd.tar.xz linux-802f25b6c2c0377c681dd1e4f799a648c3df50dd.zip |
accel/habanalabs: sync f/w events interrupt in hard reset
Receiving events from FW, while the device is in hard reset, causes
a warning message in Driver log. The message may point to a
problem in the Driver or FW. But It also can appear as a result
of events that have been sent from FW just before the hard reset.
In order to avoid receiving events from FW while the device is in reset
and is already in 'disabled' mode, sync the f/w events interrupt right
before setting the device to 'disabled'.
Signed-off-by: Tal Cohen <talcohen@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/accel/habanalabs/goya')
-rw-r--r-- | drivers/accel/habanalabs/goya/goya.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/accel/habanalabs/goya/goya.c b/drivers/accel/habanalabs/goya/goya.c index 07d67878eac5..fb0ac9df841a 100644 --- a/drivers/accel/habanalabs/goya/goya.c +++ b/drivers/accel/habanalabs/goya/goya.c @@ -473,6 +473,7 @@ int goya_set_fixed_properties(struct hl_device *hdev) prop->first_available_user_interrupt = USHRT_MAX; prop->tpc_interrupt_id = USHRT_MAX; + prop->eq_interrupt_id = GOYA_EVENT_QUEUE_MSIX_IDX; for (i = 0 ; i < HL_MAX_DCORES ; i++) prop->first_available_cq[i] = USHRT_MAX; |