From: haggaie@mellanox.com (Haggai Eran)
Subject: [RFC 7/7] NVMe: CMB on DMA-BUF
Date: Tue, 2 Aug 2016 07:10:14 +0000 [thread overview]
Message-ID: <1470121814.20129.8.camel@mellanox.com> (raw)
In-Reply-To: <20160801155206.GA23224@infradead.org>
On ?', 2016-08-01@08:52 -0700, Christoph Hellwig wrote:
> On Mon, Aug 01, 2016@09:57:33AM +0300, Haggai Eran wrote:
> >
> > Allocate a CMB region to user-space as a DMA-BUF object.
> NACK.??Absolutely no way we're going to export a low-level device
> specific feature to userspace like that.??If you want to DMA to
> the CMB do it from the kernel, and for that we'll need a proper
> block device level API.
The reason I thought this idea might work is because of the responses
Stephen got for his attempt to use ZONE_DEVICE for things like the CMB.
The problem with that is that the way RDMA registration works with
get_user_pages means that the CPU also gets access to the CMB and
sometimes you don't want that. DMA-BUF can solve that nicely in that it
doesn't require mapping it to the CPU - a driver can attach to it
directly.
Anyway, I understand exposing the CMB directly might be a little too
low level. What do you think would work better? Something like
direct_access that returns bus addresses instead of pfns?
Thanks,
Haggai
next prev parent reply other threads:[~2016-08-02 7:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-01 6:57 [RFC 0/7] RDMA subsystem DMA-BUF support Haggai Eran
2016-08-01 6:57 ` [RFC 1/7] IB/mlx5: Helper for posting work-requests on the UMR QP Haggai Eran
2016-08-01 6:57 ` [RFC 2/7] IB/mlx5: Support registration and invalidate operations " Haggai Eran
2016-08-01 6:57 ` [RFC 3/7] IB/core: Helpers for mapping DMA-BUF in MRs Haggai Eran
2016-08-01 6:57 ` [RFC 4/7] IB/uverbs: Add command to register a DMA-BUF fd Haggai Eran
2016-08-01 6:57 ` [RFC 5/7] IB/mlx5: Implement reg_user_dma_buf_mr Haggai Eran
2016-08-01 6:57 ` [RFC 6/7] NVMe: Use genalloc to allocate CMB regions Haggai Eran
2016-08-01 15:53 ` Christoph Hellwig
2016-08-01 16:20 ` Jon Derrick
2016-08-02 7:15 ` Haggai Eran
2016-08-02 6:48 ` Haggai Eran
2016-08-01 6:57 ` [RFC 7/7] NVMe: CMB on DMA-BUF Haggai Eran
2016-08-01 15:52 ` Christoph Hellwig
2016-08-02 7:10 ` Haggai Eran [this message]
2016-08-04 11:56 ` hch
2016-08-07 5:24 ` Haggai Eran
2016-08-03 10:02 ` Sagi Grimberg
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=1470121814.20129.8.camel@mellanox.com \
--to=haggaie@mellanox.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).