All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Shunsuke Mie <mie@igel.co.jp>
Cc: linux-rdma@vger.kernel.org, Takanari Hayama <taki@igel.co.jp>
Subject: Re: [RFC] RDMA with Continuous Memory Allocator
Date: Tue, 13 Jul 2021 11:30:50 +0300	[thread overview]
Message-ID: <YO1POgdglR8QpfU/@unreal> (raw)
In-Reply-To: <CANXvt5pMnCeMjAH02LM0szoJz526DRMZ9wZMC4-v7s-e=N33iQ@mail.gmail.com>

On Tue, Jul 13, 2021 at 03:57:53PM +0900, Shunsuke Mie wrote:
> Hi Leon,
> Thank you for your reply.
> 
> > Sorry for my question, but why do you need it?
> I'd like to write data to the buffer, prepared by DRM (gpu) driver as
> a frame buffer, using RDMA.
> There is a similar project as follows.
> https://www.openfabrics.org/wp-content/uploads/2020-workshop-presentations/303.-OFI-GPU-DMA-BUF-OFA2020v2.pdf
> They prepare a mechanism to share a dmabuf fd between DRM driver and
> RDMA driver, in order to update frame buffer using RDMA. I'm trying to
> develop that in userland.
> 
> Some DRM drivers use CMA to allocate the buffer. I met the problem in
> an environment that CMA used.

In some flows, dma-buf pins memory under the hood.

Anyway, for regular umem, you can try to use mlx5 that supports on
demand paging (ODP). That feature allows you to create umem without
need to pin pages.

Thanks

      reply	other threads:[~2021-07-13  8:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09 10:24 [RFC] RDMA with Continuous Memory Allocator Shunsuke Mie
2021-07-13  5:18 ` Leon Romanovsky
2021-07-13  6:57   ` Shunsuke Mie
2021-07-13  8:30     ` Leon Romanovsky [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=YO1POgdglR8QpfU/@unreal \
    --to=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mie@igel.co.jp \
    --cc=taki@igel.co.jp \
    /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.