Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6331177ybi; Wed, 31 Jul 2019 12:23:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/5kRyJGFIZlg+2QxLyU1gEV22wGZY09z4d6TkfiakERK0wWMH4vPtILZLJPBUs5DW8F0g X-Received: by 2002:a62:107:: with SMTP id 7mr49471188pfb.4.1564601024865; Wed, 31 Jul 2019 12:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564601024; cv=none; d=google.com; s=arc-20160816; b=V8AuxWKDZLZWhD5oEFOQ5V0sQMs0YvSKLkVEZSFbDtB6MjuF3/eejf8n+PSmZ1PH+9 TX6a2pJT5ntWV1VdHvhrYT+E37OUwlWymYGyG7ey2IEr0yJgTHVBG+5MOD98dZEg9Myo XQRg212t5BCKQLXOibGT65PfPmHc2oxOXcmre9eURuvwEC/dX3s07h85TVOYxR6vKwVU eHDvrX6yyLxtHnPCkcLjVwORrRq8a3EKRyKrjaoSWFcBIX/HDobzfttxFBtnGDv98EcP TuSxMI1O2WWCwPUtRKSJZE3cuyvLozDcCVLCKYMMnrr4yszF6m7kOgBASENqvNTpmdIh vj+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=fzivddC+4yDMUGsMOvGt+hcgpD1eQibOfNSxwM3Tdvc=; b=oMlbsdH+OEh2vC+DsvZLYGUp+rK+hD7XmEDl5XGRNXU+fjtqreVvvnI1r7twwOdGRj Hd0r/t28HqQI9IdGApelZx0ftht9R5qwnmg7MRrEeNiv70TedV9T/YVaBR2MZYChdTYa /lnvxMayrWzOMzlJwTqvUN1xDTKPpIeMx6LEPXiRQxMPjsEehmIL57ezPHHtysEpIMcQ ih1PNLH2WQww5m6hld2HvjKPLaaFfx/M42I9vpgdudHnzuSZ0GQk9pJEWuk2SfZF4rIn Byt29yxZTJUOA+uZYr3DpouhfFlofuIhbj4OuBF7GX3NHJG/PpQqcCGTPtKRYzCxvr6l kyPA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si30832509pge.44.2019.07.31.12.23.16; Wed, 31 Jul 2019 12:23:44 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730074AbfGaRIB (ORCPT + 99 others); Wed, 31 Jul 2019 13:08:01 -0400 Received: from ale.deltatee.com ([207.54.116.67]:33294 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729920AbfGaRIB (ORCPT ); Wed, 31 Jul 2019 13:08:01 -0400 Received: from s01061831bf6ec98c.cg.shawcable.net ([68.147.80.180] helo=[192.168.6.132]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hss4m-0005K0-0o; Wed, 31 Jul 2019 11:07:44 -0600 To: Greentime Hu , greentime.hu@sifive.com, paul.walmsley@sifive.com Cc: Rob Herring , Albert Ou , Andrew Waterman , Palmer Dabbelt , Linux Kernel Mailing List , Stephen Bates , Zong Li , Olof Johansson , linux-riscv@lists.infradead.org, Michael Clark , Christoph Hellwig References: <20190109203911.7887-1-logang@deltatee.com> <20190109203911.7887-3-logang@deltatee.com> From: Logan Gunthorpe Message-ID: Date: Wed, 31 Jul 2019 11:07:34 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.80.180 X-SA-Exim-Rcpt-To: hch@lst.de, michaeljclark@mac.com, linux-riscv@lists.infradead.org, olof@lixom.net, zong@andestech.com, sbates@raithlin.com, linux-kernel@vger.kernel.org, palmer@sifive.com, andrew@sifive.com, aou@eecs.berkeley.edu, robh@kernel.org, paul.walmsley@sifive.com, greentime.hu@sifive.com, green.hu@gmail.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH v4 2/2] RISC-V: Implement sparsemem X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-07-31 12:30 a.m., Greentime Hu wrote: > I look this issue more closely. > I found it always sets each memblock region to node 0. Does this make sense? > I am not sure if I understand this correctly. Do you have any idea for > this? Thank you. :) Yes, I think this is normal. When we talk about memory nodes we're talking about NUMA nodes which is unrelated to device tree nodes. I'm not really sure what's causing the crash. Have you verified it's this patch that causes it? Is it related to there being a hole in your memory, does it work if you only have one memory node? Thanks, Logan