From: Jason Gunthorpe <jgg@ziepe.ca>
To: Oded Gabbay <ogabbay@kernel.org>
Cc: linux-rdma <linux-rdma@vger.kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: Creating new RDMA driver for habanalabs
Date: Wed, 6 Jul 2022 13:24:48 -0300 [thread overview]
Message-ID: <20220706162448.GK23621@ziepe.ca> (raw)
In-Reply-To: <CAFCwf13LRmez63hGmXMDO2FoC3Qo_2BwtAtnzyJ70=_OcTc23w@mail.gmail.com>
On Wed, Jul 06, 2022 at 11:59:14AM +0300, Oded Gabbay wrote:
> Due to that, we would want to put all the ports under a single struct ib_device,
> as you said it yourself in your original email a year ago.
Yes
> The major constraints are:
>
> 1. Support only RDMA WRITE operation. We do not support READ, SEND or RECV.
> This means that many existing open source tests in rdma-core are not
> compatible. e.g. rc_pingpong.c will not work. I guess we will need to
> implement different tests and submit them ? Do you have a
> different idea/suggestion ?
I would suggest following what EFA did and just using your own unique
QP with dv accessors to create it. A QP that can only do RDMA WRITE is
not IBA compliant and shouldn't be created by a standard verbs call.
> 2. As you mentioned in the original email, we support only a single PD.
> I don't see any major implication regarding this constraint but please
> correct me if you think otherwise.
Seems fine
> 3. MR limitation on the rkey that is received from the remote connection
> during connection creation. The limitation is that our h/w extracts
> the rkey from the QP h/w context and not from the WQE when sending packets.
> This means that we may associate only a single remote MR per QP.
It seems OK in the context above where you have your own QP type and
obviouly your specila RDMA WRITE poster will not take in an rkey as
any argument.
> Do you see any issue here with these two limitations ? One thing we noted is
> that we need to somehow configure the rkey in our h/w QP context, while today
> the API doesn't allow it.
When you add your own dv qp create function it will take in the
required rkey during qp creation.
> These limitations are not relevant to a deployment where all the NICs are
> Gaudi NICs, because we can use a single rkey for all MRs.
Er, that is weird, did you mean to say you have only one MR per PD and
that it always has a fixed value?
> 4. We do not support all the flags in the reg_mr API. e.g. we don't
> support IBV_ACCESS_LOCAL_WRITE. I'm not sure what the
> implication is here.
It is OK, since you can't issue a local operation WQE anyhow you can
just ignore the flag.
> 5. Our h/w contains several accelerations we would like to utilize.
> e.g. we have a h/w mechanism for accelerating collective operations
> on multiple RDMA NICs. These accelerations will require either extensions
> to current APIs, or some dedicated APIs. For example, one of the
> accelerations requires that the user will create a QP with the same
> index on all the Gaudi NICs.
Use your DV interface to do these kinds of things
Thanks,
Jason
next prev parent reply other threads:[~2022-07-06 16:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-22 9:40 Creating new RDMA driver for habanalabs Oded Gabbay
2021-08-22 11:32 ` Leon Romanovsky
2021-08-22 22:31 ` Jason Gunthorpe
2021-08-23 8:53 ` Oded Gabbay
2021-08-23 13:04 ` Jason Gunthorpe
2021-08-23 14:19 ` Oded Gabbay
2022-07-06 8:59 ` Oded Gabbay
2022-07-06 16:24 ` Jason Gunthorpe [this message]
2022-07-07 9:30 ` Oded Gabbay
2022-07-08 13:29 ` Jason Gunthorpe
2022-07-10 7:30 ` Oded Gabbay
2022-07-21 18:42 ` Jason Gunthorpe
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=20220706162448.GK23621@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=gregkh@linuxfoundation.org \
--cc=linux-rdma@vger.kernel.org \
--cc=ogabbay@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