]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Implements disassociate_ucontext API
authorMaor Gottlieb <maorg@mellanox.com>
Fri, 17 Jun 2016 11:56:44 +0000 (14:56 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 15:02:44 +0000 (11:02 -0400)
commitbde8dfb5b5e76145606cc1a052309be30173026f
tree643402a4f2a8eb70da2a057bf2a85264b7cde146
parentf2f44deaf13d77a7b0ed652c4046f35b18179bc4
IB/mlx5: Implements disassociate_ucontext API

Implements the IB core disassociate_ucontext API.
The driver detaches the HW resources for a given user context to
prevent a dependency between application termination and device
disconnect. This is done by managing the VMAs that were mapped
to the HW bars such as doorbell and blueflame. When need to detach,
remap them to an arbitrary kernel page returned by the zap API.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h