]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: leave space for 2xMSG_PROT in CB
authorOded Gabbay <oded.gabbay@gmail.com>
Fri, 17 Apr 2020 09:12:13 +0000 (12:12 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2020 11:48:41 +0000 (14:48 +0300)
commit39b425170d35ff0841084007423f1b82f3b3e5ac
treec99803b8d363f1542ffcb7e4c2675f9ac664e257
parent8e708af2846fd1183ce2e5690e46155ee1342d25
habanalabs: leave space for 2xMSG_PROT in CB

The user must leave space for 2xMSG_PROT in the external CB, so adjust the
define of max size accordingly. The driver, however, can still create a CB
with the maximum size of 2MB. Therefore, we need to add a check
specifically for the user requested size.

Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/command_buffer.c
include/uapi/misc/habanalabs.h