netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Saeed Mahameed <saeedm@mellanox.com>
To: "David S. Miller" <davem@davemloft.net>,
	Doug Ledford <dledford@redhat.com>
Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
	Or Gerlitz <ogerlitz@mellanox.com>,
	Leon Romanovsky <leonro@mellanox.com>,
	Tal Alon <talal@mellanox.com>, Matan Barak <matanb@mellanox.com>,
	Saeed Mahameed <saeedm@mellanox.com>,
	Huy Nguyen <huyn@mellanox.com>, Leon Romanovsky <leon@kernel.org>
Subject: [PATCH for-next 10/14] net/mlx5: Set driver version infrastructure
Date: Tue, 25 Oct 2016 18:00:13 +0300	[thread overview]
Message-ID: <1477407617-20745-11-git-send-email-saeedm@mellanox.com> (raw)
In-Reply-To: <1477407617-20745-1-git-send-email-saeedm@mellanox.com>

Add driver_version capability bit is enabled, and set driver
version command in mlx5_ifc firmware header.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
---
 include/linux/mlx5/mlx5_ifc.h | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 5289b27..f46fe4a 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -83,6 +83,7 @@ enum {
 	MLX5_CMD_OP_SET_HCA_CAP                   = 0x109,
 	MLX5_CMD_OP_QUERY_ISSI                    = 0x10a,
 	MLX5_CMD_OP_SET_ISSI                      = 0x10b,
+	MLX5_CMD_OP_SET_DRIVER_VERSION            = 0x10d,
 	MLX5_CMD_OP_CREATE_MKEY                   = 0x200,
 	MLX5_CMD_OP_QUERY_MKEY                    = 0x201,
 	MLX5_CMD_OP_DESTROY_MKEY                  = 0x202,
@@ -891,7 +892,7 @@ struct mlx5_ifc_cmd_hca_cap_bits {
 	u8         log_pg_sz[0x8];
 
 	u8         bf[0x1];
-	u8         reserved_at_261[0x1];
+	u8         driver_version[0x1];
 	u8         pad_tx_eth_packet[0x1];
 	u8         reserved_at_263[0x8];
 	u8         log_bf_reg_size[0x5];
@@ -4029,6 +4030,25 @@ struct mlx5_ifc_query_issi_in_bits {
 	u8         reserved_at_40[0x40];
 };
 
+struct mlx5_ifc_set_driver_version_out_bits {
+	u8         status[0x8];
+	u8         reserved_0[0x18];
+
+	u8         syndrome[0x20];
+	u8         reserved_1[0x40];
+};
+
+struct mlx5_ifc_set_driver_version_in_bits {
+	u8         opcode[0x10];
+	u8         reserved_0[0x10];
+
+	u8         reserved_1[0x10];
+	u8         op_mod[0x10];
+
+	u8         reserved_2[0x40];
+	u8         driver_version[64][0x8];
+};
+
 struct mlx5_ifc_query_hca_vport_pkey_out_bits {
 	u8         status[0x8];
 	u8         reserved_at_8[0x18];
-- 
2.7.4

  parent reply	other threads:[~2016-10-25 15:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25 15:00 [PATCH for-next 00/14][PULL request] Mellanox mlx5 core driver updates 2016-10-25 Saeed Mahameed
2016-10-25 15:00 ` [PATCH for-next 01/14] net/mlx5: Report multi packet WQE capabilities Saeed Mahameed
2016-10-25 15:00 ` [PATCH for-next 02/14] net/mlx5: Update struct mlx5_ifc_xrqc_bits Saeed Mahameed
2016-10-25 15:00 ` [PATCH for-next 04/14] net/mlx5: Add KSM support Saeed Mahameed
2016-10-25 15:00 ` [PATCH for-next 06/14] net/mlx5: Fix length of async_event_mask Saeed Mahameed
2016-10-25 15:00 ` [PATCH for-next 07/14] net/mlx5: Add PPCNT physical layer statistical group infrastructure Saeed Mahameed
2016-10-25 15:00 ` [PATCH for-next 08/14] net/mlx5: Add MPCNT register infrastructure Saeed Mahameed
2016-10-25 15:00 ` [PATCH for-next 09/14] net/mlx5: MTPPS (Pulse-per-second) events and registers support Saeed Mahameed
2016-10-25 15:00 ` Saeed Mahameed [this message]
2016-10-25 15:00 ` [PATCH for-next 11/14] net/mlx5: Port module event hardware structures Saeed Mahameed
     [not found] ` <1477407617-20745-1-git-send-email-saeedm-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-10-25 15:00   ` [PATCH for-next 03/14] net/mlx5: Ensure SRQ physical address structure endianness Saeed Mahameed
2016-10-25 15:00   ` [PATCH for-next 05/14] IB/mlx5: Skip handling unknown events Saeed Mahameed
2016-10-25 15:00   ` [PATCH for-next 12/14] net/mlx5: Add support to s-tag in mlx5 firmware interface Saeed Mahameed
2016-10-25 15:00   ` [PATCH for-next 13/14] net/mlx5: Introduce TSAR manipulation firmware commands Saeed Mahameed
2016-10-28 17:53   ` [PATCH for-next 00/14][PULL request] Mellanox mlx5 core driver updates 2016-10-25 David Miller
     [not found]     ` <20161028.135309.1712496950641242201.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2016-10-30  9:59       ` Saeed Mahameed
     [not found]         ` <CALzJLG8cN0VUiTHDdkgibObA970UsAP+E7E=DSgY1RKNefSyzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-30 16:02           ` David Miller
2016-10-25 15:00 ` [PATCH for-next 14/14] net/mlx5: Add ConnectX-5 PCIe 4.0 VF device ID Saeed Mahameed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1477407617-20745-11-git-send-email-saeedm@mellanox.com \
    --to=saeedm@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=dledford@redhat.com \
    --cc=huyn@mellanox.com \
    --cc=leon@kernel.org \
    --cc=leonro@mellanox.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=matanb@mellanox.com \
    --cc=netdev@vger.kernel.org \
    --cc=ogerlitz@mellanox.com \
    --cc=talal@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).