]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/infiniband/hw/mlx5/devx.c
IB/mlx5: Use the correct commands for UMEM and UCTX allocation
authorYishai Hadas <yishaih@mellanox.com>
Wed, 19 Dec 2018 14:28:15 +0000 (16:28 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 20 Dec 2018 20:49:48 +0000 (13:49 -0700)
commit6e3722baac048fdf95b867c5ee7e270718e8630d
tree04ee00d4b1f213e8ef7424aaf57b6f52fc52444e
parent425518cc5ede0d7a71886816368e4bef60e418db
IB/mlx5: Use the correct commands for UMEM and UCTX allocation

During testing the command format was changed to close a security
hole. Revise the driver to use the command format that will actually be
supported in GA firmware.

Both the UMEM and UCTX are intended only for use by the kernel and cannot
be executed using a general command.

Since the UMEM and CTX are not part of the general object the caps bits
were moved to be some log_xxx location in the general HCA caps.

The firmware code was adapted as well to match the above.

Fixes: a8b92ca1b0e5 ("IB/mlx5: Introduce DEVX")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c
include/linux/mlx5/mlx5_ifc.h