habanalabs: Add mask for CS type bits in CS flags
authorTomer Tayar <ttayar@habana.ai>
Sun, 22 Nov 2020 09:02:50 +0000 (11:02 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:38 +0000 (10:47 +0200)
commit3e438b42a5fbf19e44c6c3e0481ed4b5672d8f42
treed77f36932e447397b8369da3bc9c871f202f315f
parent3b82c34f0662cc311a81b4b0e94b982db3d24a7c
habanalabs: Add mask for CS type bits in CS flags

hl_cs_sanity_checks() extracts the CS type bits of the CS flags, by
masking out the non-type bits.
To save the need for updating the function whenever new bits for
non-type flags are added, add an explicit mask for the CS type bits.

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