IB/mlx5: Move to fully dynamic UAR mode once user space supports it
authorYishai Hadas <yishaih@mellanox.com>
Tue, 24 Mar 2020 06:01:43 +0000 (08:01 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 27 Mar 2020 15:59:05 +0000 (12:59 -0300)
commit0a2fd01c28ae490a639a32a52b81fb2df48b92a0
tree6aef7684363833f4f5246727bcc1ff8fb7537dd4
parent2152862298fbfd237d37c231dfca8ae8f3ed0e48
IB/mlx5: Move to fully dynamic UAR mode once user space supports it

Move to fully dynamic UAR mode once user space supports it.  In this case
we prevent any legacy mode of UARs on the allocated context and prevent
redundant allocation of the static ones.

Link: https://lore.kernel.org/r/20200324060143.1569116-6-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
include/uapi/rdma/mlx5-abi.h