]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit7c2344c3bbf97eb5dfa732d5098285d15d3bf9bf
tree643402a4f2a8eb70da2a057bf2a85264b7cde146
parent28d6137008b2aa09e35750c604394e363dbfca94
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