From patchwork Fri Jun 28 04:44:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 11021405 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 B208B112C for ; Fri, 28 Jun 2019 04:45:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A05DF28735 for ; Fri, 28 Jun 2019 04:45:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93BC128739; Fri, 28 Jun 2019 04:45:17 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8532728735 for ; Fri, 28 Jun 2019 04:45:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=Kl57kQPWTBc2H5n8fNBWEHcadRBmbKG2KUVwXCCGMho=; b=oTT Z0+qsyhluOtnCoSZxsmW5WDjLzkHgroYd/0gj/Zyqm+U1BOEh5/tAz7qboHN1Ha5D44tzo7kZLbNO tQNzAVlDpyVfzpeSCOoHuhCw99rmKOHaHUFPLlhG30FagXfBjXEMwywOgPKu1J4zoNcMmics/RCzD ejVoHMuFakcIbSA4fIMdBk+qJ19vSV1tAXWYkxuJ+fnKT6+P4SETGGNv1DStwnkkV6zMvvqOSjbhP 6BpT3czkjAPR7A5R88C3DoHXqzfH2l0y1GHQN/lCFgTudLg2xBagBG5Thza4u7ec/pMDnrTLofhlb NoPKYCisVqt72kcqeeNS7w6eZcRCPUg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgil5-0004ZZ-TN; Fri, 28 Jun 2019 04:45:11 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgil1-0004MG-9L for linux-arm-kernel@lists.infradead.org; Fri, 28 Jun 2019 04:45:08 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0E51F344; Thu, 27 Jun 2019 21:45:06 -0700 (PDT) Received: from p8cg001049571a15.blr.arm.com (p8cg001049571a15.blr.arm.com [10.162.40.144]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3F65A3F706; Thu, 27 Jun 2019 21:45:02 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org Subject: [RFC 0/2] arm64: Enable vmemmap from device memory Date: Fri, 28 Jun 2019 10:14:41 +0530 Message-Id: <1561697083-7329-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190627_214507_382722_446AE827 X-CRM114-Status: UNSURE ( 8.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Fenghua Yu , Tony Luck , linux-ia64@vger.kernel.org, Anshuman Khandual , Catalin Marinas , Dave Hansen , Will Deacon , x86@kernel.org, linux-kernel@vger.kernel.org, Andy Lutomirski , Andrew Morton , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series enables vmemmap mapping allocation from device memory ranges on arm64. Before that it enables vmemmap_populate_basepages() to accommodate struct vmem_altmap based requests. This series is based on linux next (next-20190613) along with v6 arm64 hot-remove series [1]. [1] https://lkml.org/lkml/2019/6/19/3 Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Tony Luck Cc: Fenghua Yu Cc: Dave Hansen Cc: Andy Lutomirski Cc: Andrew Morton Cc: linux-arm-kernel@lists.infradead.org Cc: linux-ia64@vger.kernel.org Cc: x86@kernel.org Cc: linux-kernel@vger.kernel.org Anshuman Khandual (2): mm/sparsemem: Add vmem_altmap support in vmemmap_populate_basepages() arm64/mm: Enable device memory allocation and free for vmemmap mapping arch/arm64/mm/mmu.c | 57 +++++++++++++++++++++++++++++++----------------- arch/ia64/mm/discontig.c | 2 +- arch/x86/mm/init_64.c | 4 ++-- include/linux/mm.h | 5 +++-- mm/sparse-vmemmap.c | 16 +++++++++----- 5 files changed, 54 insertions(+), 30 deletions(-)