habanalabs: fail collective wait when not supported
authorOfir Bitton <obitton@habana.ai>
Thu, 2 Sep 2021 06:47:53 +0000 (09:47 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 14 Sep 2021 12:00:04 +0000 (15:00 +0300)
commitd09ff62c820b5950ab9958e77620a8498efe9386
tree4cf76f9810ea3b17d3612cee7a809ee73ab1e6ce
parent3e08f157c2587fc7ada93abed41aae19bcbf8a6b
habanalabs: fail collective wait when not supported

As collective wait operation is required only when NIC ports are
available, we disable the option to submit a CS in case all the ports
are disabled, which is the current situation in the upstream driver.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c