]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: check TPC vector pipe is empty
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 12 Aug 2020 08:28:13 +0000 (11:28 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:50 +0000 (18:49 +0300)
commit03a98fc03e6b3949e345383bf540dbdcc971f318
tree908b800d19d37a48c1380d0acfdbf8974cc2b4de
parent2e320dc341aa14b3a30d9d8ee5ec3b79d43f8a46
habanalabs: check TPC vector pipe is empty

The driver waits for the TPC vector pipe to be empty before checking if the
TPC kernel has finished executing, but the code doesn't validate that the
pipe was indeed empty, it just wait for it without checking the return
value.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/gaudi/gaudi.c