Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp130816ybv; Tue, 18 Feb 2020 19:26:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyOLbqJYV4i8+iHe8cvfQP7qVSuFv+0bx1wwfHdsrB2cKs5iBprfYyIdtkjTcXzJKtxjOdK X-Received: by 2002:aca:4587:: with SMTP id s129mr3274704oia.124.1582082796290; Tue, 18 Feb 2020 19:26:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582082796; cv=none; d=google.com; s=arc-20160816; b=do/jeF6s/podChgnP56Yf7UbohiD3zTaGTfmWuTnhaXeia7klUvdbvm6FqGncUSs63 oqJTdSHrONj5hDpu3W0oIAwGP7kzMPjQUFvEZPIr1oCBwXxrcuHujA9rR5t6WERSpriy A0qwZvhISKc0xwPAegbrjCGW7UAhxahcFG0KozRdTWmOmGG2bJy85Eb9LAQ8wtDNSjUL +uonTaw0HxksE4D5AQu4LE9Um/LAvUCI//yygrF6hKJOsC37aij6YKag0ygpcmTW0BYm xu2LRySFJMdF67IgBev3DPgQA+EMkJ8why1/1k3l6nXjA98z/8BvASOfNk7kD5hbHeMi MpqA== 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=V2GbWTOlmThm3aCwYqLI/qAi80/RcAs7bKNkpgMzjiE=; b=krMERtgz/+RRBs5laPBcIJd3uaKkGYrAiRnbhWg4jNr0q2mrNOzeJwBdsi4Oj3PXi0 jjMdfP+Sa2WxiBbSn5tqnoYsJO80XBODlI95LwCvyCeUhl8VD3/a4e19t9cAkLrOvxIW tl2kx/Y6qLoRS9NeVUkiiU+5f1uoayDyEbhaiXrFiH7AK8R2Yhqn/TW6k7Eskf4VWvNg tywKSCy6Mpr22QnXn4osUSnc/rV3sV6/5CH8ALJr5CCaYmVllqf6uK5PeNbVpm/1Sf8c BKqI7TiKXtxKPicC1j2v3T+irr0p/0usDl+QRCdUZNSWnssAdxWJ9ubGi6ZiN4LBqFzL lIew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=R4Gfv6ih; 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 v6si444790ota.19.2020.02.18.19.26.24; Tue, 18 Feb 2020 19:26:36 -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=R4Gfv6ih; 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 S1726739AbgBSDZ1 (ORCPT + 99 others); Tue, 18 Feb 2020 22:25:27 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:34841 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgBSDZ1 (ORCPT ); Tue, 18 Feb 2020 22:25:27 -0500 Received: by mail-ot1-f66.google.com with SMTP id r16so21807964otd.2 for ; Tue, 18 Feb 2020 19:25:26 -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=V2GbWTOlmThm3aCwYqLI/qAi80/RcAs7bKNkpgMzjiE=; b=R4Gfv6ih2l/vi3D5/mozVD0HHAOX3r6KI/XFNMUpw0bZ0W883+qK/w+cHSNZRmq9N7 JuoiAilWanaaUxT77D5bsMnLiHRQqCQoF7NyVBLeMI7EwXZq8e/YfIKau9Z5YgFXIm7a P4Lc/74ls4lSDopzAY99ErwSKfeQPo49jUGJMsSwOPOFkKjas/d5asMsq5Q8h4joH/1J b0gcseW8Hooqn1O6MCzjmVJ8XLntAU1+3xYoCeiH6AKts9JJ8KOF83BhsOb0cmyn44fg 1XwJdja2GTdO4dsPhsgNe8ypsI3yKZ1zryNp0dY3Am942lx7gtfSO16d9JAR6J/Pp5jk bISA== 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=V2GbWTOlmThm3aCwYqLI/qAi80/RcAs7bKNkpgMzjiE=; b=PRkIfgiApboE5Rz7qqqbZk8eOW/S6Mb9uxdtAqyDD1tXPQD1HD9Sj4qV3QDg0Mcxcb 9x9pK7Tjqyo/bJKd6f7WR2Ts1M6qmCb+KlA7fFD/m3PNFoAsMAZXpfM8wavuT6J+LHS1 grWItORrV5bc94UCM581J/zdlqdZYICQUz32JbNA+H0+2gx98i8q2nakieajKiltIet0 yaRkpBTphaR9DpuDXIhPTipC0+vdo7YAPxipkCTZPeDHTdbcy9tFv3IdIbZM8Rs6RzMP USWeYAFHU8eTX3bUlK78dJqWD4KYitv9R5zctA6FPx57rk98SnbHRuNcNno2R/irVQT8 7X3Q== X-Gm-Message-State: APjAAAWxwEy2ig+2B5YJKSFAFi2XkgKxT/cad5zoGDfy60KnOLGNC9G5 qembgy4eX8TtYk2ioc3C16NfzX2iRZOwfNN4gZWGxA== X-Received: by 2002:a9d:5d09:: with SMTP id b9mr17818653oti.207.1582082726339; Tue, 18 Feb 2020 19:25:26 -0800 (PST) MIME-Version: 1.0 References: <20200219030454.4844-1-bhe@redhat.com> In-Reply-To: <20200219030454.4844-1-bhe@redhat.com> From: Dan Williams Date: Tue, 18 Feb 2020 19:25:15 -0800 Message-ID: Subject: Re: [PATCH v2 RESEND] mm/sparsemem: pfn_to_page is not valid yet on SPARSEMEM To: Baoquan He Cc: 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 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". Other than that: Reviewed-by: Dan Williams