Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1053442ybb; Thu, 28 Mar 2019 18:33:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBaA0AgF6tECHpzteBW0Ibd9/XkCnGJz1gaQbgJw/fNabVaFD7x3Z1+xETG33p04IKe9Ax X-Received: by 2002:a17:902:d68d:: with SMTP id v13mr32265332ply.55.1553823227157; Thu, 28 Mar 2019 18:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553823227; cv=none; d=google.com; s=arc-20160816; b=iA7Rg3v/ZnJDTr8VWSmDDsXSWEmY4x6gxLk+UDJmjxDfuqobZQruwdWNeu5M4CwSvd THxzjWkIzap7ykwSOj7yy78ebTJyC8u0ALv3nRlNN+G2KzTC/xtTEoKFU3bXaIsz3x9T vrLBkk8GzCOEmngFV444uu8qcKylSvYUL0j7t3i+PJQD8qyEAOlGkoj13j57l5TYQaSf +QoSW4KhNvuhb7Aat3WKpK63Vvy10JC3Ive2gwudBrysh69M/eZ0+FYSm9/SoINKamLH i0a3Wo547qyRsasRn0OuefzpA87ax1YSBJGFKmZ7zQLtQTBwGYv6IL9soqgbG+pnw62y 3p6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6CXtjATayMacxoWaowYhZ6ypW2hRAvedqZ7XljR3NP0=; b=k+5Pd8/uJK0wsgBTyUoQ1f7rzyGXdFfktszsXI70vdUuhak1KffGwABoNUxzkSpM7Z whVr5SIIFohnXzhE+cQhFFkHKm72HOlszyZkX9ocU6jLeNqWSILPPDFdoOpGMHdJn8yQ JrAqjN5DNuHdyel4lNFwcH9MvkCRhiAtMNblgOb4MkOBPsWdbJrN8FjsC/f+29GD1vwQ G+L//5kT4QQi4yUSP5ab0bg3S7l8h7f0X5riflxiRSXz7LOvlwM0LAAJsPCyby6WAe9w 1IW7p4hoRpT2QDZGVXp5iu8Lj/13pfETPBa9j0H4tUN390t2IhlMrCGYt1Gr9lKdn38L ddyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=XsyhN1AS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q77si593082pfa.102.2019.03.28.18.33.31; Thu, 28 Mar 2019 18:33:47 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=XsyhN1AS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728623AbfC2Ba2 (ORCPT + 99 others); Thu, 28 Mar 2019 21:30:28 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:11344 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727675AbfC2Ba2 (ORCPT ); Thu, 28 Mar 2019 21:30:28 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 28 Mar 2019 18:30:31 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 28 Mar 2019 18:30:27 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 28 Mar 2019 18:30:27 -0700 Received: from [10.110.48.28] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 29 Mar 2019 01:30:27 +0000 Subject: Re: [PATCH v2 07/11] mm/hmm: add default fault flags to avoid the need to pre-fill pfns arrays. To: Jerome Glisse , Ira Weiny CC: , , Andrew Morton , Dan Williams References: <20190325144011.10560-1-jglisse@redhat.com> <20190325144011.10560-8-jglisse@redhat.com> <2f790427-ea87-b41e-b386-820ccdb7dd38@nvidia.com> <20190328221203.GF13560@redhat.com> <555ad864-d1f9-f513-9666-0d3d05dbb85d@nvidia.com> <20190328223153.GG13560@redhat.com> <768f56f5-8019-06df-2c5a-b4187deaac59@nvidia.com> <20190328232125.GJ13560@redhat.com> <20190328164231.GF31324@iweiny-DESK2.sc.intel.com> <20190329011727.GC16680@redhat.com> From: John Hubbard X-Nvconfidentiality: public Message-ID: Date: Thu, 28 Mar 2019 18:30:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <20190329011727.GC16680@redhat.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US-large Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1553823031; bh=6CXtjATayMacxoWaowYhZ6ypW2hRAvedqZ7XljR3NP0=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=XsyhN1ASj7Mh0dDwxw0mXugftAbLLQTdnDmNNouB6FlcjokJuiLocsVpdmB9T5dRX gFx9TMvi/rO2wQxXKYSR8WOjn2ecwn5VPScbRdlKs2x5NsBv7OfY0TahE7GONGQbfy TTdcfBqRqMi+lJFwenppTHbUAaOtBheAuOKSPSRC1lXbiIldfu8TVUFrKHRif+Fc0K Xh74rfxCYL7J5SAWbmORiJ+84PE0+BkROLxMfI/pGxBriWk9wZyVnUhOSZAIz5xA6I SL9NXQReFHiluHxyoqW5SlqBlYT+nkX6PHfMKQGmElYqgvnS4eyVM1Q+mmv4TyhU6J WrI1cKMY+F4dg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/28/19 6:17 PM, Jerome Glisse wrote: > On Thu, Mar 28, 2019 at 09:42:31AM -0700, Ira Weiny wrote: >> On Thu, Mar 28, 2019 at 04:28:47PM -0700, John Hubbard wrote: >>> On 3/28/19 4:21 PM, Jerome Glisse wrote: >>>> On Thu, Mar 28, 2019 at 03:40:42PM -0700, John Hubbard wrote: >>>>> On 3/28/19 3:31 PM, Jerome Glisse wrote: >>>>>> On Thu, Mar 28, 2019 at 03:19:06PM -0700, John Hubbard wrote: >>>>>>> On 3/28/19 3:12 PM, Jerome Glisse wrote: >>>>>>>> On Thu, Mar 28, 2019 at 02:59:50PM -0700, John Hubbard wrote: >>>>>>>>> On 3/25/19 7:40 AM, jglisse@redhat.com wrote: >>>>>>>>>> From: J=C3=A9r=C3=B4me Glisse >>> [...] >> Indeed I did not realize there is an hmm "pfn" until I saw this function= : >> >> /* >> * hmm_pfn_from_pfn() - create a valid HMM pfn value from pfn >> * @range: range use to encode HMM pfn value >> * @pfn: pfn value for which to create the HMM pfn >> * Returns: valid HMM pfn for the pfn >> */ >> static inline uint64_t hmm_pfn_from_pfn(const struct hmm_range *range, >> unsigned long pfn) >> >> So should this patch contain some sort of helper like this... maybe? >> >> I'm assuming the "hmm_pfn" being returned above is the device pfn being >> discussed here? >> >> I'm also thinking calling it pfn is confusing. I'm not advocating a new= type >> but calling the "device pfn's" "hmm_pfn" or "device_pfn" seems like it w= ould >> have shortened the discussion here. >> >=20 > That helper is also use today by nouveau so changing that name is not tha= t > easy it does require the multi-release dance. So i am not sure how much > value there is in a name change. >=20 Once the dust settles, I would expect that a name change for this could go via Andrew's tree, right? It seems incredible to claim that we've built som= ething that effectively does not allow any minor changes! I do think it's worth some *minor* trouble to improve the name, assuming th= at we can do it in a simple patch, rather than some huge maintainer-level effort. This field name not a large thing, but the cumulative effect of having a nu= mber of naming glitches within HMM is significant. The size and complexity of HMM h= as always made it hard to attract code reviewers, so let's improve what we can= , to counteract that. thanks, --=20 John Hubbard NVIDIA