Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1421424ybl; Wed, 14 Aug 2019 17:01:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFkQ4KoKedA7y4XvgLaoPybnfyqDGl0cvoH56psF94MRPnmqIwFmKw/Iui2GUnDUl6l8qa X-Received: by 2002:a62:5250:: with SMTP id g77mr2661582pfb.158.1565827288294; Wed, 14 Aug 2019 17:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565827288; cv=none; d=google.com; s=arc-20160816; b=Jg/m81nGa2V5brBKEVg9xYxTXcH9rp7vCG/A3Xzx6UteT6ndW+YOPvteEIzOQ17OgT fEwe4ynGVTcTFnfSLBLWG6B74g9YZM1BWpttDBH29zm9Ka0uXXbYJ4gLk/GaGHwBV2Y2 +BU6docTYIsIsU2yXkAtdZyaorOsyLlasGbHDM6YFurDFWtvtdWDG3K8TlWAo2PaL7N5 ESSgV9iriLEqnoWimSjJZjJoenMAtULyt2vvxffW5A6mJqBSMPQNDWqji2IOs/P3UefE LehVayJ789wyo4aGWFYeQw5MdzFIeOEANRi+SJKw1SpidtBA6Ap3HebWPNahfvf9ZKBE I4dA== 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=DQ0Ck/Hu+AyzK9TjQ4i+HMlWqRuk8MXoeFnEWaQPiJ8=; b=LQqbsTrjT3SK1u8QFE6mnWKukaPzsaQhrbEYKdjtX0JnpMKuLgPluJQ2oTq1nafKvH WVrv/paSXR05adNzE2ceQt3RZloMia2IaEV3YZGXGkYmH/xhdzw8gc0N/nrUaOnVB12Z 5ktxK/GGXvUPRHIPoA76iP6jnXoWYHdyZ4sYtTNdXipkNhPdA20757CgiZaYYTO2bniP Mn7nWS+zI1LuObcgyww9GIHr1rtSuT+h6nQ/Oxux1WXuV8R59Wb1lkdrfzNhJDRFke4o 1k5w1J9PhBn9+WJiJyeTDZlqKlwp/1uvRSffkjBIFgj/l0zKY8AM2usDHQy27jI0U+3C 5t1A== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l36si749777pgb.292.2019.08.14.17.01.12; Wed, 14 Aug 2019 17:01:28 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729733AbfHNXuB (ORCPT + 99 others); Wed, 14 Aug 2019 19:50:01 -0400 Received: from mga11.intel.com ([192.55.52.93]:12480 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728262AbfHNXuB (ORCPT ); Wed, 14 Aug 2019 19:50:01 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Aug 2019 16:50:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,387,1559545200"; d="scan'208";a="184468157" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by FMSMGA003.fm.intel.com with ESMTP; 14 Aug 2019 16:50:00 -0700 Date: Wed, 14 Aug 2019 16:50:00 -0700 From: Ira Weiny To: John Hubbard Cc: Andrew Morton , Christoph Hellwig , Dan Williams , Dave Chinner , Jan Kara , Jason Gunthorpe , =?iso-8859-1?B?Suly9G1l?= Glisse , LKML , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-rdma@vger.kernel.org Subject: Re: [RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote() Message-ID: <20190814234959.GA463@iweiny-DESK2.sc.intel.com> References: <20190812015044.26176-1-jhubbard@nvidia.com> <20190812015044.26176-3-jhubbard@nvidia.com> <20190812234950.GA6455@iweiny-DESK2.sc.intel.com> <38d2ff2f-4a69-e8bd-8f7c-41f1dbd80fae@nvidia.com> <20190813210857.GB12695@iweiny-DESK2.sc.intel.com> <90e5cd11-fb34-6913-351b-a5cc6e24d85d@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <90e5cd11-fb34-6913-351b-a5cc6e24d85d@nvidia.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 13, 2019 at 05:56:31PM -0700, John Hubbard wrote: > On 8/13/19 5:51 PM, John Hubbard wrote: > > On 8/13/19 2:08 PM, Ira Weiny wrote: > >> On Mon, Aug 12, 2019 at 05:07:32PM -0700, John Hubbard wrote: > >>> On 8/12/19 4:49 PM, Ira Weiny wrote: > >>>> On Sun, Aug 11, 2019 at 06:50:44PM -0700, john.hubbard@gmail.com wrote: > >>>>> From: John Hubbard > >>> ... > >> Finally, I struggle with converting everyone to a new call. It is more > >> overhead to use vaddr_pin in the call above because now the GUP code is going > >> to associate a file pin object with that file when in ODP we don't need that > >> because the pages can move around. > > > > What if the pages in ODP are file-backed? > > > > oops, strike that, you're right: in that case, even the file system case is covered. > Don't mind me. :) Ok so are we agreed we will drop the patch to the ODP code? I'm going to keep the FOLL_PIN flag and addition in the vaddr_pin_pages. Ira > > >> > >> This overhead may be fine, not sure in this case, but I don't see everyone > >> wanting it. > > So now I see why you said that, but I will note that ODP hardware is rare, > and will likely remain rare: replayable page faults require really special > hardware, and after all this time, we still only have CPUs, GPUs, and the > Mellanox cards that do it. > > That leaves a lot of other hardware to take care of. > > thanks, > -- > John Hubbard > NVIDIA >