From patchwork Wed Nov 7 17:38:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Logan Gunthorpe X-Patchwork-Id: 10672769 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F1A87175A for ; Wed, 7 Nov 2018 17:39:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2DDD2CCEF for ; Wed, 7 Nov 2018 17:39:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D74712CD0C; Wed, 7 Nov 2018 17:39:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DD952CCEF for ; Wed, 7 Nov 2018 17:39:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6E4F66B052E; Wed, 7 Nov 2018 12:39:05 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 693D96B052F; Wed, 7 Nov 2018 12:39:05 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 583CB6B0530; Wed, 7 Nov 2018 12:39:05 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by kanga.kvack.org (Postfix) with ESMTP id 2FECE6B052E for ; Wed, 7 Nov 2018 12:39:05 -0500 (EST) Received: by mail-io1-f69.google.com with SMTP id q22-v6so20545444iog.9 for ; Wed, 07 Nov 2018 09:39:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :date:message-id:mime-version:content-transfer-encoding:subject; bh=z7XvUKuvTclZTHbOsAcrJcACdrVSo4XHzvVdzCC1kgY=; b=lTKAhjk5Mb0b//djg8EoARyjhxf7PbpRhclXzrCF+kWcUcDKJKtaWYxtdMVOSCYO02 PnbctfVPZlBC5fVzzssIpV2B9FkVTceL8CmSVo0Gou5tCA35Izf1HvXPamdg1Gq28DOW E8QVGry1xHPQm0Ri453pJGH/JXYEYCqlbzLc9DQcA0ucPyILfUbwz/gGpPE4e7J0Fsoj u/bMGXqUfHM3Iy72hnhc3JZZcK67aA/QcfPD2G7jrWwkAtuDcfh4CwWsTyECgk03q7ae dp9S1Jxa6OPJaFlTFqmo+DIp780JaMyoqAGW6v8NNU8FgvONK2k/BROYlPbhWriwzdsr rqeA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) smtp.mailfrom=gunthorp@deltatee.com X-Gm-Message-State: AGRZ1gIGNpyLRTUwoCGZSYqon/jrbXA5II40CrA+YB1Fepnzv6RdFJFz EUNKYnx9aWJ8Hm9momIiJKuDmRT8AYnDcIY1skKzbz38qwx2CJdh4wNe8V5j3LO/xlPpHGK+9Rs zp5Kpwpp/T8V1wXO2ZmYXPmW8wlToQENbBOAk85iXO2hXFi2rLeSEQz+SIdkUwky8pg== X-Received: by 2002:a02:194a:: with SMTP id b71-v6mr1136368jab.49.1541612344896; Wed, 07 Nov 2018 09:39:04 -0800 (PST) X-Google-Smtp-Source: AJdET5e9vRM7agGWgCY48szVh97+aZwmVmnWivwnnREstpNHGHwiE0gsVuMgbgoqQyTw8+ju9/9P X-Received: by 2002:a02:194a:: with SMTP id b71-v6mr1136310jab.49.1541612344175; Wed, 07 Nov 2018 09:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541612344; cv=none; d=google.com; s=arc-20160816; b=XBTI5VZfIvpRIFKv4TiWgLaF9KBj5SqyJspbdgMkiZT3HGAWIsL5757ZqeN7r7J25M e0YXTjkUCH0IE9P7HUbOYZkTRA4mWsdJEHcHaiybX2opu+8kr7Zq32C1l4gkVUwiFijV 88lsIgKRrsZQC9jI6+ivlU4caftLjhqOsis7Zh2+YSuIhsAJhT2vyROcodhVKZs5NUFW k+QP5JHtz0PD5+z7e7VAA7+RNl0qcEz43bBZCoKO/MQVUpqjQSzV0vVOg6QJDdKE7Wf0 tFuODvSL8BawcXjjMbENeoGhWomyFx1Eqn3+cNrGGwHAKu4Ztvlol9ISvcnvPMGmvG2A MVxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:mime-version:message-id:date:cc :to:from; bh=z7XvUKuvTclZTHbOsAcrJcACdrVSo4XHzvVdzCC1kgY=; b=BW8J5dQXzax1a2a8FJTa/H6lA5LZ0YJPEu3xg2JnhzmV5czcPDIquSzLyPSU2tVXv5 Cl6IeT9uVPYrpJNIpMCG3DxfDEChOtUsMs+YjOl9XsRMY9Nh6DQ8I211TIEu/LJRQ7ew LC34KE1X5qqloibUZG4NPVFdJeo66Pm5UDy0Y44FSY+ooqU8Za6z8eKJOx1eJGGua0Qm 0X7RgF/ESHRxNorO5tbE+e7lP/CgLk3D1esizisHV8ZuHzY5bEUqUT33qiB4EuDvbhoi prD+7kuX5Oi8H+Tub6P3gZTF1/1huePIasG7Wyy05IDqWGms/X3Eg8UwKiW/1ztvzFCg ElxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) smtp.mailfrom=gunthorp@deltatee.com Received: from ale.deltatee.com (ale.deltatee.com. [207.54.116.67]) by mx.google.com with ESMTPS id q18-v6si1126144ith.124.2018.11.07.09.39.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Nov 2018 09:39:02 -0800 (PST) Received-SPF: pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) client-ip=207.54.116.67; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) smtp.mailfrom=gunthorp@deltatee.com 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 1gKRnB-0003U4-9G; Wed, 07 Nov 2018 10:39:02 -0700 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1gKRnA-0006HO-C1; Wed, 07 Nov 2018 10:39:00 -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 10:38:57 -0700 Message-Id: <20181107173859.24096-1-logang@deltatee.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 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 Subject: [PATCH 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) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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 adding 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-v3 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 | 11 +++++++++++ 6 files changed, 23 insertions(+), 17 deletions(-) --- 2.19.0