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: Mon, 28 Nov 2016 15:24:52 -0700 Message-ID: <20161128222452.GA744@obsidianresearch.com> References: <91d28749-bc64-622f-56a1-26c00e6b462a@deltatee.com> <20161124164249.GD20818@obsidianresearch.com> <3f2d2db3-fb75-2422-2a18-a8497fd5d70e@amd.com> <20161125193252.GC16504@obsidianresearch.com> <20161128165751.GB28381@obsidianresearch.com> <0d3d56e2-4d2b-85b7-9487-b7ae2aaea610@amd.com> <1ac2f9e7-f1ee-a2c9-0134-ffaa28c706af@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1ac2f9e7-f1ee-a2c9-0134-ffaa28c706af-5C7GfCeVMHo@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: Serguei Sagalovitch Cc: Haggai Eran , "Bridgman, John" , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org" , "Kuehling, Felix" , "Blinzer, Paul" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" , "Sander, Ben" , "Suthikulpanit, Suravee" , "linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "Deucher, Alexander" , Max Gurtovoy , Christian K??nig , "Linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: dri-devel@lists.freedesktop.org On Mon, Nov 28, 2016 at 04:55:23PM -0500, Serguei Sagalovitch wrote: > >We haven't touch this in a long time and perhaps it changed, but there > >definitely was a call back in the PeerDirect API to allow the GPU to > >invalidate the mapping. That's what we don't want. > I assume that you are talking about "invalidate_peer_memory()' callback? > I was told that it is the "last resort" because HCA (and driver) is not > able to handle it in the safe manner so it is basically "abort" everything. If it is a last resort to save system stability then kill the impacted process, that will release the MRs. Jason