From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F85CC4363A for ; Thu, 8 Oct 2020 15:37:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC10020657 for ; Thu, 8 Oct 2020 15:37:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AuIevGeG"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="J41mBW7B" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC10020657 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=Iu4E9yRZo2RYYoivih20lLSHRdKe+k9NuQwa8UHv2VY=; b=AuIevGeGg7jErsuXcv4vmHJ4Wh jTp19/G2FbkXDF5ZmbiAfa0w7Xb/IDbowCmC+F5aRPI36GMcrz6JFuzrSLJvCJOLyoP8ccqIlWq79 Mt34T58KRXpKdU6CPCxTvjraQf3Ivi9WpSfWnupq67Kl7GkiXrWKUJ4D0lgUmMH2idxVTnQVQTpyV rp0eChz3P3k++4fKloX9miR6edLwrDG4wr/wg7T16PR5LsDUsdXxyrV9tYgIcRE0HpZaGNiHoBm+B mTfRs1Y4BIDA7BeIvyLMhTCX8R+pf/oyk0VA2MdQiWm5xW83ZQuAf0AclzUiLKkTZ8MsRF30DzmWH FN0mogKA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQXxm-0008KF-Go; Thu, 08 Oct 2020 15:36:14 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQXxh-0008I8-0H for linux-arm-kernel@lists.infradead.org; Thu, 08 Oct 2020 15:36:12 +0000 Received: from e123331-lin.nice.arm.com (lfbn-nic-1-188-42.w2-15.abo.wanadoo.fr [2.15.37.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B100420658; Thu, 8 Oct 2020 15:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602171368; bh=LNYiiOikkziIIR5Tmx398bTLPL9CDYvce1BAihxBNDA=; h=From:To:Cc:Subject:Date:From; b=J41mBW7B+15VKJJnFGm1Z4/JzGvjomcDJLkhcEkk/KZMHFapbg02fM5J7Jb66c8tg 81dRZR1ToMJHgxMz5AY7IRbqSPZOJz7evSETYb32EmDv1ujBr2e4HG/X3VnlXqr66S 2UzvODL8xYsBSU4zK5YYCVa0F7e5Y+YagBiugDWk= From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/4] arm64: mm: optimize VA space organization for 52-bit Date: Thu, 8 Oct 2020 17:35:58 +0200 Message-Id: <20201008153602.9467-1-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201008_113609_172682_D06459D7 X-CRM114-Status: GOOD ( 12.60 ) 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: catalin.marinas@arm.com, Anshuman Khandual , will@kernel.org, Ard Biesheuvel , Steve Capper MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series reorganizes the kernel VA space slightly so that 52-bit VA configurations can use more virtual address space, i.e., the usable linear address space almost doubles, from 2^51 to 2^52-2^47. Patch #1 merges the physvirt_offset and memstart_addr variables, both of which represent translations between the physical address space and the linear region, and there is no need for having both. This fixes a bug too, as the two values were not properly kept in sync when booting with KASLR enabled. Patch #2 updates the definitions for the boundaries of the linear space, so that 52-bit VA builds use all available space for the linear region. Patches #3 and #4 simplify the way the vmemmap region is configured, and unify the 48-bit/4k and 52-bit/64k layouts. Changes since v1: - drop incorrect use of untagged_addr() from #2 - add patches #3 and #4 Not boot tested yet on a 52-bit VA capable system. Cc: Steve Capper Cc: Anshuman Khandual Ard Biesheuvel (4): arm64: mm: use single quantity to represent the PA to VA translation arm64: mm: extend linear region for 52-bit VA configurations arm64: mm: make vmemmap region a projection of the linear region arm64: mm: tidy up top of kernel VA space Documentation/arm64/kasan-offsets.sh | 3 +- Documentation/arm64/memory.rst | 45 +++++++++----------- arch/arm64/Kconfig | 20 ++++----- arch/arm64/include/asm/memory.h | 35 +++++++-------- arch/arm64/include/asm/pgtable.h | 6 +-- arch/arm64/mm/init.c | 34 ++++++--------- 6 files changed, 63 insertions(+), 80 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel