linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: swise@opengridcomputing.com (Steve Wise)
Subject: Question on inline support
Date: Tue, 29 May 2018 12:48:53 -0500	[thread overview]
Message-ID: <72e73b2e-4e3d-a39e-8514-a0a506a5b409@opengridcomputing.com> (raw)
In-Reply-To: <20180529174442.GA1637@lst.de>



On 5/29/2018 12:44 PM, hch@lst.de wrote:
> On Tue, May 29, 2018@12:33:56PM -0500, Steve Wise wrote:
>> Hey guys,
>>
>> While testing the nvme rdma target with inline_data_size=0 for my patch
>> series [1], I found that the nvme host side rejected the queue
>> connections with this error:
>>
>> "nvme nvme0: Mandatory keyed sgls are not support"
>>
>> Due to this code in nvme/host/rdma.c:
>>
>> ?????? /* sanity check keyed sgls */
>> ?????? if (!(ctrl->ctrl.sgls & (1 << 20))) {
>> ?????????????? dev_err(ctrl->ctrl.device, "Mandatory keyed sgls are not
>> support\n");
>> ?????????????? ret = -EINVAL;
>> ?????????????? goto out_remove_admin_queue;
>> ?????? }
> Keyed SGLs are bit 2, so the above should check for bit 2 as well.

Ah.? I'll fix that.

> We should still check for bit 20 if inline data is supported, though.
>

Why, exactly?? Use of inline data is determined by the target's
advertised ioccsz, and handled in nvme/host/rdma.c:

static inline size_t nvme_rdma_inline_data_size(struct nvme_rdma_queue
*queue)
{
??????? return queue->cmnd_capsule_len - sizeof(struct nvme_command);
}

Are you saying that the host should support a target that doesn't set
bit 20, yet advertises an ioccsz that could support inline??

Thanks,

Steve.

  reply	other threads:[~2018-05-29 17:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-29 17:33 Question on inline support Steve Wise
2018-05-29 17:44 ` hch
2018-05-29 17:48   ` Steve Wise [this message]
2018-05-29 18:33     ` Steve Wise

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=72e73b2e-4e3d-a39e-8514-a0a506a5b409@opengridcomputing.com \
    --to=swise@opengridcomputing.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).