]> 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)
commit1c0aa7b70b5c1d4e72aed5c2982b4c9320db2218
treec99803b8d363f1542ffcb7e4c2675f9ac664e257
parent24ab006dad29f136bd6cfdd70265260a53ca6e74
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