Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp131688ybt; Tue, 23 Jun 2020 17:21:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjSSQRnRBplUFNm+9mesS6buwSHW4b6xAbQhLnGp+ux3GlQiGMkacdBmFiRke32IbDRays X-Received: by 2002:a17:906:1b1a:: with SMTP id o26mr22045056ejg.176.1592958109008; Tue, 23 Jun 2020 17:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592958108; cv=none; d=google.com; s=arc-20160816; b=G8f1W0froZtth0BSn85bbYQ8S6J6NzInigg581LfHHulZ9fr6gYld1NcSStNTd1770 aG3QxDQ5LGGRLvYINbG/KCgkgjRQ6+qMXepi4ibExl2IrUEXLAGI3g17wrx5d4y/caX6 pCDD9SFyjL1ugqXxNjP+Glf38Lo3dhwsyaGUe30gc+9XiHko3OkPibEDrfboXX3xd41x 9e+QGfR7gK5G6mOIm2DqpAwe6aWA21XjDKWgcwBnHPLebpsyxHsOREiRXMBw+wVPtHEW TbCnthgwGNWvndYKnTiSv4G/PpKT9UIHijdSb20wopgai4BsrfnIeQJ7xz3fTa37ZZUD RVVg== 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=YjofI1mwRo44tuHI1N5pBCiCgd6VCF1mc9VUJRDcqIs=; b=Bvm2P1JNo9PifA7dVJ9NNPFeyAK3wx6mQcDjiCmtT3nRDcB94ag5+9scBJVchSkjcI zFDYzo/7FvUzhp36PwaePijlqwFFga99XUc+jX+5rb8GD5+RPE9QrKb3qZf9HhOx1w5h lUS1ihoGI8O2b8evCSU3aeae4xn3LEdZv6oUSsmimgW2xxRRZyE7YJykJwSp0KavudKj nokQfAzzibwz7keHNHVm0GDXaODOVub0E4qd6fnerDWbqbA8dfaz1NY2U4cR6ZUcbgGK RmxSGULkxMBOluuZmpjG6BGKSRRsBni42BL6DwDE4jwwcLSt9jJ5Lwtq18u3h0c6qk25 29ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=ssqhSLNF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n3si3778373eji.720.2020.06.23.17.21.25; Tue, 23 Jun 2020 17:21:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=ssqhSLNF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2387829AbgFXAVU (ORCPT + 99 others); Tue, 23 Jun 2020 20:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387693AbgFXAVT (ORCPT ); Tue, 23 Jun 2020 20:21:19 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B0AFC061573 for ; Tue, 23 Jun 2020 17:21:19 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id e15so160936edr.2 for ; Tue, 23 Jun 2020 17:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YjofI1mwRo44tuHI1N5pBCiCgd6VCF1mc9VUJRDcqIs=; b=ssqhSLNFQwECvtfaqEByEmRnEvWZatoj9uZz/B5DwW54j2FQkD+Mz8lf986nWsFj/O 1VC/kYFfNJO2rSdKjYE0GZCOUe5M5hJ5dg2KoN+JnjPhFOOrYlBmMlFRDatO0eEcxkR0 ksGOcOp+yRJistWUEvSGzHGi0hWfgHApW536ZGxkx/ImlMQKKXTcRuHSTIeBt7JQ81Yh HPEW+6hx5rs1StxvLyah0FQP6QKXp7MUU5rjy9rgkp9osi1jCGckkybB+xUVoa19Tskt VcALBCPvxE2v4E3Do0asAE3bqTsJ2fs0G4MkURwA7zCpig8K7hrKmGW86vThgpxSuA/t QChg== 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=YjofI1mwRo44tuHI1N5pBCiCgd6VCF1mc9VUJRDcqIs=; b=FLGDMhYy1jIBJcj24YV5o0BA1B0JkzvRAxW26HGRB4a53ZA//9WITeSB2qKNRLM7Zm SmPVqH11BL3jYR8GlUREQBa+wNnDsgLspdTHA1KZtW1Jv3l6KYfZuix/0lgAUmX9MSCQ nVompBSfP5pys/fKKKXEQYvE4ixvtBjNAXR7l6w0hnIMhrlfcb5NYTv/ioKE1i9DAURV dQXLqqNLuWyN2ge1MmBrtXxwkoFubvCAPVvnBH6zaUyF4s19EiTcDJj8Irti8nrLYcY6 FtgjVZreFIVs3L7X3Mo2VYkkvesnLT5sGZn1pDrn9NXWm7NT6+ZsdtZSxAY/vvFTz9Ut cJEg== X-Gm-Message-State: AOAM532Xtcs2Eg9FCxeIrUGCIBwmIOA0FqWZxi+y0FXOT5Jn9XTnfqr+ Grbc4LhQiTDG9cR6Nm8yWxkPbhXGbvm+dGJMJjzTEzd3 X-Received: by 2002:a05:6402:21c2:: with SMTP id bi2mr24132581edb.296.1592958078019; Tue, 23 Jun 2020 17:21:18 -0700 (PDT) MIME-Version: 1.0 References: <20200623094258.6705-1-richard.weiyang@linux.alibaba.com> In-Reply-To: <20200623094258.6705-1-richard.weiyang@linux.alibaba.com> From: Dan Williams Date: Tue, 23 Jun 2020 17:21:06 -0700 Message-ID: Subject: Re: [PATCH] mm/spase: never partially remove memmap for early section To: Wei Yang Cc: Andrew Morton , Oscar Salvador , Linux MM , Linux Kernel Mailing List , David Hildenbrand 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 Tue, Jun 23, 2020 at 2:43 AM Wei Yang wrote: > > For early sections, we assumes its memmap will never be partially > removed. But current behavior breaks this. Where do we assume that? The primary use case for this was mapping pmem that collides with System-RAM in the same 128MB section. That collision will certainly be depopulated on-demand depending on the state of the pmem device. So, I'm not understanding the problem or the benefit of this change.