linux/drivers/infiniband
Majd Dibbiny 9d5202582e IB/mlx5: Fix cached MR allocation flow
commit 4c25b7a390 upstream.

When we have a miss in one order of the mkey cache, we try to get
an mkey from a higher order.

We still need to check that the higher order can be used with UMR
before using it. Otherwise, we will get an mkey with 0 entries and
the post send operation that is used to fill it will complete with
the following error:

mlx5_0:dump_cqe:275:(pid 0): dump error cqe
00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00000000 0f007806 25000025 49ce59d2

Fixes: 49780d42df ("IB/mlx5: Expose MR cache for mlx5_ib")
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-09-27 14:43:11 +02:00
..
core IB/umem: update to new mmu_notifier semantic 2017-08-31 16:12:59 -07:00
hw IB/mlx5: Fix cached MR allocation flow 2017-09-27 14:43:11 +02:00
sw rxe: fix broken receive queue draining 2017-07-20 11:20:50 -04:00
ulp IB/ipoib: Notify on modify QP failure only when relevant 2017-07-23 10:52:00 +03:00
Kconfig IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev 2017-04-20 12:01:38 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00