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)
commit31ac1f1a5712696c45ea3ebb23e60b4e7e5cb0b6
tree908b800d19d37a48c1380d0acfdbf8974cc2b4de
parent0358372bbe86705399490d82fb022aa34bdc2ee4
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