Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4272142ybi; Mon, 29 Jul 2019 22:57:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX+3ah/mLEsoAtlpEFiGtcLd54WLqDLtAWRYgK4260NJ5F9rm1Y0f/St5HKpurSG15OVJ0 X-Received: by 2002:a63:5d54:: with SMTP id o20mr91326851pgm.413.1564466266858; Mon, 29 Jul 2019 22:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564466266; cv=none; d=google.com; s=arc-20160816; b=uU+wXvzFcYs7ivRAl2iHQWwUpvI0ZT7cJ0EcSToL+0NvjL7+gfN/CehtpbuWY8Ru/i mNbygJ1N3wEx1lXifUC7pmqdLSZ++d2cZVG25+44YnX05vh1mEK989TDCTWESdxB+ypw P9o+pM9wBCV0d6slHJNi+O7YnMPfibqqp3+BY3N/E3wj78Alsagsu4cNRqR15k3T7toe eb+8FS9VWktdeAi8Ix1rU1Pd+XBCnv3qozCA0Hi8/03E0A83CiI/p9IWXPOtJx0KSERv I3IITvfisMuKfVXZVFi1cFT3BHEtGQvzPAzBppD8sE9tM3Ez22+itNKvW4IiJLspF1bY soGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=spsil+7VVo8vd21go/pFi3CKHWWLfFAPTsBOwVHoS8c=; b=o2Fp5cFako25o72pjK1EANSa+HdHo5f1S2NXfAMbQCc8oZzrIG8x7bHn3CptsaJuFx 42pr7nMYHdlzOITFJouv3YOQAp/5TMLUDkM67WLoDNGnkOW35IghTVOxj+rP1zkBCnws G2JOHG0YqjBG0AIJ3ttZ2vHt1ctOzWw0gb1YPG5iluqDLxpfiidvW02zT5l5MPEpF3a0 Hr9j78Z5DcvciEGk3TeGmjm4YKEUT6rtbFnnvSALXmwYjsr6b24I6AN2KewniXQ7/KLF sqdFE7QVMJe4ZgrLx2XQ2LB3PKE6w1ajbQNCFh0DQUSdXKRnI3ZX2CxGI7yA9Y9yQRM6 5WTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cx7si24695718pjb.51.2019.07.29.22.57.32; Mon, 29 Jul 2019 22:57:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbfG3Fqi (ORCPT + 99 others); Tue, 30 Jul 2019 01:46:38 -0400 Received: from verein.lst.de ([213.95.11.211]:47639 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbfG3Fqh (ORCPT ); Tue, 30 Jul 2019 01:46:37 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id ABD1D68AEF; Tue, 30 Jul 2019 07:46:33 +0200 (CEST) Date: Tue, 30 Jul 2019 07:46:33 +0200 From: Christoph Hellwig To: Jerome Glisse Cc: Christoph Hellwig , Jason Gunthorpe , Ben Skeggs , Ralph Campbell , Bharata B Rao , Andrew Morton , linux-mm@kvack.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 9/9] mm: remove the MIGRATE_PFN_WRITE flag Message-ID: <20190730054633.GA28515@lst.de> References: <20190729142843.22320-1-hch@lst.de> <20190729142843.22320-10-hch@lst.de> <20190729233044.GA7171@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190729233044.GA7171@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 29, 2019 at 07:30:44PM -0400, Jerome Glisse wrote: > On Mon, Jul 29, 2019 at 05:28:43PM +0300, Christoph Hellwig wrote: > > The MIGRATE_PFN_WRITE is only used locally in migrate_vma_collect_pmd, > > where it can be replaced with a simple boolean local variable. > > > > Signed-off-by: Christoph Hellwig > > NAK that flag is useful, for instance a anonymous vma might have > some of its page read only even if the vma has write permission. > > It seems that the code in nouveau is wrong (probably lost that > in various rebase/rework) as this flag should be use to decide > wether to map the device memory with write permission or not. > > I am traveling right now, i will investigate what happened to > nouveau code. We can add it back when needed pretty easily. Much of this has bitrotted way to fast, and the pending ppc kvmhmm code doesn't need it either.