habanalabs: increment ctx ref from within a cs allocation
authorOfir Bitton <obitton@habana.ai>
Sun, 3 Jan 2021 12:13:06 +0000 (14:13 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 27 Jan 2021 19:03:50 +0000 (21:03 +0200)
commit1e3f2536a8fc12d5b82164349715861ccc7968a7
tree501fbefbcf34ee074a3d67cdb690eb64205804c9
parent8563e19159b02ec26a6ec7dc7bac9766a8ac494c
habanalabs: increment ctx ref from within a cs allocation

A CS must increment the relevant context reference count.
We want to increment the reference inside the CS allocation function
as opposed for today where we increment it outside.
This is logical since we want to avoid explicitly incrementing
the context every time we call the CS allocate function.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c