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.7 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 08A2EC4727E for ; Tue, 6 Oct 2020 22:51:40 +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 7016020E65 for ; Tue, 6 Oct 2020 22:51:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xUEgtrz+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="xd5VnR3p" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7016020E65 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=ofms+exonZKvMeJcoXxS2BFU8VVUqHSypdyWjDvENgw=; b=xUEgtrz+0OqSXWj5xC0KxaPbky V5cImWloGH8YLKd5hxo2HpVKCloEWUooUBMwzHRK2ND61OH6OFHhWt//rP9NK9zFeXcwCrX9/rBJ8 pfl7DNsxHHH+qZdHTvseC8eYGMCekUe0iojNzSr54RTXDNVrC8ujb7fEtiYM7wvdgHB8VJFIW0rHi wVBEc3ZdK1Ib0kUkhlbL1ZNDXu6p6YLK2dBtDM8mDDLuS9KymRh6KYsSN1Hzg8uB5v/XHPJ85MbHa Fk2Bd+9TmhhphUrWk2s6BG1AjzsTBz+RS2ToUkL/cWbwxjMTlNnnM4Gwu1mMjqeQ+wGNfnKza4lnJ JPdA+A4Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPvmW-00034i-12; Tue, 06 Oct 2020 22:50:04 +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 1kPvmS-00033k-9M for linux-arm-kernel@lists.infradead.org; Tue, 06 Oct 2020 22:50:01 +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 27E93208C7; Tue, 6 Oct 2020 22:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602024599; bh=cjeiS5RO7u+9+ZNCT1ipTwOm3Aszj3wvlNeDqFB3BNw=; h=From:To:Cc:Subject:Date:From; b=xd5VnR3pkAbBtEZdIpsJqPcf4XsrhuunUfJ6bKZ54WKCnA9TIw7+b754UYNhXDH/p 8pK2p9ZyeoxMBpuUxpBFw07lM3nQBZP2auCb+yRRCkF3WynNB+R8K/ebPT3lliwMTq B/H9rcCarPZNxnlV9v7vlR9Lw3d5haIqeClQfFTk= From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/2] arm64: mm: optimize VA space organization for 52-bit Date: Wed, 7 Oct 2020 00:49:51 +0200 Message-Id: <20201006224953.8432-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-20201006_185000_443254_D7145ECF X-CRM114-Status: GOOD ( 11.80 ) 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, 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. Not tested yet on a 52-bit VA capable system. Cc: Steve Capper Cc: Anshuman Khandual Ard Biesheuvel (2): arm64: mm: use single quantity to represent the PA to VA translation arm64: mm: extend linear region for 52-bit VA configurations Documentation/arm64/kasan-offsets.sh | 3 +- arch/arm64/Kconfig | 20 ++++++------ arch/arm64/include/asm/memory.h | 13 ++++---- arch/arm64/include/asm/pgtable.h | 4 +-- arch/arm64/mm/init.c | 32 +++++++------------- 5 files changed, 30 insertions(+), 42 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel