2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-30 16:13:54 +08:00
linux-next/drivers/infiniband
Jason Gunthorpe b045db62f6 RDMA/mlx5: Use ib_umem_find_best_pgoff() for SRQ
SRQ uses a quantized and scaled page_offset, which is another variation of
ib_umem_find_best_pgsz(). Add mlx5_umem_find_best_quantized_pgoff() to
perform this calculation for each mailbox. A macro shows how the
calculation is directly connected to the mailbox format.

This new routine replaces the limited mlx5_ib_cont_pages() and
mlx5_ib_get_buf_offset() pairing which would reject valid configurations
rather than adjust the page_size to make it work.

In turn this is much more aggressive about choosing large page sizes for
these objects and when THP is enabled it will now often find a single page
solution.

Link: https://lore.kernel.org/r/20201115114311.136250-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-11-16 16:53:29 -04:00
..
core RDMA/efa: Remove .create_ah callback assignment 2020-11-16 16:50:30 -04:00
hw RDMA/mlx5: Use ib_umem_find_best_pgoff() for SRQ 2020-11-16 16:53:29 -04:00
sw RDMA/rxe: Remove VLAN code leftovers from RXE 2020-11-12 11:38:27 -04:00
ulp IB/isert: Do not excplicitly check == false for bool 2020-11-12 12:01:37 -04:00
Kconfig IB/core: Improve ODP to use hmm_range_fault() 2020-10-01 16:39:54 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00