Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp56006imu; Wed, 7 Nov 2018 12:55:28 -0800 (PST) X-Google-Smtp-Source: AJdET5fWA7ncSFOvQy0JNbglwT5wqGzcjqv+YpuZZOFqC4yEmEqzOqNQdgwtelnCCsuaihlq9/DE X-Received: by 2002:a63:e247:: with SMTP id y7mr1485244pgj.84.1541624128674; Wed, 07 Nov 2018 12:55:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541624128; cv=none; d=google.com; s=arc-20160816; b=Z0mfYyzJsorMi3LZ5ADej2oAoq4ZhkuZVthtoo/pEcAkQXk2BJhK8GGNU+PQyx70/B 6sg3nhE6qqSsp+VZF4GATFJhe9XXzeckkJsgE6CcE5UmCaJCmCGjwcRtgFTcW6oe7YKs QBcgXr5xmuAzzGUb4V3r3FIMG2g749etcffMluiGr4szzmVnGUqZZZuJS4sU5xaeQx7y B9rB+5rMEkF98vhU++H50AEfMAjPW1U46/MkAr52bV75QsJL19tmhxPQgoHjEgPmcM7z lbpW7D6oiLtk4COruA9XSCZq6r3KFBhmlAOPHyu0Bqast2TL4P8yhMqGgXBI23wL+EyZ o/HQ== 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 :mime-version:message-id:date:cc:to:from; bh=R4Izts2P2Ifk2FxnuILJiJT1RAXIShGsS/Lf7lqM0fU=; b=Qv+/vPu7LrrybOQAU46TpszkjmedBbhkQKpFFh98mxjQSlpuaPduPLaWbex2nACWcW Xy/CcLtuZLLqQ9vF+A0HimBixlJxUSjgdDqp9LMonmqeELxfQpps4EkoY62vps/mSZGl QMTNaNsyoC+PfIjmUlSXDTxK5iVivjwgyY65T82G2pZdwvV0ZLU0uB1jDC5SzcNYKIrX VzU7uCCFoYqlqaFJQnTFsZUbMAE8rv50qnwY+s75t1/N6eHq1yIL1BXlEovhxx8LZp63 FB/aLuqBvZXdq87A4md+uOtZMivKTmzwIMetEWnkKWEqMzWyQZUQbizT9Cv0v6GIGWld lFag== 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 v1-v6si1726692plo.134.2018.11.07.12.55.13; Wed, 07 Nov 2018 12:55:28 -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 S1727281AbeKHG0r (ORCPT + 99 others); Thu, 8 Nov 2018 01:26:47 -0500 Received: from ale.deltatee.com ([207.54.116.67]:49880 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726722AbeKHG0p (ORCPT ); Thu, 8 Nov 2018 01:26:45 -0500 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKUqS-0005zG-Dt; Wed, 07 Nov 2018 13:54:37 -0700 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1gKUqQ-00011F-4e; Wed, 07 Nov 2018 13:54:34 -0700 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, Andrew Morton Cc: Stephen Bates , Palmer Dabbelt , Albert Ou , Christoph Hellwig , Arnd Bergmann , Logan Gunthorpe Date: Wed, 7 Nov 2018 13:54:31 -0700 Message-Id: <20181107205433.3875-1-logang@deltatee.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-sh@vger.kernel.org, akpm@linux-foundation.org, sbates@raithlin.com, palmer@sifive.com, aou@eecs.berkeley.edu, hch@lst.de, arnd@arndb.de, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,MYRULES_NO_TEXT autolearn=ham autolearn_force=no version=3.4.1 Subject: [PATCH v2 0/2] Introduce common code for risc-v sparsemem support 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 These are the first two common patches in my series to introduce sparsemem support to RISC-V. The full series was posted last cycle here [1] and the latest version can be found here [2]. As recommended by Palmer, I'd like to get the changes to common code merged and then I will pursue the cleanups in the individual arches (arm, arm64, and sh) as well as add the new feature to riscv. I would suggest we merge these two patches through Andrew's mm tree. Thanks, Logan [1] https://lore.kernel.org/lkml/20181015175702.9036-1-logang@deltatee.com/T/#u [2] https://github.com/sbates130272/linux-p2pmem.git riscv-sparsemem-v4 -- Changes in v2: * Added a comment documenting the awkwardly named memblocks_present() function, as suggested by Andrew. -- Logan Gunthorpe (2): mm: Introduce common STRUCT_PAGE_MAX_SHIFT define mm/sparse: add common helper to mark all memblocks present arch/arm64/include/asm/memory.h | 9 --------- arch/arm64/mm/init.c | 8 -------- include/asm-generic/fixmap.h | 1 + include/linux/mm_types.h | 5 +++++ include/linux/mmzone.h | 6 ++++++ mm/sparse.c | 16 ++++++++++++++++ 6 files changed, 28 insertions(+), 17 deletions(-) -- 2.19.0