Yishai Hadas
b4592b8383
IB/mlx5: Block DEVX umem from the non applicable cases
[ Upstream commit 47f07f03b5 ]
Blocks creating a DEVX UMEM with the non applicable access flags
as of ODP, MW_BIND, etc.
Specifically when an ODP flag is used below WARN call trace is issued.
[ 2510.404131] RIP: 0010:__mlx5_ib_populate_pas+0x207/0x220 [mlx5_ib]
...
[ 2510.404143] Call Trace:
[ 2510.404150] ? __kmalloc_node+0x1b3/0x280
[ 2510.404156] ? _uverbs_alloc+0x63/0x90 [ib_uverbs]
[ 2510.404158] ? _uverbs_alloc+0x63/0x90 [ib_uverbs]
[ 2510.404162] mlx5_ib_populate_pas+0x53/0x60 [mlx5_ib]
[ 2510.404167] mlx5_ib_handler_MLX5_IB_METHOD_DEVX_UMEM_REG+0x273/0x3f0 [mlx5_ib]
Fixes: aeae94579c ("IB/mlx5: Add DEVX support for memory registration")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-01-13 09:50:56 +01:00
..
2018-12-21 14:15:23 +01:00
2018-12-05 19:32:11 +01:00
2018-12-21 14:15:20 +01:00
2018-08-18 11:04:51 -07:00
2019-01-09 17:38:42 +01:00
2018-12-01 09:37:32 +01:00
2018-11-13 11:08:25 -08:00
2018-08-28 09:58:03 -07:00
2018-11-21 09:19:12 +01:00
2019-01-09 17:38:49 +01:00
2019-01-09 17:38:44 +01:00
2019-01-09 17:38:42 +01:00
2018-12-13 09:16:13 +01:00
2018-11-21 09:19:23 +01:00
2019-01-09 17:38:44 +01:00
2018-09-22 09:07:33 -07:00
2018-08-18 11:04:51 -07:00
2018-12-13 09:16:20 +01:00
2018-11-13 11:08:44 -08:00
2018-08-17 16:20:27 -07:00
2018-12-01 09:37:33 +01:00
2018-09-30 08:49:55 -07:00
2018-12-17 09:24:35 +01:00
2018-12-13 09:16:22 +01:00
2018-12-29 13:37:56 +01:00
2019-01-09 17:38:42 +01:00
2019-01-13 09:50:56 +01:00
2018-12-29 13:37:56 +01:00
2018-12-17 09:24:33 +01:00
2018-11-13 11:08:36 -08:00
2018-12-21 14:15:24 +01:00
2018-12-21 14:15:18 +01:00
2018-12-05 19:32:13 +01:00
2019-01-13 09:50:56 +01:00
2019-01-09 17:38:41 +01:00
2019-01-09 17:38:49 +01:00
2018-11-13 11:08:34 -08:00
2019-01-09 17:38:31 +01:00
2018-08-06 23:03:12 +02:00
2018-11-13 11:08:21 -08:00
2018-08-24 14:42:42 +02:00
2018-11-13 11:08:18 -08:00
2018-12-19 19:19:53 +01:00
2019-01-09 17:38:47 +01:00
2018-09-06 10:04:07 -07:00
2018-12-13 09:16:17 +01:00
2019-01-09 17:38:43 +01:00
2018-12-29 13:37:56 +01:00
2019-01-09 17:38:37 +01:00
2018-10-12 17:36:39 +02:00
2019-01-09 17:38:46 +01:00
2018-11-13 11:08:48 -08:00
2018-12-13 09:16:22 +01:00
2018-12-21 14:15:25 +01:00
2018-11-13 11:08:35 -08:00
2018-11-27 16:13:05 +01:00
2018-12-01 09:37:27 +01:00
2018-08-18 11:04:51 -07:00
2018-12-17 09:24:33 +01:00
2018-11-13 11:08:17 -08:00
2018-10-12 15:25:17 +01:00
2018-12-17 09:24:34 +01:00
2019-01-13 09:50:54 +01:00
2018-11-27 16:13:00 +01:00
2018-11-13 11:08:51 -08:00
2018-10-17 22:00:22 -07:00
2018-08-20 11:36:07 +02:00
2018-08-22 10:52:51 -07:00
2018-09-20 09:04:51 -07:00
2018-11-13 11:08:52 -08:00
2018-08-25 14:12:36 -07:00
2018-11-13 11:08:55 -08:00
2019-01-09 17:38:48 +01:00
2018-12-17 09:24:31 +01:00
2018-12-21 14:15:17 +01:00
2018-12-29 13:37:55 +01:00
2018-12-19 19:19:49 +01:00
2018-11-21 09:19:18 +01:00
2018-08-27 09:49:48 +05:30
2019-01-09 17:38:49 +01:00
2018-08-09 18:47:47 +03:00
2019-01-09 17:38:40 +01:00
2018-11-13 11:08:42 -08:00
2018-11-13 11:08:51 -08:00
2018-08-23 13:52:46 -07:00
2018-12-21 14:15:22 +01:00
2018-12-17 09:24:36 +01:00
2019-01-09 17:38:46 +01:00
2018-11-27 16:13:09 +01:00
2019-01-09 17:38:45 +01:00
2018-08-17 11:32:50 -07:00
2019-01-09 17:38:34 +01:00
2018-11-21 09:19:17 +01:00
2018-08-24 08:45:19 -07:00
2018-11-13 11:08:48 -08:00
2018-08-22 17:31:34 -07:00
2018-12-17 09:24:39 +01:00
2018-08-18 11:04:51 -07:00