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=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,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 030BCC4338F for ; Thu, 29 Jul 2021 15:23:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 BCD07601FF for ; Thu, 29 Jul 2021 15:23:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BCD07601FF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc: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=VPinbJh6dMEN0LWSHTl/cqbkm5X+vLOx7/KAqF9N1SY=; b=vGWw5AqNmMKg7J UtBtGKDkjSzOl7GMtsWCnfCeTVHvtv2FlMNvLd4YwQeiHnuddHG2YIkpH1kgM4wc/fWXVBHd+5sZH hJtIZHftuA8fAdRQw3VakFwI3rWU9H9j/RjselnZcV2DptUJ5K0JPiHuKofhGccYkAebj+2nqgCN3 W93SDhZVvLeWZP8UwAL9jGClfM5kVuZ4qzo7UORTNIGeffKUe9OYBmq9j5EDIVmediu4MH3EkNHzR eUO+GeQfxItyxMII2D5jQoTQJIikAHS1oAxgHPIIUM2DCqbGggoIlJDAzp7VeEYf8Av0I3DAs+Ba+ VVR2/qDUCM/mM/RZPwLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m97qf-004gcW-Jq; Thu, 29 Jul 2021 15:21:27 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m97qE-004gX5-SS for linux-arm-kernel@lists.infradead.org; Thu, 29 Jul 2021 15:21:06 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD4F86D; Thu, 29 Jul 2021 08:20:55 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E11B93F73D; Thu, 29 Jul 2021 08:20:54 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: Andre.Przywara@arm.com, Jaxson.Han@arm.com, mark.rutland@arm.com, Wei.Chen@arm.com Subject: [boot-wrapper PATCH 00/12] Preparatory fixes and cleanup Date: Thu, 29 Jul 2021 16:20:38 +0100 Message-Id: <20210729152050.23635-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210729_082059_081073_888BB2FF X-CRM114-Status: GOOD ( 12.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 boot-wrapper has had periodic updates over the last few years, and with each addition becomes increasingly in need of some larger scale cleanup to keep it clear and maintainable. While looking over Jaxson Han's ARMv8-R AArch64 series [1] I realised there are a number of existing issues and design warts that we need to clean up before it becomes harder to do so. These patches address some existing issues with the boot-wrapper, and restructure the codebase to make it easier to navigate. I intend to merge these in the next few days if there are no objections, and will follow up with some further rework which should make it easier to add ARMv8-R AArch64 support atop. Thanks, Mark. [1] https://lore.kernel.org/r/20210525062509.201464-1-jaxson.han@arm.com Mark Rutland (12): Ensure `kernel_address` is aligned Output text separately from data Remove cache maintenance Remove `flag_no_el3` Move PSCI triage to C Move scripts to a `scripts` directory aarch64: respect text offset Consistently use logical CPU IDs Cleanup `.globl` usage aarch32: rename `_spin_dead` -> `err_invalid_id` Rename `spin.h` -> `boot.h` Move common source files to `common` directory Makefile.am | 53 ++++++++++++--------- arch/aarch32/boot.S | 22 +++------ arch/aarch32/psci.S | 27 ++--------- arch/aarch32/stack.S | 11 ++--- arch/aarch32/utils.S | 4 +- arch/aarch64/boot.S | 21 ++------ arch/aarch64/psci.S | 30 ++---------- arch/aarch64/spin.S | 10 ++-- arch/aarch64/stack.S | 11 ++--- arch/aarch64/utils.S | 9 ++-- cache.c | 58 ----------------------- bakery_lock.c => common/bakery_lock.c | 0 boot_common.c => common/boot.c | 7 +-- gic-v3.c => common/gic-v3.c | 4 +- gic.c => common/gic.c | 3 +- lib.c => common/lib.c | 0 platform.c => common/platform.c | 0 psci.c => common/psci.c | 28 ++++++++--- include/{spin.h => boot.h} | 6 +-- include/cpu.h | 2 + include/linkage.h | 6 ++- model.lds.S | 3 +- scripts/AA64Image.pm | 87 ++++++++++++++++++++++++++++++++++ FDT.pm => scripts/FDT.pm | 0 scripts/aa64-load-offset.pl | 28 +++++++++++ addpsci.pl => scripts/addpsci.pl | 0 findbase.pl => scripts/findbase.pl | 0 findcpuids.pl => scripts/findcpuids.pl | 0 findmem.pl => scripts/findmem.pl | 0 29 files changed, 218 insertions(+), 212 deletions(-) delete mode 100644 cache.c rename bakery_lock.c => common/bakery_lock.c (100%) rename boot_common.c => common/boot.c (93%) rename gic-v3.c => common/gic-v3.c (98%) rename gic.c => common/gic.c (96%) rename lib.c => common/lib.c (100%) rename platform.c => common/platform.c (100%) rename psci.c => common/psci.c (69%) rename include/{spin.h => boot.h} (88%) create mode 100755 scripts/AA64Image.pm rename FDT.pm => scripts/FDT.pm (100%) create mode 100755 scripts/aa64-load-offset.pl rename addpsci.pl => scripts/addpsci.pl (100%) rename findbase.pl => scripts/findbase.pl (100%) rename findcpuids.pl => scripts/findcpuids.pl (100%) rename findmem.pl => scripts/findmem.pl (100%) -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel