Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4879519ybi; Tue, 30 Jul 2019 09:42:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzGsBBHWUWZARPbggQncmDib88423WD+rmb9ff2CIwRZF13p9QTxLpfk60BwQ8mAtEF6b3 X-Received: by 2002:a63:7205:: with SMTP id n5mr55040341pgc.443.1564504971832; Tue, 30 Jul 2019 09:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564504971; cv=none; d=google.com; s=arc-20160816; b=Lxo78uK5cUcK4r9os3Qff9hRnB22o6mZoiOU5aS0AYCN2seWhmoAzO5aoGJL/Mi0wJ 9OZzqom0jCRaSfAk/Qx67YkQCTQJXsbi2lOcGKfEehreiL1yp9QcI0tjSRxPmXqFPQq/ 40b3TkyF3giwMmgVMwDVmVIIJzTfDsVlxbaI7T4Emb6Y1A4HbREqTzTsn7mi/3R6EHYE gmhkm13OIcQ7/gfpRA3IFGKrLzelTav0bva2Jrqym1bX0fetyvkayqumrKhZre0AUQb9 WqMtKJq5ZLEC8OwNJDO/nNxZo2YtI52QDBZ+I9X4qzgaXcWiBhg2yillEQHXqUVF1qqI srPw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zFm98YUZt8SSxDLWbzkJjLxO1K6BQyYHVwPwen6Oeho=; b=TAsslW+5tNPrOkQRCi5q24OISyHB7k9FXCKvoUM7Ahlqj97OTI/TId/rA73jgi6DC1 my6tUX8xDtSEewR4Q7CUgC1Oopd7QL9OKdmo+cGgtUEpxVDoQe4zpdP1QOGcnONyIR0w LWyobmfSYEpeY0HT84GcqD9NIb+j/0QiaCn4VhctggqgQfK/kNeZ6clQQElElKMVlsUc wXSyLXJcSfwm6VYt0KMojOY3PzaQ8NftkWopex3Slm1RWXYmJcx6Zk6NozanO6srFRLO 2pQUNZkCMLnz5mi2atBoEgemn6Cn7xNacobFahBMhK6MOr/MID3A18hbDTOWh5o9Supu QlRQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9si33143680pfm.236.2019.07.30.09.42.36; Tue, 30 Jul 2019 09:42:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732650AbfG3Pvl (ORCPT + 99 others); Tue, 30 Jul 2019 11:51:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54784 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfG3Pvl (ORCPT ); Tue, 30 Jul 2019 11:51:41 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BBA843E2D3; Tue, 30 Jul 2019 15:51:40 +0000 (UTC) Received: from redhat.com (ovpn-112-36.rdu2.redhat.com [10.10.112.36]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DFACB608A5; Tue, 30 Jul 2019 15:51:37 +0000 (UTC) Date: Tue, 30 Jul 2019 11:51:34 -0400 From: Jerome Glisse To: Christoph Hellwig Cc: 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: <20190730155134.GA10366@redhat.com> References: <20190729142843.22320-1-hch@lst.de> <20190729142843.22320-10-hch@lst.de> <20190729233044.GA7171@redhat.com> <20190730054633.GA28515@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190730054633.GA28515@lst.de> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 30 Jul 2019 15:51:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 07:46:33AM +0200, Christoph Hellwig wrote: > 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. Not using is a serious bug, i will investigate this friday. Cheers, J?r?me