habanalabs/gaudi2: map virtual MSI-X doorbell memory for user
authorTomer Tayar <ttayar@habana.ai>
Thu, 30 Jun 2022 19:05:51 +0000 (22:05 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:31 +0000 (09:09 +0300)
commit168fc71857efad3e122d7b26889824844b1e7146
tree54db242091d273d42639e95c390c8e0685a4cd2b
parent3f043b3192454e430ece973a75c5b9fd9a344dd8
habanalabs/gaudi2: map virtual MSI-X doorbell memory for user

Upon the initialization of a user context, map the host memory page of
the virtual MSI-X doorbell in the device MMU.
A reserved VA is used for this purpose, so user can use it directly
without any allocation/map operation.

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/gaudi2/gaudi2.c
drivers/misc/habanalabs/include/gaudi2/gaudi2.h