]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e2e96d0361b2b6ee74809e57c6725ca030e6780
tree4cf76f9810ea3b17d3612cee7a809ee73ab1e6ce
parent38639fc3ea74d2a3b188b06a9629004463e6f822
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