From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: Enabling peer to peer device transactions for PCIe devices Date: Thu, 12 Jan 2017 10:17:20 -0700 Message-ID: <20170112171720.GA12257@obsidianresearch.com> References: <20170105224215.GA3855@obsidianresearch.com> <20170105232352.GB6426@redhat.com> <20170106003034.GB4670@obsidianresearch.com> <20170106015831.GA2226@gmail.com> <20170106173722.GB3804@redhat.com> <20170106182625.GB5724@obsidianresearch.com> <2a148b6e-86bc-4c4d-2f22-d733e2cc94cc@deltatee.com> <20170112151129.GA10942@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20170112151129.GA10942-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org Sender: "Linux-nvdimm" To: Jerome Glisse Cc: david1.zhou-5C7GfCeVMHo@public.gmane.org, "'linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org'" , "'linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org'" , "Kuehling, Felix" , Serguei Sagalovitch , "Blinzer, Paul" , "'linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org'" , "'dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org'" , hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, qiang.yu-5C7GfCeVMHo@public.gmane.org, "Sander, Ben" , "Suthikulpanit, Suravee" , "'linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org'" , "Deucher, Alexander" , Jerome Glisse , "Koenig, Christian" , "'Linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org'" List-Id: dri-devel@lists.freedesktop.org On Thu, Jan 12, 2017 at 10:11:29AM -0500, Jerome Glisse wrote: > On Wed, Jan 11, 2017 at 10:54:39PM -0600, Stephen Bates wrote: > > > What we want is for RDMA, O_DIRECT, etc to just work with special VMAs > > > (ie. at least those backed with ZONE_DEVICE memory). Then > > > GPU/NVME/DAX/whatever drivers can just hand these VMAs to userspace > > > (using whatever interface is most appropriate) and userspace can do what > > > it pleases with them. This makes _so_ much sense and actually largely > > > already works today (as demonstrated by iopmem). > So i say let solve the IOMMU issue first and let everyone use it in their > own way with their device. I do not think we can share much more than > that. Solve it for the easy ZONE_DIRECT/etc case then. Jason