Skip to content
Commit 5d23f9a9 authored by Oded Gabbay's avatar Oded Gabbay Committed by Paul Gortmaker
Browse files

habanalabs: rate limit error msg on waiting for CS



commit 018e0e35 upstream.

In case a user submits a CS, and the submission fails, and the user doesn't
check the return value and instead use the error return value as a valid
sequence number of a CS and ask to wait on it, the driver will print an
error and return an error code for that wait.

The real problem happens if now the user ignores the error of the wait, and
try to wait again and again. This can lead to a flood of error messages
from the driver and even soft lockup event.

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: default avatarTomer Tayar <ttayar@habana.ai>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent c2e242b2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment