Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp144330ybv; Tue, 18 Feb 2020 19:47:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwEUz152G8oBn5QNnw3L2Ewr5c1ojo1OLEze9js5bSOvugfVBR5MeAl+01dkTD7jo0iULG6 X-Received: by 2002:a05:6830:50:: with SMTP id d16mr18214391otp.166.1582084030658; Tue, 18 Feb 2020 19:47:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582084030; cv=none; d=google.com; s=arc-20160816; b=Bv8EUgvEqCkIK7EcwA/jm50bAlbnaA3cuwWDfh05EC2bdwA9pfFTWbpdD1BzwIDw24 hK/7eOuab4/31I1ZeIj2B41sEw8Qez6t0kBXmMfgSh0b0k4rc6NWVHaMr2YLGU5Sqju9 9xC5s6CWhcGyiluKfjPZDfKzCqTky477S820QUuQifzOrc+CHIfPWJAKzavGdTrV5AWK CX42Ya5QUj/xjPbBKgtijiRUIFaaFuntVgMCq4C/aP55Mc0hnOL6e/MQExWpmE1Po5Jg usJ+/wb5GGMAi7wfJInpXPnMNDLn4YQIYwP3iTWoNNXALtchlo2YPNNMT8GTzm34lK6Z pf+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5voZACXFV81htqnt4nR2mt4oTLYSPf9zR9T58PnHHYo=; b=zQYc9EORoa20ZOJjB5TbkkhFxhL9791AD4+PEoEHRDNQLVOVX4VyCA52CfeEmuuNjd ghTDObnQGEdiQnqd99CC3Y9VEetVsd2j//AzaxDPN1JqlnVueGTBL7GY8Iajx3SZkGXX duq7x99OtBxZXmNU0lF1v1BAjrUqJelH45QfkaEXdLXfUS/o9urGlRKUiZODPoao3dQ8 ivPkVP866Y9PSQmAQ4VGPQwvPNwF6t8+wRea6MoYNhfpPGVeOO7+BYo11FA7d1LUtx/F HQZfxJ85FsQdt/saGFDyQaV/g+RLB22ox9ClTQ8iHP7r+sQRXUddT+nC0pc/8cQpsdmG cDzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J1qtW8nY; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si449573otn.323.2020.02.18.19.46.58; Tue, 18 Feb 2020 19:47:10 -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=@redhat.com header.s=mimecast20190719 header.b=J1qtW8nY; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbgBSDqY (ORCPT + 99 others); Tue, 18 Feb 2020 22:46:24 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:38606 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726439AbgBSDqY (ORCPT ); Tue, 18 Feb 2020 22:46:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582083983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5voZACXFV81htqnt4nR2mt4oTLYSPf9zR9T58PnHHYo=; b=J1qtW8nY2Ljocdr8vVuFkfVudomMQHUIVFp029Lsfnp8CkFDeNzXfgMhuw3tTl0soduZcf WvLquHnK+pUyOA+PZ54Wth3lC+Gw13YJRkQQugZwbjQ4wvDMcogf5U/Z7dvLA1E1NPsT30 l8hkfHd/nxqpTr2amXxZJCx1Txxg3QY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-133-_BJfIkVtNZyK6a-9dyXMLA-1; Tue, 18 Feb 2020 22:46:19 -0500 X-MC-Unique: _BJfIkVtNZyK6a-9dyXMLA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2E5998017CC; Wed, 19 Feb 2020 03:46:18 +0000 (UTC) Received: from localhost (ovpn-12-16.pek2.redhat.com [10.72.12.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D95425C13C; Wed, 19 Feb 2020 03:46:14 +0000 (UTC) Date: Wed, 19 Feb 2020 11:46:12 +0800 From: Baoquan He To: Dan Williams Cc: Linux Kernel Mailing List , Linux MM , Andrew Morton , Wei Yang , David Hildenbrand , Oscar Salvador , Michal Hocko Subject: Re: [PATCH v2 RESEND] mm/sparsemem: pfn_to_page is not valid yet on SPARSEMEM Message-ID: <20200219034612.GB4937@MiWiFi-R3L-srv> References: <20200219030454.4844-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/18/20 at 07:25pm, 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". 'When we use SPARSEMEM instead of SPARSEMEM_VMEMMAP' in the current log is a little duplicated with the overriding saying?