opnsense-src/sys/dev/mlx5/mlx5_ib
Hans Petter Selasky 565cb4e8cc mlx5ib: Limit mkey page size to 2GB
The maximum page size in the mkey context is 2GB.

Until today, we didn't enforce this requirement in the code, and therefore,
if we got a page size larger than 2GB, we have passed zeros in the
log_page_shift instead of the actual value and the registration failed.

This patch limits the driver to use compound pages of 2GB for mkeys.

Linux commit:
762f899ae7875554284af92b821be8c083227092

MFC after:	1 week
Reviewed by:	kib
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2021-07-12 14:22:29 +02:00
..
mlx5_ib.h mlx5ib: Limit mkey page size to 2GB 2021-07-12 14:22:29 +02:00
mlx5_ib_ah.c Optimize ibcore RoCE address handle creation from user-space. 2018-03-05 14:34:52 +00:00
mlx5_ib_cong.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
mlx5_ib_cq.c mlx5ib: Limit mkey page size to 2GB 2021-07-12 14:22:29 +02:00
mlx5_ib_doorbell.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00
mlx5_ib_gsi.c Update user access region, UAR, APIs in the core in mlx5core. 2021-01-08 13:33:46 +01:00
mlx5_ib_mad.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00
mlx5_ib_main.c mlx5ib: Support RAW Ethernet when RoCE is disabled in mlx5ib(4) 2021-07-12 14:22:29 +02:00
mlx5_ib_mem.c mlx5ib: Limit mkey page size to 2GB 2021-07-12 14:22:29 +02:00
mlx5_ib_mr.c mlx5ib: Limit mkey page size to 2GB 2021-07-12 14:22:29 +02:00
mlx5_ib_qp.c mlx5ib: Limit mkey page size to 2GB 2021-07-12 14:22:29 +02:00
mlx5_ib_srq.c mlx5ib: Limit mkey page size to 2GB 2021-07-12 14:22:29 +02:00
mlx5_ib_virt.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00