mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH mlx5-next 0/2] mlx5-next updates 2026-05-29
@ 2026-05-29  5:23 Tariq Toukan
  2026-05-29  5:23 ` [PATCH mlx5-next 1/2] net/mlx5: Update IFC allowed_list_size field bits Tariq Toukan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tariq Toukan @ 2026-05-29  5:23 UTC (permalink / raw)
  To: Leon Romanovsky, Jason Gunthorpe, Saeed Mahameed, Tariq Toukan
  Cc: Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	David S. Miller, Mark Bloch, netdev, linux-rdma, linux-kernel,
	Gal Pressman, Dragos Tatulea, Moshe Shemesh

Hi,

This series contains mlx5 shared updates.

Regards,
Tariq

Dragos Tatulea (1):
  net/mlx5: Update IFC allowed_list_size field bits

Shay Drory (1):
  net/mlx5: Add sd_group_size bits for SD management

 include/linux/mlx5/mlx5_ifc.h | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)


base-commit: 02c54621e81ccdc1907e2d735bcda751f2caade1
-- 
2.44.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH mlx5-next 1/2] net/mlx5: Update IFC allowed_list_size field bits
  2026-05-29  5:23 [PATCH mlx5-next 0/2] mlx5-next updates 2026-05-29 Tariq Toukan
@ 2026-05-29  5:23 ` Tariq Toukan
  2026-05-29  5:23 ` [PATCH mlx5-next 2/2] net/mlx5: Add sd_group_size bits for SD management Tariq Toukan
  2026-06-07 10:10 ` [PATCH mlx5-next 0/2] mlx5-next updates 2026-05-29 Leon Romanovsky
  2 siblings, 0 replies; 4+ messages in thread
From: Tariq Toukan @ 2026-05-29  5:23 UTC (permalink / raw)
  To: Leon Romanovsky, Jason Gunthorpe, Saeed Mahameed, Tariq Toukan
  Cc: Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	David S. Miller, Mark Bloch, netdev, linux-rdma, linux-kernel,
	Gal Pressman, Dragos Tatulea, Moshe Shemesh, Cosmin Ratiu

From: Dragos Tatulea <dtatulea@nvidia.com>

The vport context allowed_list_size was increased from 12 to 16 bits.

