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 940BAC2D0A8 for ; Sat, 26 Sep 2020 09:57:49 +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 31B9B2311D for ; Sat, 26 Sep 2020 09:57:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0kipYAnZ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="zQ4cAT31" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 31B9B2311D 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:References:In-Reply-To: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:List-Owner; bh=vLaaYd8CBEVHVD86nPC6AK1cxU2zTq5nBIVN850yA2I=; b=0kipYAnZ/voW7Su9ejXC9gV9qV RDZXXpg/Q1vc0x8vsdPLdyKQXtdNa5G7gyt5NhJx6MJefn25Y6evL12/nmmj+3bbF2EecOUZD/7Q/ SBFfzExfmzWIhgqNbYW61Py1YdZPEvb9w5oUA+lApYFePyc1p0Chd2OzB0F2jlf3DtomnXZovEzFy JgL13oXnusJTLzdmk0zylGYXup1JzAmoV8Ki42GJdRZm0m7PdmEopbHpsYM9euY2tzk5dzC+FhXsk X9jctppmr/ef0s7bln/aMIzRI/iAP832WOPXqEnTYanhWFJHmnfS7wq5Kq9rhebHycFDIXrKllpyQ tGZpygDw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kM6wL-00064w-VN; Sat, 26 Sep 2020 09:56:26 +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-00064C-TY 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 46B2A238E2; Sat, 26 Sep 2020 09:56:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601114178; bh=26YqU7Q0wFMGCZ0dXuiRMXa1tvE1mXQEk0D19hdjSL0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zQ4cAT31/QlAgo3GnWI4//aQ7OBkp8Ht68E2GRcijecO2NKLIWan9w71kZei87u0u rvilA91xUS6QaZ2fR2vzajwAEghHYdwrUbTNyA8SXLhO4AqYq1CoOFinYCbOXKIpCc iU3uNI9ZhWSq31UrSscwCfbuq+V3y8VHnEQIVWfY= From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [GIT PULL 2/2] ARM assembler cleanups Date: Sat, 26 Sep 2020 11:56:12 +0200 Message-Id: <20200926095612.29347-2-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200926095612.29347-1-ardb@kernel.org> References: <20200926095612.29347-1-ardb@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200926_055619_028497_22A14594 X-CRM114-Status: GOOD ( 12.79 ) 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-adrl-replacement-for-v5.10 for you to fetch changes up to 1c0ef9c28760d3bff9e1bda5f48898d03e29cbb7: ARM: kvm: replace open coded VA->PA calculations with adr_l call (2020-09-26 11:13:45 +0200) Note that the first two patches are shared with 1/2, so that the PRs can be merged independently. With those omitted from the diffstat, it becomes 7 files changed, 44 insertions(+), 111 deletions(-) Cc: Russell King Cc: Nicolas Pitre Cc: Linus Walleij ---------------------------------------------------------------- Introduce adr_l/ldr_l/str_l/mov_l assembler macros like we have on arm64, and use them to replace open coded VA-to-PA arithmetic in various places in the code. This avoids the use of literals on v7+ CPUs, reduces the footprint of the code in most cases, and generally makes the code easier to follow. Series was posted here, and reviewed by Nicolas Pitre: https://lore.kernel.org/linux-arm-kernel/20200914095706.3985-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: efistub: replace adrl pseudo-op with adr_l macro invocation ARM: head-common.S: use PC-relative insn sequence for __proc_info ARM: head-common.S: use PC-relative insn sequence for idmap creation ARM: head.S: use PC-relative insn sequence for secondary_data ARM: kernel: use relative references for UP/SMP alternatives ARM: head: use PC-relative insn sequence for __smp_alt ARM: sleep.S: use PC-relative insn sequence for sleep_save_sp/mpidr_hash ARM: head.S: use PC relative insn sequence to calculate PHYS_OFFSET ARM: kvm: replace open coded VA->PA calculations with adr_l call arch/arm/boot/compressed/head.S | 18 ++------ arch/arm/include/asm/assembler.h | 88 +++++++++++++++++++++++++++++++++++++++- arch/arm/include/asm/elf.h | 5 +++ arch/arm/include/asm/processor.h | 2 +- arch/arm/kernel/head-common.S | 22 +++------- arch/arm/kernel/head.S | 63 +++++++--------------------- arch/arm/kernel/hyp-stub.S | 27 ++++++------ arch/arm/kernel/module.c | 20 ++++++++- arch/arm/kernel/sleep.S | 19 +++------ 9 files changed, 151 insertions(+), 113 deletions(-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel