OSDN Git Service

accel/habanalabs: add event queue extra validation
authorOfir Bitton <obitton@habana.ai>
Sun, 21 May 2023 07:24:13 +0000 (10:24 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 8 Jun 2023 09:35:56 +0000 (12:35 +0300)
commitfac91dd54f3b6f5dbd20c1cb26e59eceb128ca42
tree12da37ac2b8b32e17be5db273bbeccd1aab7d1a5
parent19aa21b9807ad277972f7ebe8a8dd9fbf9063bc8
accel/habanalabs: add event queue extra validation

In order to increase reliability of the event queue interface,
we apply to Gaudi2 the same mechanism we have in Gaudi1.
The extra validation is basically checking that the received
event index matches the expected index.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/irq.c
drivers/accel/habanalabs/gaudi2/gaudi2.c