habanalabs/gaudi: clear QM errors only if not in stop_on_err mode
authorTomer Tayar <ttayar@habana.ai>
Tue, 6 Apr 2021 10:32:20 +0000 (13:32 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 9 Apr 2021 11:09:24 +0000 (14:09 +0300)
commit1b4971573fde0c4d4ed7de70c3a9cfd08330a541
tree26c94446ac4b114a657512ffd2efb144ddfd1913
parent7d21114b03618a1b528804a631098b471eac6481
habanalabs/gaudi: clear QM errors only if not in stop_on_err mode

Clearing QM errors by the driver will prevent these H/W blocks from
stopping in case they are configured to stop on errors, so perform this
clearing only if this mode is not in use.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c