diff options
author | Dani Liberman <dliberman@habana.ai> | 2021-10-12 12:30:27 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-10-18 11:05:48 +0200 |
commit | b2faac3887df87a6e4bc3356280ea35dc7459c0b (patch) | |
tree | 26feb29bd95d743c3ce874057fb2ed4809b91931 /ipc | |
parent | habanalabs: context cleanup cosmetics (diff) | |
download | linux-b2faac3887df87a6e4bc3356280ea35dc7459c0b.tar.xz linux-b2faac3887df87a6e4bc3356280ea35dc7459c0b.zip |
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>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions