Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3004823ybl; Thu, 29 Aug 2019 16:43:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6hsLb/2DSS7dwqnssrQl3xV0C4AP4jQ4CFeDdVU1lCwr4P0ReygmbAZs0q582pV1F+l5y X-Received: by 2002:a17:902:d898:: with SMTP id b24mr13123301plz.7.1567122205108; Thu, 29 Aug 2019 16:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567122205; cv=none; d=google.com; s=arc-20160816; b=HgMa66R7Nnkei4N4I4K5XwNkrU6qYOBG12f3MmmonfEeyzxq+yLOWLCcz1FziuqWcu Yv13mHKJCf5/Av2DJnuxg0/H1dCYZSbzMSZh+q2wQt5XEz3cJUEKrWpIuXiTR7Al54Aj K1l3xuq1MZJCh865BNGZ1EwnU5ifK/7S++RWP1m3rdTUfpKCKPKfZ+BRe8mXMxfTKGDt o0hZVzf1j8cTOgI+HZh+vHaBTLRwAXRyDQsbgsWBa+ims1sXuiOY8m5z1m086PcJqeZT eT8Fu/J8pfmhMdIIDEG3wI3ihXLJBslnipx1nfHMgs0DvL1u+5psqakboBN8Zti3DMqF Rhqw== 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=gLcwhBZx0S1xXZWD6hXtKxRay0vkqBjGMB8PbANGCzw=; b=IN4GdGKfud0OEr3GjwdqBz82hjx8TLHC9Pwn5RYGb+2aRI13JdeT1HtDyxEz0OfTBv fU37Zj+3w4/Dk+xw8rDwt1Yx6wEf9KPaXDpaWorH7KN4LDpFqCxMVBWsiRzp1BMGJ8Sp Mjs6kVhj3vy8XkMuNzU9ltpsSx7C9VD63zRAyxuTt1KFvJbDkJod3TF9I+7ADCH9f2op 0rvMrGrVvjkazk4odVX2JkRshvmU5NmCdVHmTw17/41g4HA4EfQ70EZKKMNz671HL7J1 PnLyRPSMwtCNHEIeajgSQFTwoQuuWV/pUoqD/+jXNkc1bDsnOx7NoivnHdGVopes4IfJ dvZA== 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 w13si4050760pfi.181.2019.08.29.16.43.09; Thu, 29 Aug 2019 16:43:25 -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 S1726825AbfH2XmM (ORCPT + 99 others); Thu, 29 Aug 2019 19:42:12 -0400 Received: from ale.deltatee.com ([207.54.116.67]:43546 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725826AbfH2XmM (ORCPT ); Thu, 29 Aug 2019 19:42:12 -0400 Received: from s0106ac1f6bb1ecac.cg.shawcable.net ([70.73.163.230] helo=[192.168.11.155]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i3U39-0003ai-9a; Thu, 29 Aug 2019 17:41:56 -0600 To: Paul Walmsley Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Palmer Dabbelt , Rob Herring , Albert Ou , Andrew Waterman , Mike Rapoport , Zong Li , Michael Clark , Olof Johansson , Greentime Hu , Stephen Bates , Christoph Hellwig References: <20190828214054.3562-1-logang@deltatee.com> From: Logan Gunthorpe Message-ID: <58b828bd-d691-f460-49aa-7e6f15180343@deltatee.com> Date: Thu, 29 Aug 2019 17:41:52 -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: 70.73.163.230 X-SA-Exim-Rcpt-To: hch@lst.de, sbates@raithlin.com, greentime.hu@sifive.com, olof@lixom.net, michaeljclark@mac.com, zong@andestech.com, rppt@linux.ibm.com, andrew@sifive.com, aou@eecs.berkeley.edu, robh@kernel.org, palmer@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.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 v6] 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-08-29 5:38 p.m., Paul Walmsley wrote: >> +#ifdef CONFIG_SPARSEMEM >> +#define MAX_PHYSMEM_BITS CONFIG_PA_BITS >> +#define SECTION_SIZE_BITS 27 > > Do you have a specific rationale behind this selection, or is this simply > a reasonable starting point? It's inline with what other platforms are doing. So in some ways it's a reasonable starting point but I don't see any reason to change it in the near term. >> +#endif /* CONFIG_SPARSEMEM */ >> + >> +#endif /* __ASM_SPARSEMEM_H */ > > The following is what I'm getting ready to queue. Great, thanks! Logan