]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: wait again for multi-CS if no CS completed
authorOhad Sharabi <osharabi@habana.ai>
Wed, 1 Dec 2021 08:52:27 +0000 (10:52 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:08 +0000 (08:59 +0200)
commit13325bafea1d1436a6f5e45fe61f5c692e55612e
treee03c857ed28953f253d9104b3dd390fde1b65054
parent641495ab7312877445045e1a397cee0987ec6c72
habanalabs: wait again for multi-CS if no CS completed

The original multi-CS design assumption that stream masters are used
exclusively (i.e. multi-CS with set of stream master QIDs will not get
completed by CS not from the multi-CS set) is inaccurate.

Thus multi-CS behavior is now modified not to treat such case as an
error.

Instead, if we have multi-CS completion but we detect that no CS from
the list is actually completed we will do another multi-CS wait (with
modified timeout).

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Dani Liberman <dliberman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c
drivers/misc/habanalabs/common/habanalabs.h