From: Jason Gunthorpe <jgg@nvidia.com>
To: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Cc: leonro@nvidia.com, Dean Luick <dean.luick@cornelisnetworks.com>,
Brendan Cunningham <bcunningham@cornelisnetworks.com>,
linux-rdma@vger.kernel.org
Subject: Re: [PATCH for-next 0/3] Updates for 6.5
Date: Fri, 2 Jun 2023 14:23:43 -0300 [thread overview]
Message-ID: <ZHoln/2UL7avEou8@nvidia.com> (raw)
In-Reply-To: <97b685a9-cd0b-023b-75f1-48c8df06a2ad@cornelisnetworks.com>
On Fri, Jun 02, 2023 at 01:15:47PM -0400, Dennis Dalessandro wrote:
> > So you will have to think carefully about is needed. It is part of why
> > I don't want to take uAPI changed for incomplete features. I'm
> > wondering how you will fit dmabuf into hfi1 when I won't be happy if
> > this is done by adding dmabuf support to the cdev.
>
> I think at one point you said it was ok to have the fast datapath go through the
> cdev. We want the core to own the configuration/etc. This is the fast datapath.
Maybe, but dmabuf binding and page extraction really can't be fast
datapath, it just isn't fast to start with.
You should be crystalizing the dmabuf into a MR and caching the DMA
addrs like everything else and referring the MR on your fast path.
> The high level idea in my mind is that we do basically what is done with our
> control IOCTLs through the core, setting up contexts, etc. However, still create
> a cdev for sending in the lists of pages to pin down since that is hot path. I
> assume that cdev could be created by the core and owned rather than done by the
> driver directly.
I never really liked that HFI has effectively its own weird
implementation of MRs and ODP hidden in the cdev.
Jason
next prev parent reply other threads:[~2023-06-02 17:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 16:54 [PATCH for-next 0/3] Updates for 6.5 Dennis Dalessandro
2023-05-19 16:54 ` [PATCH for-next 1/3] IB/hfi1: Add mmu_rb_node refcount to hfi1_mmu_rb_template tracepoints Dennis Dalessandro
2023-05-19 16:54 ` [PATCH for-next 2/3] IB/hfi1: Remove unused struct mmu_rb_ops fields .insert, .invalidate Dennis Dalessandro
2023-05-19 16:54 ` [PATCH for-next 3/3] IB/hfi1: Separate user SDMA page-pinning from memory type Dennis Dalessandro
2023-06-01 17:45 ` Jason Gunthorpe
2023-06-01 18:15 ` Dennis Dalessandro
2023-06-01 18:58 ` Jason Gunthorpe
2023-06-01 19:11 ` Dennis Dalessandro
2023-06-01 22:46 ` Jason Gunthorpe
2023-06-02 3:15 ` Dennis Dalessandro
2023-06-01 22:54 ` [PATCH for-next 0/3] Updates for 6.5 Jason Gunthorpe
2023-06-02 3:41 ` Dennis Dalessandro
2023-06-02 13:42 ` Jason Gunthorpe
2023-06-02 17:15 ` Dennis Dalessandro
2023-06-02 17:23 ` Jason Gunthorpe [this message]
2023-06-16 16:33 ` Dennis Dalessandro
2023-06-16 19:25 ` 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=ZHoln/2UL7avEou8@nvidia.com \
--to=jgg@nvidia.com \
--cc=bcunningham@cornelisnetworks.com \
--cc=dean.luick@cornelisnetworks.com \
--cc=dennis.dalessandro@cornelisnetworks.com \
--cc=leonro@nvidia.com \
--cc=linux-rdma@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.