public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Sagi Grimberg <sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: "Nicholas A. Bellinger"
	<nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>,
	Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	oren-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v5 04/10] IB/mlx5: Initialize mlx5_ib_qp signature related
Date: Mon, 24 Feb 2014 10:10:57 +0200	[thread overview]
Message-ID: <530AFE91.6040102@dev.mellanox.co.il> (raw)
In-Reply-To: <1393224376.22656.13.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>

On 2/24/2014 8:46 AM, Nicholas A. Bellinger wrote:
> On Sun, 2014-02-23 at 14:19 +0200, Sagi Grimberg wrote:
>> If user requested signature enable we Initialize
>> relevant mlx5_ib_qp members. we mark the qp as sig_enable
>> and we increase the effective SQ size, but still
>> limit the user max_send_wr to original size computed.
>> We also allow the create_qp routine to accept sig_enable
>> create flag.
>>
>> Signed-off-by: Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>> ---
>>   drivers/infiniband/hw/mlx5/mlx5_ib.h |    3 +++
>>   drivers/infiniband/hw/mlx5/qp.c      |   12 +++++++++---
>>   include/linux/mlx5/qp.h              |    1 +
>>   3 files changed, 13 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h
>> index 79c4f14..e438f08 100644
>> --- a/drivers/infiniband/hw/mlx5/mlx5_ib.h
>> +++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h
>> @@ -189,6 +189,9 @@ struct mlx5_ib_qp {
>>   
>>   	int			create_type;
>>   	u32			pa_lkey;
>> +
>> +	/* Store signature errors */
>> +	bool			signature_en;
>>   };
>>   
>>   struct mlx5_ib_cq_buf {
>> diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
>> index 7dfe8a1..01999f3 100644
>> --- a/drivers/infiniband/hw/mlx5/qp.c
>> +++ b/drivers/infiniband/hw/mlx5/qp.c
> <SNIP>
>
>> @@ -665,7 +671,7 @@ static int create_kernel_qp(struct mlx5_ib_dev *dev,
>>   	int err;
>>   
>>   	uuari = &dev->mdev.priv.uuari;
>> -	if (init_attr->create_flags)
>> +	if (init_attr->create_flags & ~IB_QP_CREATE_SIGNATURE_EN)
>>   		return -EINVAL;
>>   
>>   	if (init_attr->qp_type == MLX5_IB_QPT_REG_UMR)
>
> FYI, this particular block doesn't apply against >= v3.14-rc2 code.
>
> Dropping it for now, and applying the rest as #5.
>
> Please fix if necessary.

This block comes from Eli's commit that exists in Roland tree:

commit 1a4c3a3dc5fdeef2a7bdf4ac7d81df58c3c0a51e
Author: Eli Cohen <eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Date:   Thu Feb 6 17:41:25 2014 +0200

     IB/mlx5: Don't set "block multicast loopback" capability

     Currently Connect-IB does not support blocking multicast loopback, so
     don't set IB_DEVICE_BLOCK_MULTICAST_LOOPBACK in the device caps.

     Reported by: Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
     Signed-off-by: Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
     Signed-off-by: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>

It's OK for you to drop this block since it reference this specific commit.

> --nab
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-02-24  8:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-23 12:19 [PATCH v5 00/10] Introduce Signature feature Sagi Grimberg
     [not found] ` <1393157953-24834-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-02-23 12:19   ` [PATCH v5 01/10] IB/core: Introduce protected memory regions Sagi Grimberg
2014-02-23 12:19   ` [PATCH v5 02/10] IB/core: Introduce Signature Verbs API Sagi Grimberg
2014-02-23 12:19   ` [PATCH v5 03/10] IB/mlx5, mlx5_core: Support for create_mr and destroy_mr Sagi Grimberg
2014-02-23 12:19   ` [PATCH v5 04/10] IB/mlx5: Initialize mlx5_ib_qp signature related Sagi Grimberg
     [not found]     ` <1393157953-24834-5-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-02-24  6:46       ` Nicholas A. Bellinger
     [not found]         ` <1393224376.22656.13.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>
2014-02-24  8:10           ` Sagi Grimberg [this message]
2014-02-23 12:19   ` [PATCH v5 05/10] IB/mlx5: Break wqe handling to begin & finish routines Sagi Grimberg
2014-02-23 12:19   ` [PATCH v5 06/10] IB/mlx5: remove MTT access mode from umr flags helper function Sagi Grimberg
2014-02-23 12:19   ` [PATCH v5 07/10] IB/mlx5: Keep mlx5 MRs in a radix tree under device Sagi Grimberg
2014-02-23 12:19   ` [PATCH v5 08/10] IB/mlx5: Support IB_WR_REG_SIG_MR Sagi Grimberg
2014-02-23 12:19   ` [PATCH v5 09/10] IB/mlx5: Collect signature error completion Sagi Grimberg
2014-02-23 12:19   ` [PATCH v5 10/10] IB/mlx5: Publish support in signature feature Sagi Grimberg
2014-02-24  7:01   ` [PATCH v5 00/10] Introduce Signature feature Nicholas A. Bellinger
     [not found]     ` <1393225299.22656.22.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>
2014-02-24  8:11       ` Sagi Grimberg
2014-03-07 19:43   ` Roland Dreier
     [not found]     ` <CAL1RGDXG2yU5mVi=e4A2NFyFo33Um=y03u7yyXL7GZ-J-y3KRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-09 10:57       ` Sagi Grimberg

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=530AFE91.6040102@dev.mellanox.co.il \
    --to=sagig-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org \
    --cc=oren-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    /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