Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5700915imm; Wed, 12 Sep 2018 09:46:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYuVtC9NbMMqN3XgCyVqEwSFG5OPBYMTYvxKBwPT2l3dElw3C5R/XJXVXP/qM+KPncT+hLj X-Received: by 2002:a17:902:7009:: with SMTP id y9-v6mr3215608plk.249.1536770787374; Wed, 12 Sep 2018 09:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536770787; cv=none; d=google.com; s=arc-20160816; b=0sXFU3xHq0mc6X3yk27cl68yWPCpj+fJph0rVZU4v0eieVyNmmTRfLeBAv93Bq85uJ OiU2mNDiLbv6GRqkNIJH+Yz963pjPRqn404hYFAe7w78lOtnfQVuIEsLwMuHqKMqxzbA AO7IBoCtVyg3HVF1k4Lq2nEhZdTaaN6bjvyFMBgblVsj+TpJIoa04XuR+p3AZl27wLxQ bDipPp6ILyASWQsgFBVm856CBMf+DJGG74jMcOar5QSinWdfJ2mnv5Owynr2IvxLHX/Z Rpsy9aMxJ6gPB9UKJQXGF5je1EzJ07Mat+ckBuuXsOJcFrwVaaMpuwlXuSWVV7jkluvv z+KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OB7AoDPEbx16N2FTuQjUMhquk4mNQQxLjBjCTqR7wL8=; b=qPG5a12yUVkZC2PcJZVC7HYZ1CwJn1x8T00/WU7JVYaJA3KYdD1aO/DkpsTIQuUqkx d9RNaJE9fcgmCglSclDbsEZSH6r/W7IJbl0vnfoL0zjsclQl6PBpLlHJxWo7sOxKLdWS cywYygRCfRFPrcSud61hyKRi84ZoYynHl5iiHhIp/+5ToR7IpxgY0OMnwubdETbMk1td tApvZdvSB1r5+aa/BSjHNFyYtH0cFpNScT9EL4BwFtOlruJRUO0epRpaWoVuCCqHBLLt WOBs6S2agp5Gt9uxz8H2sSq4qB9Q0ncVGSYWm6iXDahEmDT9ulEvTkgfuJrvZmjt0Tqh 41wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YdQxBElt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u190-v6si1578132pgu.305.2018.09.12.09.46.08; Wed, 12 Sep 2018 09:46:27 -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=@gmail.com header.s=20161025 header.b=YdQxBElt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728061AbeILVty (ORCPT + 99 others); Wed, 12 Sep 2018 17:49:54 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:53743 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726798AbeILVtx (ORCPT ); Wed, 12 Sep 2018 17:49:53 -0400 Received: by mail-it0-f68.google.com with SMTP id p79-v6so3948371itp.3 for ; Wed, 12 Sep 2018 09:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OB7AoDPEbx16N2FTuQjUMhquk4mNQQxLjBjCTqR7wL8=; b=YdQxBEltGXq7O/4VT6w1sZPgIIACN56ojAK6YAk8v60GSVTtI7UZvy09AXXegk6eGp MR863XkuEDU3cNy3V5AKYihJG/h1r1dtiQm1BM813oD4nJUWpbRYQiLn0QPPHIuve2zO i8tYHCYSeJobfek9EJNvp7e/Rxb2WfJNexpaj8pNUJc4ZenIy02MhcRg2j/XFqzXyAeo 1IMFqEvTynF17u4rprb2F1wF+Q9DIkw/07CA7ig4ZLCFlSsck92a4BkL6n/st0vk/fDR ZWbQ9PZvCqpUCDX0MjVjTL46v9/6JqU4VCqaAmpkxbHrb59u3OSWDNyUPVdxlZuBdlwT AK+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OB7AoDPEbx16N2FTuQjUMhquk4mNQQxLjBjCTqR7wL8=; b=qGIt1aIU8fOA+kMnOqLDVw30eov++TrR0kZsBiJCFilkqQ1XwtNQItnfm5M0il9ApW uUgG/wOJEmMUkH8Sar1qFpfhLl76EAFpdYRmCqB6eVSevz1dhqw0eJRYDSIigZDy+VR7 Fp/QofbSj1TAPq6Sf6qZHWzlVsP4j3hMC/5HLmp5Y9iIJCz2l52aD7/ZYpY77d+f0yN4 QqsJDRmY5WekIudEUyhi2a+MrvTLCYz2G+Eke0KG+S85AHfbs6g82cvoa6LCFxbPf4oc kleKsSsOnFIf/dAKw4IrsI8NLmVvzvLfXDYKbtSILwcP/pEKe6FHHsoVkSyE8ZtR9Iu9 QnKA== X-Gm-Message-State: APzg51AqYz0lVmufelb3KLlaPdZarYLkflgZ6KhYPoNa9+zUaEx3Vkez OPfWcCyCBMGBZW3/i7oja979I1mbxWskMMoCTfs= X-Received: by 2002:a24:c2c2:: with SMTP id i185-v6mr2962254itg.76.1536770671233; Wed, 12 Sep 2018 09:44:31 -0700 (PDT) MIME-Version: 1.0 References: <20180910232615.4068.29155.stgit@localhost.localdomain> <20180910234354.4068.65260.stgit@localhost.localdomain> <7b96298e-9590-befd-0670-ed0c9fcf53d5@microsoft.com> <4d520227-52d3-6cd0-11d8-9be534097ea5@microsoft.com> In-Reply-To: <4d520227-52d3-6cd0-11d8-9be534097ea5@microsoft.com> From: Alexander Duyck Date: Wed, 12 Sep 2018 09:44:19 -0700 Message-ID: Subject: Re: [PATCH 3/4] mm: Defer ZONE_DEVICE page initialization to the point where we init pgmap To: Pavel.Tatashin@microsoft.com Cc: linux-mm , LKML , linux-nvdimm@lists.01.org, Michal Hocko , dave.jiang@intel.com, Ingo Molnar , Dave Hansen , jglisse@redhat.com, Andrew Morton , logang@deltatee.com, dan.j.williams@intel.com, "Kirill A. Shutemov" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 12, 2018 at 8:54 AM Pasha Tatashin wrote: > > > > On 9/12/18 11:48 AM, Alexander Duyck wrote: > > On Wed, Sep 12, 2018 at 6:59 AM Pasha Tatashin > > wrote: > >> > >> Hi Alex, > > > > Hi Pavel, > > > >> Please re-base on linux-next, memmap_init_zone() has been updated there > >> compared to mainline. You might even find a way to unify some parts of > >> memmap_init_zone and memmap_init_zone_device as memmap_init_zone() is a > >> lot simpler now. > > > > This patch applied to the linux-next tree with only a little bit of > > fuzz. It looks like it is mostly due to some code you had added above > > the function as well. I have updated this patch so that it will apply > > to both linux and linux-next by just moving the new function to > > underneath memmap_init_zone instead of above it. > > > >> I think __init_single_page() should stay local to page_alloc.c to keep > >> the inlining optimization. > > > > I agree. In addition it will make pulling common init together into > > one space easier. I would rather not have us create an opportunity for > > things to further diverge by making it available for anybody to use. > > > >> I will review you this patch once you send an updated version. > > > > Other than moving the new function from being added above versus below > > there isn't much else that needs to change, at least for this patch. I > > have some follow-up patches I am planning that will be targeted for > > linux-next. Those I think will focus more on what you have in mind in > > terms of combining this new function > > Hi Alex, > > I'd like see the combining to be part of the same series. May be this > patch can be pulled from this series and merged with your upcoming > patches series? > > Thank you, > Pavel The problem is the issue is somewhat time sensitive, and the patches I put out in this set needed to be easily backported. That is one of the reasons this patch set is as conservative as it is. I was hoping to make 4.20 with this patch set at the latest. My follow-up patches are more of what I would consider 4.21 material as it will be something we will probably want to give some testing time, and I figure there will end up being a few revisions. I would probably have them ready for review in another week or so. Thanks. - Alex