]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/mlx5: Expose dynamic mmap allocation
authorYishai Hadas <yishaih@mellanox.com>
Sun, 24 Dec 2017 14:31:35 +0000 (16:31 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Dec 2017 18:37:46 +0000 (11:37 -0700)
commit4ed131d0bb1597ce12fff22d9d7fc9720a6e8cf0
tree1fa66369ee11cfd3ed87bb7dccf8e909830119e9
parent31a78a5a7983141c17852d31eb3a1f70d8161225
IB/mlx5: Expose dynamic mmap allocation

This patch exposes the option to dynamic allocates a UAR, this
functionality will be used in downstream patch in this series as
part of QP creation.

Specifically, the user space driver asks for a UAR allocation in a given
page index, upon success this UAR and its bfregs can be used as part of
QP creation by the user space driver.

To enable allocating more than 256 UARs the page index is encoded in an
extra one byte just after the command byte.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c