mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH mlx5-next] net/mlx5: Add uar access and odp page fault counters
@ 2025-09-17 13:27 Tariq Toukan
  2025-09-18  9:32 ` Leon Romanovsky
  0 siblings, 1 reply; 2+ messages in thread
From: Tariq Toukan @ 2025-09-17 13:27 UTC (permalink / raw)
  To: Saeed Mahameed, Leon Romanovsky
  Cc: Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	David S. Miller, Tariq Toukan, Mark Bloch, linux-rdma, netdev,
	linux-kernel, Gal Pressman, Dragos Tatulea, Akiva Goldberger

From: Akiva Goldberger <agoldberger@nvidia.com>

Add bar_uar_access, odp_local_triggered_page_fault, and
odp_remote_triggered_page_fault counters to the query_vnic_env command.
Additionally, add corresponding capabilities bits to the HCA CAP.

Signed-off-by: Akiva Goldberger <agoldberger@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
 include/linux/mlx5/mlx5_ifc.h | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 097b1b7ada63..0cf187e13def 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -1958,7 +1958,9 @@ struct mlx5_ifc_cmd_hca_cap_bits {
 	u8         log_max_rqt[0x5];
 	u8         reserved_at_390[0x3];
 	u8         log_max_rqt_size[0x5];
-	u8         reserved_at_398[0x3];
+	u8         reserved_at_398[0x1];
+	u8	   vnic_env_cnt_bar_uar_access[0x1];
+	u8	   vnic_env_cnt_odp_page_fault[0x1];
 	u8         log_max_tis_per_sq[0x5];
 
 	u8         ext_stride_num_range[0x1];
@@ -4019,7 +4021,13 @@ struct mlx5_ifc_vnic_diagnostic_statistics_bits {
 
 	u8         handled_pkt_steering_fail[0x40];
 
-	u8         reserved_at_360[0xc80];
+	u8         bar_uar_access[0x20];
+
+	u8         odp_local_triggered_page_fault[0x20];
+
+	u8         odp_remote_triggered_page_fault[0x20];
+
+	u8         reserved_at_3c0[0xc20];
 };
 
 struct mlx5_ifc_traffic_counter_bits {

base-commit: 2ac207381c37eebc49559634ce5642119784bc7c
-- 
2.31.1


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

* Re: [PATCH mlx5-next] net/mlx5: Add uar access and odp page fault counters
  2025-09-17 13:27 [PATCH mlx5-next] net/mlx5: Add uar access and odp page fault counters Tariq Toukan
@ 2025-09-18  9:32 ` Leon Romanovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2025-09-18  9:32 UTC (permalink / raw)
  To: Saeed Mahameed, Tariq Toukan
  Cc: Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	David S. Miller, Mark Bloch, linux-rdma, netdev, linux-kernel,
	Gal Pressman, Dragos Tatulea, Akiva Goldberger


On Wed, 17 Sep 2025 16:27:58 +0300, Tariq Toukan wrote:
> Add bar_uar_access, odp_local_triggered_page_fault, and
> odp_remote_triggered_page_fault counters to the query_vnic_env command.
> Additionally, add corresponding capabilities bits to the HCA CAP.
> 
> 

Applied, thanks!

[1/1] net/mlx5: Add uar access and odp page fault counters
      https://git.kernel.org/rdma/rdma/c/a3d076b0567e72

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


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

end of thread, other threads:[~2025-09-18  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-17 13:27 [PATCH mlx5-next] net/mlx5: Add uar access and odp page fault counters Tariq Toukan
2025-09-18  9:32 ` 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®