Skip to content
Commit 1242e9f0 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: check running index in eqe control



To harden the event queue mechanism, we add a running index to the
control header of the entry.

The firmware writes the index in each entry and the driver verifies
that the index of the current entry is larger by 1 of the index of
the previous entry.

In case it isn't, the driver will treat the entry as if it wasn't
valid (it won't process it but won't skip it).

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 7fb2a1f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment