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=-18.2 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 89382C4727F for ; Sat, 26 Sep 2020 09:57:51 +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 38D2B2311D for ; Sat, 26 Sep 2020 09:57:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1FwZXodR"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="K2+4j2g0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38D2B2311D 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=xTJtCX2OM7YlSnfhA2lJkFhydUNiNPyAQLC+FYCvm/o=; b=1FwZXodRy/rqTmlfVGLXx0QvkG jPHtUogaq3eQk4hYUzrGXnNvjAUCaC/Kypos0jCvJBlnxrCqChtGM9HRsEAXBCjfge7vkecQw+v5t bsu71gcPDnQSUdsdBmDeI7c6VEuFn0N2gHZBqJHD2K4HwNSQYQRCpNKVwuxBbFlRC1KfNRNCCMDad R01kQcm90yrDqJNFMpl7c3eCfdDl9YX5HadIFLBGOfHoArncfZdRIHnETXauHJqB6/r19XdzSI5lJ 2qok3TZAWHtI71Rsm+qO+tgoD5z4JJ/iMCgcyEIrkjoUIIFalgFcB67XWE2fFGl9Z23ozEm4oOvVs +UDwSQkQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kM6wH-00064b-7P; Sat, 26 Sep 2020 09:56:21 +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 1kM6wE-00063y-18 for linux-arm-kernel@lists.infradead.org; Sat, 26 Sep 2020 09:56:19 +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 C27C82311D; Sat, 26 Sep 2020 09:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601114176; bh=P1bau09CWG7pcayCcCul0oohTtXJH3StrN7Ouf8joD4=; h=From:To:Cc:Subject:Date:From; b=K2+4j2g0Ba8eHCjwIUtpPjZZXHxVh/qgvincr6tIAEZOWOy+ZuRzGIMCSI8YlC3h/ rs3F4quTr7Cr6Z0Pu7q/zst8WD5EjiWnQkNYMvDZ7s+lFvJQFy2vrXIpNop6+zwH9U aOI3kHgW79MD5vZs0u6wZP1hmsb1aXSBtvxKsgAQ= From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [GIT PULL 1/2] ARM: permit relative phys-to-virt alignment of >= 2 MiB Date: Sat, 26 Sep 2020 11:56:11 +0200 Message-Id: <20200926095612.29347-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-20200926_055618_414328_3CCF5CD1 X-CRM114-Status: GOOD ( 11.98 ) 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 , ardb@kernel.org, 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 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -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.10 for you to fetch changes up to b9cdfe66e33df899797d66e1840889df25433df6: ARM: p2v: reduce p2v alignment requirement to 2 MiB (2020-09-26 11:41:21 +0200) 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: assembler: introduce adr_l, ldr_l and str_l macros ARM: module: add support for place relative relocations ARM: p2v: fix handling of LPAE translation in BE mode 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