lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3c2e6250-2451-41c3-a291-e7c5ae52ff62@linux.dev>
Date: Thu, 20 Nov 2025 14:44:20 -0800
From: "yanjun.zhu" <yanjun.zhu@...ux.dev>
To: Leon Romanovsky <leon@...nel.org>, Jason Gunthorpe <jgg@...pe.ca>
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
 Maher Sanalla <msanalla@...dia.com>, Michael Guralnik <michaelgur@...dia.com>
Subject: Re: [PATCH rdma-next 2/2] RDMA/mlx5: Add support for 1600_8x lane
 speed

On 11/20/25 7:15 AM, Leon Romanovsky wrote:
> From: Maher Sanalla <msanalla@...dia.com>
> 
> Add a check for 1600G_8X link speed when querying PTYS and report it
> back correctly when needed.

Amazing — 1600G is supported. I’m not sure whether this rate is 
supported only for InfiniBand or if it’s also available for RoCEv2. In 
any case, having such a high data rate is truly impressive.

Reviewed-by: Zhu Yanjun <yanjun.zhu@...ux.dev>

Zhu Yanjun

> 
> While at it, adjust mlx5 function which maps the speed rate from IB
> spec values to internal driver values to be able to handle speeds
> up to 1600Gbps.
> 
> Reviewed-by: Michael Guralnik <michaelgur@...dia.com>
> Signed-off-by: Maher Sanalla <msanalla@...dia.com>
> Signed-off-by: Leon Romanovsky <leonro@...dia.com>
> ---
>   drivers/infiniband/hw/mlx5/main.c | 4 ++++
>   drivers/infiniband/hw/mlx5/qp.c   | 5 +++--
>   2 files changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
> index 90daa58126f4..40284bbb45d6 100644
> --- a/drivers/infiniband/hw/mlx5/main.c
> +++ b/drivers/infiniband/hw/mlx5/main.c
> @@ -511,6 +511,10 @@ static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u16 *active_speed,
>   		*active_width = IB_WIDTH_4X;
>   		*active_speed = IB_SPEED_XDR;
>   		break;
> +	case MLX5E_PROT_MASK(MLX5E_1600TAUI_8_1600TBASE_CR8_KR8):
> +		*active_width = IB_WIDTH_8X;
> +		*active_speed = IB_SPEED_XDR;
> +		break;
>   	default:
>   		return -EINVAL;
>   	}
> diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
> index 88724d15705d..69af20790481 100644
> --- a/drivers/infiniband/hw/mlx5/qp.c
> +++ b/drivers/infiniband/hw/mlx5/qp.c
> @@ -3451,10 +3451,11 @@ int mlx5r_ib_rate(struct mlx5_ib_dev *dev, u8 rate)
>   {
>   	u32 stat_rate_support;
>   
> -	if (rate == IB_RATE_PORT_CURRENT || rate == IB_RATE_800_GBPS)
> +	if (rate == IB_RATE_PORT_CURRENT || rate == IB_RATE_800_GBPS ||
> +	    rate == IB_RATE_1600_GBPS)
>   		return 0;
>   
> -	if (rate < IB_RATE_2_5_GBPS || rate > IB_RATE_800_GBPS)
> +	if (rate < IB_RATE_2_5_GBPS || rate > IB_RATE_1600_GBPS)
>   		return -EINVAL;
>   
>   	stat_rate_support = MLX5_CAP_GEN(dev->mdev, stat_rate_support);
> 


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