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>,
Artemy Kovalyov <artemyko@mellanox.com>,
Leon Romanovsky <leon@kernel.org>,
Saeed Mahameed <saeedm@mellanox.com>
Subject: [PATCH for-next 04/14] net/mlx5: Add KSM support
Date: Tue, 25 Oct 2016 18:00:07 +0300 [thread overview]
Message-ID: <1477407617-20745-5-git-send-email-saeedm@mellanox.com> (raw)
In-Reply-To: <1477407617-20745-1-git-send-email-saeedm@mellanox.com>
From: Artemy Kovalyov <artemyko@mellanox.com>
Add to struct mlx5_ifc_cmd_hca_cap_bits capability bits
indicating related value/field is supported:
* fixed_buffer_size - MLX5_MKC_ACCESS_MODE_KSM
* umr_extended_translation_offset -translation_offset_42_16
in UMR ctrl segment
* null_mkey - null_mkey in QUERY_SPECIAL_CONTEXTS
Add MLX5_MKC_ACCESS_MODE_KSM enum value
Add null_mkey field to struct mlx5_ifc_query_special_contexts_out_bits
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Reviewed-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
---
include/linux/mlx5/mlx5_ifc.h | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 89b99dc..e610517 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -761,11 +761,12 @@ struct mlx5_ifc_cmd_hca_cap_bits {
u8 log_max_eq[0x4];
u8 max_indirection[0x8];
- u8 reserved_at_108[0x1];
+ u8 fixed_buffer_size[0x1];
u8 log_max_mrw_sz[0x7];
u8 reserved_at_110[0x2];
u8 log_max_bsf_list_size[0x6];
- u8 reserved_at_118[0x2];
+ u8 umr_extended_translation_offset[0x1];
+ u8 null_mkey[0x1];
u8 log_max_klm_list_size[0x6];
u8 reserved_at_120[0xa];
@@ -2449,6 +2450,7 @@ enum {
MLX5_MKC_ACCESS_MODE_PA = 0x0,
MLX5_MKC_ACCESS_MODE_MTT = 0x1,
MLX5_MKC_ACCESS_MODE_KLMS = 0x2,
+ MLX5_MKC_ACCESS_MODE_KSM = 0x3,
};
struct mlx5_ifc_mkc_bits {
@@ -3528,6 +3530,10 @@ struct mlx5_ifc_query_special_contexts_out_bits {
u8 dump_fill_mkey[0x20];
u8 resd_lkey[0x20];
+
+ u8 null_mkey[0x20];
+
+ u8 reserved_at_a0[0x60];
};
struct mlx5_ifc_query_special_contexts_in_bits {
--
2.7.4
next prev 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 ` Saeed Mahameed [this message]
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 ` [PATCH for-next 10/14] net/mlx5: Set driver version infrastructure Saeed Mahameed
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-5-git-send-email-saeedm@mellanox.com \
--to=saeedm@mellanox.com \
--cc=artemyko@mellanox.com \
--cc=davem@davemloft.net \
--cc=dledford@redhat.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).