From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: Roland Dreier <roland@kernel.org>
Cc: linux-rdma@vger.kernel.org, target-devel@vger.kernel.org
Subject: Re: [PATCH] IB/srpt: Set srq_type to IB_SRQT_BASIC
Date: Thu, 12 Apr 2012 20:05:44 -0700 [thread overview]
Message-ID: <1334286344.3137.4881.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <1334243053-6302-1-git-send-email-roland@kernel.org>
On Thu, 2012-04-12 at 08:04 -0700, Roland Dreier wrote:
> From: Roland Dreier <roland@purestorage.com>
>
> Since commit 96104eda0169 ("RDMA/core: Add SRQ type field"), kernel
> users of SRQs need to specify srq_type = IB_SRQT_BASIC in struct
> ib_srq_init_attr, or else most low-level drivers will fail in
> when srpt_add_one() calls ib_create_srq() and gets -ENOSYS.
>
> (mlx4_ib works OK nearly all of the time, because it just needs
> srq_type != IB_SRQT_XRC. And apparently nearly everyone using
> ib_srpt is using mlx4 hardware)
>
> Reported-by: Alexey Shvetsov <alexxy@gentoo.org>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Roland Dreier <roland@purestorage.com>
> ---
> I'll send this on to Linus shortly...
>
> drivers/infiniband/ulp/srpt/ib_srpt.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c
> index 69e2ad0..daf21b8 100644
> --- a/drivers/infiniband/ulp/srpt/ib_srpt.c
> +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c
> @@ -3232,6 +3232,7 @@ static void srpt_add_one(struct ib_device *device)
> srq_attr.attr.max_wr = sdev->srq_size;
> srq_attr.attr.max_sge = 1;
> srq_attr.attr.srq_limit = 0;
> + srq_attr.srq_type = IB_SRQT_BASIC;
>
> sdev->srq = ib_create_srq(sdev->pd, &srq_attr);
> if (IS_ERR(sdev->srq))
<nod>, unfortunately I've only been able to run this on mlx4 HCAs so
far.. Pulled into lio-core/master.
Thanks alot for the patch Roland!
--nab
prev parent reply other threads:[~2012-04-13 3:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-12 15:04 [PATCH] IB/srpt: Set srq_type to IB_SRQT_BASIC Roland Dreier
2012-04-13 3:05 ` Nicholas A. Bellinger [this message]
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=1334286344.3137.4881.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=linux-rdma@vger.kernel.org \
--cc=roland@kernel.org \
--cc=target-devel@vger.kernel.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