Writing to this field is protected by the log_max_current_uc/mc_list
capabilities. On older FW versions these capabilities are limited
to < 2K and only the high bits of the field are extended. This means
that the change is backward compatible with older FW versions.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
 include/linux/mlx5/mlx5_ifc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 6a675f918c40..d23332cdd9b3 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -4487,8 +4487,8 @@ struct mlx5_ifc_nic_vport_context_bits {
 	u8         promisc_all[0x1];
 	u8         reserved_at_783[0x2];
 	u8         allowed_list_type[0x3];
-	u8         reserved_at_788[0xc];
-	u8         allowed_list_size[0xc];
+	u8         reserved_at_788[0x8];
+	u8         allowed_list_size[0x10];
 
 	struct mlx5_ifc_mac_address_layout_bits permanent_address;
 
-- 
2.44.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH mlx5-next 2/2] net/mlx5: Add sd_group_size bits for SD management
  2026-05-29  5:23 [PATCH mlx5-next 0/2] mlx5-next updates 2026-05-29 Tariq Toukan
  2026-05-29  5:23 ` [PATCH mlx5-next 1/2] net/mlx5: Update IFC allowed_list_size field bits Tariq Toukan
@ 2026-05-29  5:23 ` Tariq Toukan
  2026-06-07 10:10 ` [PATCH mlx5-next 0/2] mlx5-next updates 2026-05-29 Leon Romanovsky
  2 siblings, 0 replies; 4+ messages in thread
From: Tariq Toukan @ 2026-05-29  5:23 UTC (permalink / raw)
  To: Leon Romanovsky, Jason Gunthorpe, Saeed Mahameed, Tariq Toukan
  Cc: Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	David S. Miller, Mark Bloch, netdev, linux-rdma, linux-kernel,
	Gal Pressman, Dragos Tatulea, Moshe Shemesh, Shay Drory

From: Shay Drory <shayd@nvidia.com>

Currently, mlx5 is querying the MPIR register to get the number of PFs
that should comprise the SD group.
However, this register does not reflect the correct number in complex
deployments. Hence, add an sd_group_size field to nic_vport_context to
determine the correct number of PFs, and add an sd_group_size capability
bit to indicate whether FW supports it.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
 include/linux/mlx5/mlx5_ifc.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index d23332cdd9b3..4f59b7e8a3d5 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -1986,7 +1986,8 @@ struct mlx5_ifc_cmd_hca_cap_bits {
 	u8         basic_cyclic_rcv_wqe[0x1];
 	u8         reserved_at_381[0x2];
 	u8         log_max_rmp[0x5];
-	u8         reserved_at_388[0x3];
+	u8         sd_group_size[0x1];
+	u8         reserved_at_389[0x2];
 	u8         log_max_rqt[0x5];
 	u8         reserved_at_390[0x3];
 	u8         log_max_rqt_size[0x5];
@@ -4469,7 +4470,9 @@ struct mlx5_ifc_nic_vport_context_bits {
 
 	u8	   reserved_at_100[0x1];
 	u8         sd_group[0x3];
-	u8	   reserved_at_104[0x1c];
+	u8	   reserved_at_104[0x4];
+	u8	   sd_group_size[0x8];
+	u8	   reserved_at_110[0x10];
 
 	u8	   reserved_at_120[0x10];
 	u8         mtu[0x10];
-- 
2.44.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH mlx5-next 0/2] mlx5-next updates 2026-05-29
  2026-05-29  5:23 [PATCH mlx5-next 0/2] mlx5-next updates 2026-05-29 Tariq Toukan
  2026-05-29  5:23 ` [PATCH mlx5-next 1/2] net/mlx5: Update IFC allowed_list_size field bits Tariq Toukan
  2026-05-29  5:23 ` [PATCH mlx5-next 2/2] net/mlx5: Add sd_group_size bits for SD management Tariq Toukan
@ 2026-06-07 10:10 ` Leon Romanovsky
  2 siblings, 0 replies; 4+ messages in thread
From: Leon Romanovsky @ 2026-06-07 10:10 UTC (permalink / raw)
  To: Jason Gunthorpe, Saeed Mahameed, Tariq Toukan
  Cc: Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	David S. Miller, Mark Bloch, netdev, linux-rdma, linux-kernel,
	Gal Pressman, Dragos Tatulea, Moshe Shemesh


On Fri, 29 May 2026 08:23:57 +0300, Tariq Toukan wrote:
> This series contains mlx5 shared updates.
> 
> Regards,
> Tariq
> 
> Dragos Tatulea (1):
>   net/mlx5: Update IFC allowed_list_size field bits
> 
> [...]

Applied, thanks!

[1/2] net/mlx5: Update IFC allowed_list_size field bits
      https://git.kernel.org/rdma/rdma/c/cc71b7f32f0ba8
[2/2] net/mlx5: Add sd_group_size bits for SD management
      https://git.kernel.org/rdma/rdma/c/ddbddbf8aee54b

Best regards,
-- 
Leon Romanovsky <leon@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-06-07 10:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-29  5:23 [PATCH mlx5-next 0/2] mlx5-next updates 2026-05-29 Tariq Toukan
2026-05-29  5:23 ` [PATCH mlx5-next 1/2] net/mlx5: Update IFC allowed_list_size field bits Tariq Toukan
2026-05-29  5:23 ` [PATCH mlx5-next 2/2] net/mlx5: Add sd_group_size bits for SD management Tariq Toukan
2026-06-07 10:10 ` [PATCH mlx5-next 0/2] mlx5-next updates 2026-05-29 Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®