Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3131045imu; Mon, 17 Dec 2018 13:58:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/UVga0RaOkRY5i2WTknCIMhTQb5y+Y8dW2Rzov7pBpfSnJMFBQs0Z8tAypvX/d9WkAEih8A X-Received: by 2002:a63:f515:: with SMTP id w21mr13513003pgh.220.1545083933275; Mon, 17 Dec 2018 13:58:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545083933; cv=none; d=google.com; s=arc-20160816; b=VK37puBzg4SX09zGTLvqn56C35xyOlnepUi5Gbn2jRBjCgq5Q8d0+XShjmXX1lijyb Ti2IC09i6hg0py4uylmpgeLuixCShqTSiUrKdD3c7zKM9gvc8AW+Uo2AGrD2VXOQNIcS Iftq7NGBdSp02695l8+HtbUpICiE5d6QOFUlhZL4z+Btm6Gi8QWcEBJ1vFXgR2Jl7YVf IgHHv8hXpfezE2DqRZB22zkdMv53hFrHJhZaOW/U+yewz1YrtqnslFeoAhSQxmd4D52H 0E18Ir4e+Yl5/cd9ZLgDASlxCa63d6qoGAIvOjNnj2aXgyOFzCYiXx9oSInxM7YQ8HIR 9FBQ== 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=fXm8jDcrULjXifwXi33h24tFbJXiZ4/geSd1AjBS70E=; b=d4DcN+K2m322A5V0OJx+dHW/EqUaUItKtQ3O+t0cSqQydUidxDUpvCjI+O/JXRxr/y 0/BFeO7d1ApsqQkh8aiFRvmrPskuYexU9CA8yyEi7eZN33jqScZcmoKN2dzC/Tzl+nmG d6Q+DT7TuF2y6GsGpPqWaIqVviGSzakRxzuulUwg8MR/anH82xLXXlvgmPKnwmUcpXwF Pw4nr6id/MxnxBauK2rI7BBvCSCQypwyzHsBM83waIQmOkHRL3/J4InJWPUN+rcmJ8xW OHV/oglgNXa0X1N0WSMH1WB6XkS36uuDakK+1N+UOwgauduZAFzNq0K6vOJkJrvI+XYz A4Yg== 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 t63si11178175pgd.78.2018.12.17.13.58.36; Mon, 17 Dec 2018 13:58:53 -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; 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 S1732605AbeLQQvB (ORCPT + 99 others); Mon, 17 Dec 2018 11:51:01 -0500 Received: from ale.deltatee.com ([207.54.116.67]:33222 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbeLQQvB (ORCPT ); Mon, 17 Dec 2018 11:51:01 -0500 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1gYw6H-0002lM-Kq; Mon, 17 Dec 2018 09:50:38 -0700 To: Nick Kossifidis Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, Rob Herring , Albert Ou , Andrew Waterman , Arnd Bergmann , Palmer Dabbelt , Stephen Bates , Zong Li , Olof Johansson , Andrew Morton , Michael Clark , Christoph Hellwig References: <20181015175702.9036-1-logang@deltatee.com> <20181015175702.9036-7-logang@deltatee.com> <4b591ba933363e29392dba218ef63267@mailhost.ics.forth.gr> From: Logan Gunthorpe Message-ID: <5fd0880c-5896-ffee-4d3c-4fce1649382e@deltatee.com> Date: Mon, 17 Dec 2018 09:50:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <4b591ba933363e29392dba218ef63267@mailhost.ics.forth.gr> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: hch@lst.de, michaeljclark@mac.com, akpm@linux-foundation.org, olof@lixom.net, zong@andestech.com, sbates@raithlin.com, palmer@sifive.com, arnd@arndb.de, andrew@sifive.com, aou@eecs.berkeley.edu, robh@kernel.org, linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mick@ics.forth.gr 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 v2 6/6] 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 2018-12-17 7:59 a.m., Nick Kossifidis wrote: > Having memory blocks of a minimum size of 1GB doesn't make much sense. > It makes it harder to implement hotplug on top of this since we'll only > able to add/remove 1GB at a time. ARM used to do the same and they > switched to 27bits (https://patchwork.kernel.org/patch/9172845/), ARM64 > still uses 1GB, x86 also uses 27bits and most archs also use something > below 30. I believe we should go for 27bits as well or even better have > this as a compile time option. Thanks, that makes sense. I'll make the change for the next time we submit. > BTW memblocks_present is on master now (got merged 3 days ago). Great! We'll send an updated patch set after the merge window. Logan