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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 C462AC55179 for ; Wed, 28 Oct 2020 20:47:54 +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 4278824824 for ; Wed, 28 Oct 2020 20:47:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gdqE3N9x"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZfODpHCH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4278824824 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=c050YZ03BPzTc+lrhhJ4jo0vx4pEv5We0N5lDJsDB30=; b=gdqE3N9x0KwapkZgZgRbBH+sqU TarsBuEW1hMHNl6PeifvVcxsRZHojR7Wg9ahy0Ffb97RZHfcBUcpRwiBmf2yarl5s8ae//enjztf9 2OtxAybwEuda3puWaRO1OcDMwSMX3PqMX9Qpo2FVpuzdlqariZttj8iyg/fj4LDgbcL0hKvX4Q/6q p9BELMP/9C16qB3zAtED4Q8nBDMcUEI3pVcSvcQRSu5h3dTSCY5TqNvUNeIcqinRh2FiGDNE7/04f EMKHGIJsJELmXdXOxkH/CVG8MAQ3u7p/BaR/4J8XOrp66v4ZBc2/z2eMutEnbPrGjTUmcDqMvgT3a 8UN4lvdA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXsLm-0000fX-78; Wed, 28 Oct 2020 20:47:18 +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 1kXsLQ-0000aB-Ml for linux-arm-kernel@lists.infradead.org; Wed, 28 Oct 2020 20:46:58 +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 0416724821; Wed, 28 Oct 2020 20:46:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603918015; bh=2Mq8JqdJCdVFRe58zWNkphn/oWN0RiSwM5wy817ZhqE=; h=From:To:Cc:Subject:Date:From; b=ZfODpHCHarDmi5KxmAQPkD7BdXWwrkjF4HtkvDlAfy0mBe0wk+dEbFtaFgswsuRYd SuVwK0DkIm76RlQ28mk4BqsQEw8Oj6NJOBhybDOdZaG5WjMeFmXeTHU9U9S3hD8Tfk yYpvhcllwtJIXoMj+sx7elLqC1UN2dXdE2q+MltM= From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [GIT PULL v2 1/2] ARM: permit relative phys-to-virt alignment of >= 2 MiB Date: Wed, 28 Oct 2020 21:46:48 +0100 Message-Id: <20201028204649.24830-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-20201028_164656_888191_B2E0D323 X-CRM114-Status: GOOD ( 13.04 ) 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: Linus Walleij , Russell King , Nicolas Pitre 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 The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git tags/arm-p2v-for-v5.11 for you to fetch changes up to 9443076e4330a14ae2c6114307668b98a8293b77: ARM: p2v: reduce p2v alignment requirement to 2 MiB (2020-10-28 16:59:43 +0100) Change since v1 pull request: - rebase onto v5.10-rc1 Cc: Russell King Cc: Nicolas Pitre Cc: Linus Walleij ---------------------------------------------------------------- Implement the necessary changes in the ARM assembler boot code to permit the relative alignment of the physical and the virtual addresses of the kernel to be as little as 2 MiB, as opposed to the minimum of 16 MiB we support today. Series was posted here, and reviewed by Nicolas Pitre and Linus Walleij: https://lore.kernel.org/linux-arm-kernel/20200921154117.757-1-ardb@kernel.org/ ---------------------------------------------------------------- Ard Biesheuvel (11): ARM: p2v: fix handling of LPAE translation in BE mode ARM: assembler: introduce adr_l, ldr_l and str_l macros ARM: module: add support for place relative relocations ARM: p2v: move patching code to separate assembler source file ARM: p2v: factor out shared loop processing ARM: p2v: factor out BE8 handling ARM: p2v: drop redundant 'type' argument from __pv_stub ARM: p2v: use relative references in patch site arrays ARM: p2v: simplify __fixup_pv_table() ARM: p2v: switch to MOVW for Thumb2 and ARM/LPAE ARM: p2v: reduce p2v alignment requirement to 2 MiB arch/arm/Kconfig | 2 +- arch/arm/include/asm/assembler.h | 84 ++++++++++++++ arch/arm/include/asm/elf.h | 5 + arch/arm/include/asm/memory.h | 57 +++++++--- arch/arm/kernel/Makefile | 1 + arch/arm/kernel/head.S | 142 ----------------------- arch/arm/kernel/module.c | 20 +++- arch/arm/kernel/phys2virt.S | 238 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 387 insertions(+), 162 deletions(-) create mode 100644 arch/arm/kernel/phys2virt.S _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel