habanalabs: no consecutive err when user context is enabled
authorTal Cohen <talcohen@habana.ai>
Tue, 18 Oct 2022 14:35:06 +0000 (17:35 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 23 Nov 2022 14:13:44 +0000 (16:13 +0200)
commit4a9c6e2cdf2b4128f5204b9cf14e3a788a8511df
tree0b050951b6e4f3ba10abb15455717b531079dd43
parent1b363adc7fbe37c4b6c18864c1f7043d85b4af6e
habanalabs: no consecutive err when user context is enabled

Consecutive error protects a device reset loop from being triggered
due to h/w issues and enters the device into an unavailable state.
When user may cause the error, an unavailable state
will prevent the user from running its workloads.

The commit prevents entering consecutive state when a user context
is enabled.

Signed-off-by: Tal Cohen <talcohen@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c