kernel_samsung_a53x/drivers/infiniband
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
..
core RDMA/mad: Improve handling of timed out WRs of mad agent 2024-11-23 23:21:49 +01:00
hw RDMA/mlx5: Round max_rd_atomic/max_dest_rd_atomic up instead of down 2024-11-23 23:22:03 +01:00
sw RDMA/rxe: Fix seg fault in rxe_comp_queue_pkt 2024-11-23 23:21:50 +01:00
ulp RDMA/rtrs: Fix the problem of variable not initialized fully 2024-11-23 23:20:44 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00