Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp644261imm; Fri, 5 Oct 2018 09:24:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV63CvvdHlprJPb0l40deUnT9Jn8CG8my+oan1IK7FUi1Iz+2t0QVpLmVrFnuTJzBb9Z00IV2 X-Received: by 2002:a17:902:b08e:: with SMTP id p14-v6mr12493574plr.241.1538756649902; Fri, 05 Oct 2018 09:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538756649; cv=none; d=google.com; s=arc-20160816; b=Ncf0qgUWa+1UyHNT0RMelVYgfueB9Yy4KQ6CpOwHg+X8Te9PdTN0I5dpVhyuYuxwFO QAh1+STfwFX8pcLo9g31O0rGwZmcaPGb4UXJ7lRSY1oQYWZEhhKMvhtn9x9LRW8cbDlG e4MtRvC7eSjBN58X86jL4AdZlmHGyR8d/RXVnMV0obiE6xdxJCn1YJqWGxq82WJCu5KV 4xsS+FzUcIDS2vm45soyd3HzUH05rNSq01zeZNSN3nv3Q4teytjepcMHGzxpulMnuOAr XioTtoejjdSYbWSEQQhTOyF9umlVj9BZF4IdkIRG/oluPIlmPXyXe3F6BtGnlQcFN6J0 4zpw== 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=3A95gTC3UBhjFMbTrQi/maD+GSnteQXniK8/YyqhrUo=; b=uKCNJUdzfzJMFMcnvU6wubpKXwggUaHOeIKkKDTcs/VX+KTLuqly+ibz4Azrn4TaYi 2fJIJUzaMxJW7ZgFE8FeeLTxfurWZaGbi6lWaGYsEGWsAF89MoBHmHU/oemMjZoV8j5h WRaNetB3Acpa5zyAHZ8VcysEWE4xCZ413xYCtFCbKIFugZHcZSHIBR6vLLhTZ/NodSjG KYLwD+ThxnTAhCrsUn7rmeraWaQu0gkNJXnTPb5BNCX/xkigRncf6HHMbTna1B+jlVyr YZwN9EtDQrZdYAHsWpuOTkBRMN2YcPKm5jTItnh0jlLm50zTF4QrhOOt8LloA+F6kJ8T MXDQ== 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 m75-v6si8758406pga.481.2018.10.05.09.23.54; Fri, 05 Oct 2018 09:24:09 -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 S1729630AbeJEXWk (ORCPT + 99 others); Fri, 5 Oct 2018 19:22:40 -0400 Received: from ale.deltatee.com ([207.54.116.67]:32854 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729931AbeJEXQK (ORCPT ); Fri, 5 Oct 2018 19:16:10 -0400 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 1g8SmS-0008D1-Iy; Fri, 05 Oct 2018 10:16:45 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1g8SmR-0000eV-S9; Fri, 05 Oct 2018 10:16:43 -0600 From: Logan Gunthorpe To: 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 Cc: Stephen Bates , Palmer Dabbelt , Albert Ou , Christoph Hellwig , Logan Gunthorpe Date: Fri, 5 Oct 2018 10:16:37 -0600 Message-Id: <20181005161642.2462-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-sh@vger.kernel.org, sbates@raithlin.com, palmer@sifive.com, aou@eecs.berkeley.edu, hch@lst.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 0/5] sparsemem support for RISC-V 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 Hi Everyone, This patchset is intended to implement sparsemem on RISC-V. The first few patches are introducing a common helper used by the sparesmem implementation in other architectures and the final patch is the actual RISC-V implementation. This is the first small step in supporting P2P on RISC-V. Thanks, Logan -- Logan Gunthorpe (5): mm/sparse: add common helper to mark all memblocks present ARM: mm: make use of new memblocks_present() helper arm64: mm: make use of new memblocks_present() helper sh: mm: make use of new memblocks_present() helper RISC-V: Implement sparsemem arch/arm/mm/init.c | 17 +---------------- arch/arm64/mm/init.c | 20 +------------------- arch/riscv/Kconfig | 23 +++++++++++++++++++++++ arch/riscv/include/asm/pgtable.h | 24 ++++++++++++++++++++---- arch/riscv/include/asm/sparsemem.h | 11 +++++++++++ arch/riscv/kernel/setup.c | 4 +++- arch/riscv/mm/init.c | 8 ++++++++ arch/sh/mm/init.c | 7 +------ include/linux/mmzone.h | 6 ++++++ mm/sparse.c | 15 +++++++++++++++ 10 files changed, 89 insertions(+), 46 deletions(-) create mode 100644 arch/riscv/include/asm/sparsemem.h -- 2.19.0