kernel_samsung_a53x/drivers/infiniband/hw/mlx5
Patrisious Haddad 5624fccb30 RDMA/mlx5: Round max_rd_atomic/max_dest_rd_atomic up instead of down
[ Upstream commit 78ed28e08e74da6265e49e19206e1bcb8b9a7f0d ]

After the cited commit below max_dest_rd_atomic and max_rd_atomic values
are being rounded down to the next power of 2. As opposed to the old
behavior and mlx4 driver where they used to be rounded up instead.

In order to stay consistent with older code and other drivers, revert to
using fls round function which rounds up to the next power of 2.

Fixes: f18e26af6aba ("RDMA/mlx5: Convert modify QP to use MLX5_SET macros")
Link: https://patch.msgid.link/r/d85515d6ef21a2fa8ef4c8293dce9b58df8a6297.1728550179.git.leon@kernel.org
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Maher Sanalla <msanalla@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:22:03 +01:00
..
ah.c
cmd.c
cmd.h
cong.c
counters.c
counters.h
cq.c
devx.c RDMA/mlx5: Relax DEVX access upon modify commands 2024-11-19 08:44:35 +01:00
devx.h
doorbell.c
fs.c
fs.h
gsi.c
ib_rep.c
ib_rep.h
ib_virt.c
Kconfig
mad.c RDMA/mlx5: Fix port number for counter query in multi-port configuration 2024-11-19 11:32:21 +01:00
main.c
Makefile
mem.c
mlx5_ib.h
mr.c
odp.c
qos.c
qp.c RDMA/mlx5: Round max_rd_atomic/max_dest_rd_atomic up instead of down 2024-11-23 23:22:03 +01:00
qp.h
qpc.c
restrack.c
restrack.h
srq.c RDMA/mlx5: Add check for srq max_sge attribute 2024-11-19 14:19:09 +01:00
srq.h
srq_cmd.c
std_types.c
wr.c
wr.h