From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15DE1C34022 for ; Wed, 19 Feb 2020 03:46:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B1E0C20801 for ; Wed, 19 Feb 2020 03:46:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="H0oH321v" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B1E0C20801 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 582F46B0006; Tue, 18 Feb 2020 22:46:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 55A1C6B0007; Tue, 18 Feb 2020 22:46:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 497506B0008; Tue, 18 Feb 2020 22:46:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0154.hostedemail.com [216.40.44.154]) by kanga.kvack.org (Postfix) with ESMTP id 30EF56B0006 for ; Tue, 18 Feb 2020 22:46:24 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id B8A4D21EA for ; Wed, 19 Feb 2020 03:46:23 +0000 (UTC) X-FDA: 76505489046.15.kiss53_8f19ec3c2ab35 X-HE-Tag: kiss53_8f19ec3c2ab35 X-Filterd-Recvd-Size: 3040 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Wed, 19 Feb 2020 03:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582083981; 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=H0oH321vR9gx8ge2w9fTGEGrHLbk9dUGNvOA9HS2l4ECi0BnsnDS/0jug5ySS8noH1TR6S 69SQJRK0TcYJPYqD2KdO/jBIveFhh8d8p/MsJ6EHV/WNKzt7x3fMvP9/b33GxaR0HTujFb zRqK3ypTCZEda4tEJ1VMDSSuu0Wbj0k= 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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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?