Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp758333ybv; Wed, 19 Feb 2020 08:39:21 -0800 (PST) X-Google-Smtp-Source: APXvYqy/yduSL+nSaOvsGNZJ8IXI2vOLYr6iQRDc9u5h+P9T5dp3RPt9Et8VuzroDT/jgtknUKhs X-Received: by 2002:aca:50cd:: with SMTP id e196mr5134101oib.178.1582130361451; Wed, 19 Feb 2020 08:39:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582130361; cv=none; d=google.com; s=arc-20160816; b=F+5q1eQ0i3ILmuBVLliCAHyhMUAHUi13gKKm4QwWljoW8xmVE67ovqJEvduiuogWRQ wwNEo4lDff/Q4DX0vP4BjqaVl8JwNTs1hXWBoAcXroKcKUPzpLFpxmUPu3W26Oubyx5m 955tsYJKnDrYuTjXTEGSxCqWDCLfquTnMktv/8/2aC2TPl/McF27/0MR0l64hpasxDET Ha7URSzljrRslZk/Jtpzji6WrEhU7GP7Fd8pjz3TrFLpl5W47Nb8C7AQkjyGdBQxao9a umfRy0bjgEpHImNlEpOfwGjfZ0eI6xOozchA7eluvu4KMZ9TWc/s2AwwTniAEmqVHvC+ fbtw== 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=iSsfOBW1rnJ26Vr6Y/Sa9MI6os2MsKzLmHRcdZqPPC0=; b=mBL9bKBBHS/iV7TOiP3i/sRbAP6QYomcnFxht/OL3JeomsWycQVctFwbtQ+gxdCinn 4NhQ1SywpmRP8Z5LX0xS+6aNtFjBOXiP5g1hyCba8JmV7gzy83qB50Wj3UEyx0SraDFe sa3b6hILkvDiIQPSk1deqjaW1nDaEfryZehAiczfq7GetOHgpJcVRWoUwwGBgerSt1Sy bIDNrZRPNQ8GTrsrmzzMIZZg+KWS6/zV2jEyTzFwLs8hduSIXEaF8ORLvqxk4THVZ0YY +0l3kkqwambZtIOmnDnrn5ThFZufD/JALC2jZJDpnKt8paChYDMBxXKKvGVNxOwVKu1n BWhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=b+UsIt9f; 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 a143si9463210oii.179.2020.02.19.08.39.09; Wed, 19 Feb 2020 08:39:21 -0800 (PST) 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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=b+UsIt9f; 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 S1727206AbgBSQhh (ORCPT + 99 others); Wed, 19 Feb 2020 11:37:37 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:45859 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbgBSQhh (ORCPT ); Wed, 19 Feb 2020 11:37:37 -0500 Received: by mail-ot1-f67.google.com with SMTP id 59so694270otp.12 for ; Wed, 19 Feb 2020 08:37:36 -0800 (PST) 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=iSsfOBW1rnJ26Vr6Y/Sa9MI6os2MsKzLmHRcdZqPPC0=; b=b+UsIt9fkyZ8iGryZtZyohqg6R/VATs/6iMW6i+XQK4N741jwE+n2AxK3dUsh/6+K5 eIXmCJbSkd+LUj3iTJWRNAoUVUC5Tu1X4c4Ki8zsO9y3sMxr7U/9dSxyh3C1p5sNHi0N SYGQvadeUGkkREFLoJJmmXVn8Og9pU/vFCDSai+QYtX1CoxYoZ4J2oefAAAI2jDnmp4f ofBrFqRdVSYxa4nW8Hfr8WaXxsxpK4+hlQU8YmsHgAjjYASEkKJyyo2KarfXQjGSf5Ot vOAVan65Ipr039hQ7zjiwohZ65MislEBrHxR4J12En4Gvncpct4/+pVgSqAuWrPJX47O likg== 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=iSsfOBW1rnJ26Vr6Y/Sa9MI6os2MsKzLmHRcdZqPPC0=; b=UiJ2P3zAZdgCvMfQI9b+kz35td+iIIz89ac4NIX4yIlOUfiOoP+CtCjqNcqJQaDnZt hGJfNg2JeEvP1HAdXPhxX6rk3/LmpNGFPdwl1mrVDWh+uD88Sd/5WhxZmYVyDdO1TV6f cVV5PAbv552Zw1AC8w3b5AjIDTHx/nodH/DMMUG5EABYpaqGTYEP5EzWN2dHlugzvAG1 1oKDovxAOaSX0MxouVC7SBkmN3WG3rZyzX6OiNJ4WtX+4kqDcNSZ2LsyPFtAM5wwuE0R SgMCHGhgzhbrWm80n6HmE9t2KYG2qCgNq+g5ZSh6XmqtHPReEvFLrqad3anbkBF3kHjS uOXQ== X-Gm-Message-State: APjAAAWABR7Fk27XVMrpzZTF/7KT4WScncTbvCr8JufqpQDr61b082vX wF6xw35klzEfgTi31RRQlVHhquplo/sXqYI7Ot+YnQ== X-Received: by 2002:a9d:4e99:: with SMTP id v25mr20935125otk.363.1582130256442; Wed, 19 Feb 2020 08:37:36 -0800 (PST) MIME-Version: 1.0 References: <20200219030454.4844-1-bhe@redhat.com> <20200219085700.GB32242@linux.ibm.com> In-Reply-To: <20200219085700.GB32242@linux.ibm.com> From: Dan Williams Date: Wed, 19 Feb 2020 08:37:25 -0800 Message-ID: Subject: Re: [PATCH v2 RESEND] mm/sparsemem: pfn_to_page is not valid yet on SPARSEMEM To: Mike Rapoport Cc: Baoquan He , Linux Kernel Mailing List , Linux MM , Andrew Morton , Wei Yang , David Hildenbrand , Oscar Salvador , Michal Hocko 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, Feb 19, 2020 at 12:57 AM Mike Rapoport wrote: > > On Tue, Feb 18, 2020 at 07:25:15PM -0800, Dan Williams wrote: > > On Tue, Feb 18, 2020 at 7:05 PM Baoquan He wrote: > > > > > > From: Wei Yang > > > > > > When we use SPARSEMEM instead of SPARSEMEM_VMEMMAP, pfn_to_page() > > > doesn't work before sparse_init_one_section() is called. This leads to a > > > crash when hotplug memory: > > > > I'd also add: > > > > "On x86 the impact is limited to x86_32 builds, or x86_64 > > configurations that override the default setting for > > SPARSEMEM_VMEMMAP". > > Do we also want to check how it affects, say, arm64, ia64 and ppc? ;-) Sure, I just did not take the time to look up their respective default stances on SPARSEMEM_VMEMMAP. For a distro looking to backport this commit I think it's helpful for them to understand if they are exposed or not.