From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 12 Dec 2018 14:11:57 -0800 From: Matthew Wilcox To: Jerome Glisse Cc: Dan Williams , Jan Kara , John Hubbard , John Hubbard , Andrew Morton , Linux MM , tom@talpey.com, Al Viro , benve@cisco.com, Christoph Hellwig , Christopher Lameter , "Dalessandro, Dennis" , Doug Ledford , Jason Gunthorpe , Michal Hocko , Mike Marciniszyn , rcampbell@nvidia.com, Linux Kernel Mailing List , linux-fsdevel , "Weiny, Ira" Subject: Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions Message-ID: <20181212221157.GL6830@bombadil.infradead.org> References: <7b4733be-13d3-c790-ff1b-ac51b505e9a6@nvidia.com> <20181207191620.GD3293@redhat.com> <3c4d46c0-aced-f96f-1bf3-725d02f11b60@nvidia.com> <20181208022445.GA7024@redhat.com> <20181210102846.GC29289@quack2.suse.cz> <20181212150319.GA3432@redhat.com> <20181212213005.GE5037@redhat.com> <20181212215348.GF5037@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181212215348.GF5037@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: On Wed, Dec 12, 2018 at 04:53:49PM -0500, Jerome Glisse wrote: > The mmu notifier i put forward is the emergency revoke ie last > resort after driver have done everything it could to inform user- > space and release the pages. So doing thing brutaly in it like > reprogramming driver page table (which AFAIK is something you > can do on any hardware wether the hardware will like it or not > is a different question). You can't do it to an NVMe device. You submit the DMA addresses in the command, and the device reads the command at submission time. There's no way to change the DMA addresses for an in-flight command.