Dani Liberman b2faac3887 habanalabs: refactor fence handling in hl_cs_poll_fences
To avoid checking if fence exists multipled times, changed fence
handling to depend only on the fence status field:

Busy, which means CS still did not completed :
	Add its QID so multi CS wait on its completion.
Finished, which means CS completed and fence exists:
	Raise its completion bit if it finished mcs handling and
	update if necessary the earliest timestamp.
Gone, which means CS already completed and fence deleted:
	Update multi CS data to ignore timestamp and raise its
	completion bit.

Signed-off-by: Dani Liberman <dliberman@habana.ai>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2021-10-18 12:05:48 +03:00
..
2021-05-14 13:43:26 +02:00
2021-09-27 15:39:40 +02:00
2021-10-18 09:29:27 +02:00
2021-05-13 17:03:20 +02:00
2021-10-18 09:29:27 +02:00
2021-10-05 15:47:18 +02:00
2021-03-02 22:41:23 +11:00
2021-05-21 15:05:08 +02:00
2021-09-07 19:13:42 -07:00