linux_dsm_epyc7002/drivers/infiniband/hw
Jason Gunthorpe 5eb29f0d13 RDMA/mlx5: Make mkeys always owned by the kernel's PD when not enabled
Any mkey that is not enabled and assigned to userspace should have the PD
set to a kernel owned PD.

When cache entries are created for the first time the PDN is set to 0,
which is probably a kernel PD, but be explicit.

When a MR is registered using the hybrid reg_create with UMR xlt & enable
the disabled mkey is pointing at the user PD, keep it pointing at the
kernel until a UMR enables it and sets the user PD.

Fixes: 9ec4483a3f ("IB/mlx5: Move MRs to a kernel PD when freeing them to the MR cache")
Link: https://lore.kernel.org/r/20200914112653.345244-4-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-09-18 13:02:43 -03:00
..
bnxt_re Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
cxgb4 RDMA/iw_cxgb4: Disable delayed ack by default 2020-09-18 11:29:37 -03:00
efa RDMA/efa: Use ib_umem_num_dma_pages() 2020-09-11 10:24:53 -03:00
hfi1 Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
hns RDMA/hns: Set the unsupported wr opcode 2020-09-18 12:52:58 -03:00
i40iw RDMA/i40iw: Avoid typecast from void to pci_dev 2020-09-16 13:40:29 -03:00
mlx4 Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
mlx5 RDMA/mlx5: Make mkeys always owned by the kernel's PD when not enabled 2020-09-18 13:02:43 -03:00
mthca RDMA/umem: Split ib_umem_num_pages() into ib_umem_num_dma_blocks() 2020-09-11 10:24:53 -03:00
ocrdma Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
qedr RDMA/qedr: Fix resource leak in qedr_create_qp 2020-09-18 12:45:41 -03:00
qib Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
usnic RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00
vmw_pvrdma Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00