habanalabs/gaudi: restore user registers when context opens
authorOded Gabbay <ogabbay@kernel.org>
Tue, 3 Aug 2021 05:13:39 +0000 (08:13 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 1 Sep 2021 15:38:24 +0000 (18:38 +0300)
commit929cbab5b3c8be3038b95e7443adbe23c223d8dc
tree21ef1c48e846b1d09c55157356cf37c17946ee79
parent60d86e74df306795e97f7404ccaf89ec1019448c
habanalabs/gaudi: restore user registers when context opens

Because we don't have multiple contexts in GAUDI, and to minimize
calls to is_idle function (which uses many register reads), move
the call to clear the user registers to the opening of the single
user context.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c