* [PATCH rdma-next 0/2] Extra patches with NDR support
@ 2020-10-26 13:37 Leon Romanovsky
2020-10-26 13:37 ` [PATCH rdma-next 1/2] IB/core: Add support for NDR link speed Leon Romanovsky
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Leon Romanovsky @ 2020-10-26 13:37 UTC (permalink / raw)
To: Doug Ledford, Jason Gunthorpe
Cc: Leon Romanovsky, linux-kernel, linux-rdma, Meir Lichtinger
From: Leon Romanovsky <leonro@nvidia.com>
Addition to the IPoIB patches https://lore.kernel.org/linux-rdma/20201026132904.1338526-1-leon@kernel.org/T/#u
Thanks
Meir Lichtinger (2):
IB/core: Add support for NDR link speed
IB/mlx5: Add support for NDR link speed
drivers/infiniband/core/sysfs.c | 4 ++++
drivers/infiniband/hw/mlx5/main.c | 12 ++++++++++++
2 files changed, 16 insertions(+)
--
2.26.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH rdma-next 1/2] IB/core: Add support for NDR link speed
2020-10-26 13:37 [PATCH rdma-next 0/2] Extra patches with NDR support Leon Romanovsky
@ 2020-10-26 13:37 ` Leon Romanovsky
2020-10-26 13:37 ` [PATCH rdma-next 2/2] IB/mlx5: " Leon Romanovsky
2020-11-02 19:50 ` [PATCH rdma-next 0/2] Extra patches with NDR support Jason Gunthorpe
2 siblings, 0 replies; 4+ messages in thread
From: Leon Romanovsky @ 2020-10-26 13:37 UTC (permalink / raw)
To: Doug Ledford, Jason Gunthorpe; +Cc: Meir Lichtinger, linux-rdma
From: Meir Lichtinger <meirl@mellanox.com>
Add new IBTA speed NDR, supporting signaling rate of 100Gb.
Signed-off-by: Meir Lichtinger <meirl@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
drivers/infiniband/core/sysfs.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c
index 914cddea525d..2f032e79f36f 100644
--- a/drivers/infiniband/core/sysfs.c
+++ b/drivers/infiniband/core/sysfs.c
@@ -273,6 +273,10 @@ static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused,
speed = " HDR";
rate = 500;
break;
+ case IB_SPEED_NDR:
+ speed = " NDR";
+ rate = 1000;
+ break;
case IB_SPEED_SDR:
default: /* default to SDR for invalid rates */
speed = " SDR";
--
2.26.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH rdma-next 2/2] IB/mlx5: Add support for NDR link speed
2020-10-26 13:37 [PATCH rdma-next 0/2] Extra patches with NDR support Leon Romanovsky
2020-10-26 13:37 ` [PATCH rdma-next 1/2] IB/core: Add support for NDR link speed Leon Romanovsky
@ 2020-10-26 13:37 ` Leon Romanovsky
2020-11-02 19:50 ` [PATCH rdma-next 0/2] Extra patches with NDR support Jason Gunthorpe
2 siblings, 0 replies; 4+ messages in thread
From: Leon Romanovsky @ 2020-10-26 13:37 UTC (permalink / raw)
To: Doug Ledford, Jason Gunthorpe; +Cc: Meir Lichtinger, linux-rdma
From: Meir Lichtinger <meirl@mellanox.com>
The IBTA specification has new speed - NDR. That speed supports signaling
rate of 100Gb. mlx5 IB driver translates link modes reported by ConnectX
device to IB speed and width. Added translation of new 100Gb, 200Gb and
400Gb link modes to NDR IB type and width of x1, x2 or x4 respectively.
Signed-off-by: Meir Lichtinger <meirl@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
drivers/infiniband/hw/mlx5/main.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index bcee10c9d9a8..2dbd879bf841 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -419,10 +419,22 @@ static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u16 *active_speed,
*active_width = IB_WIDTH_2X;
*active_speed = IB_SPEED_HDR;
break;
+ case MLX5E_PROT_MASK(MLX5E_100GAUI_1_100GBASE_CR_KR):
+ *active_width = IB_WIDTH_1X;
+ *active_speed = IB_SPEED_NDR;
+ break;
case MLX5E_PROT_MASK(MLX5E_200GAUI_4_200GBASE_CR4_KR4):
*active_width = IB_WIDTH_4X;
*active_speed = IB_SPEED_HDR;
break;
+ case MLX5E_PROT_MASK(MLX5E_200GAUI_2_200GBASE_CR2_KR2):
+ *active_width = IB_WIDTH_2X;
+ *active_speed = IB_SPEED_NDR;
+ break;
+ case MLX5E_PROT_MASK(MLX5E_400GAUI_4_400GBASE_CR4_KR4):
+ *active_width = IB_WIDTH_4X;
+ *active_speed = IB_SPEED_NDR;
+ break;
default:
return -EINVAL;
}
--
2.26.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH rdma-next 0/2] Extra patches with NDR support
2020-10-26 13:37 [PATCH rdma-next 0/2] Extra patches with NDR support Leon Romanovsky
2020-10-26 13:37 ` [PATCH rdma-next 1/2] IB/core: Add support for NDR link speed Leon Romanovsky
2020-10-26 13:37 ` [PATCH rdma-next 2/2] IB/mlx5: " Leon Romanovsky
@ 2020-11-02 19:50 ` Jason Gunthorpe
2 siblings, 0 replies; 4+ messages in thread
From: Jason Gunthorpe @ 2020-11-02 19:50 UTC (permalink / raw)
To: Leon Romanovsky
Cc: Doug Ledford, Leon Romanovsky, linux-kernel, linux-rdma, Meir Lichtinger
On Mon, Oct 26, 2020 at 03:37:36PM +0200, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@nvidia.com>
>
> Addition to the IPoIB patches https://lore.kernel.org/linux-rdma/20201026132904.1338526-1-leon@kernel.org/T/#u
>
> Thanks
>
> Meir Lichtinger (2):
> IB/core: Add support for NDR link speed
> IB/mlx5: Add support for NDR link speed
Applied to for-next, thanks
Jason
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-02 19:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-26 13:37 [PATCH rdma-next 0/2] Extra patches with NDR support Leon Romanovsky
2020-10-26 13:37 ` [PATCH rdma-next 1/2] IB/core: Add support for NDR link speed Leon Romanovsky
2020-10-26 13:37 ` [PATCH rdma-next 2/2] IB/mlx5: " Leon Romanovsky
2020-11-02 19:50 ` [PATCH rdma-next 0/2] Extra patches with NDR support Jason Gunthorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).