habanalabs: allow fail on inability to respect hint
authorYuri Nudelman <ynudelman@habana.ai>
Thu, 3 Jun 2021 14:51:58 +0000 (17:51 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 29 Aug 2021 06:47:44 +0000 (09:47 +0300)
commit486e19795f2ee11f0334e2e3fcf8951d4981ff88
tree535891f7368c670b36fd9f3d94e3d4d57e76dcf6
parent1ae32b9094984efa39ca6d22d4106963458dfd20
habanalabs: allow fail on inability to respect hint

A new user flag is required to make memory map hint mandatory, in
contrast to the current situation where it is best effort.
This is due to the requirement to map certain data to specific
pre-determined device virtual address ranges.

Signed-off-by: Yuri Nudelman <ynudelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/memory.c
include/uapi/misc/habanalabs.h