From: Marc Zyngier <maz@kernel.org>
To: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org, akos.denke@arm.com,
andre.przywara@arm.com, luca.fancellu@arm.com
Subject: Re: [BOOT-WRAPPER 00/11] Cleanup initialization
Date: Fri, 02 Aug 2024 11:18:05 +0100 [thread overview]
Message-ID: <86frrn1b4y.wl-maz@kernel.org> (raw)
In-Reply-To: <20240729161501.1806271-1-mark.rutland@arm.com>
On Mon, 29 Jul 2024 17:14:50 +0100,
Mark Rutland <mark.rutland@arm.com> wrote:
>
> These patches cleanup the boot-wrapper initialization logic to make it
> more consistent and easier to extend in C code in future. The big
> changes are:
>
> * The kernel is always entered via an exception return. This allows us
> to initialize PSTATE consistently, and will allow us to adjust the
> SPSR dynamically in C code in future if necessary.
>
> * Regardless of the entered exception level, CPU state is initialized
> under cpu_init_arch(), allowing for logic to be shared regardless of
> which exception level was entered.
>
> * CPUs are initialized sequentially, which allows better for better
> logging within the boot-wrapper.
>
> Mark.
>
> Mark Rutland (11):
> Always enter AArch32 kernels in ARM mode
> aarch64: Remove redundant EL1 entry logic
> aarch64: Implement cpu_init_arch()
> aarch64: Always enter kernel via exception return
> aarch32: Refactor inital entry
> aarch32: Implement cpu_init_arch()
> aarch32: Always enter kernel via exception return
> Unify assembly setup paths
> Simplify spin logic
> Add printing functions
> Boot CPUs sequentially
>
> arch/aarch32/boot.S | 95 ++++++++++----------
> arch/aarch32/include/asm/{gic-v3.h => gic.h} | 2 +-
> arch/aarch32/init.c | 30 +++++--
> arch/aarch64/boot.S | 66 ++++----------
> arch/aarch64/include/asm/{gic-v3.h => gic.h} | 2 +-
> arch/aarch64/init.c | 30 +++++--
> arch/aarch64/spin.S | 14 +--
> common/boot.c | 20 ++---
> common/gic-v3.c | 2 +-
> common/gic.c | 2 +-
> common/init.c | 50 +++++++++--
> common/platform.c | 35 ++++++++
> common/psci.c | 16 +---
> include/boot.h | 8 +-
> include/gic.h | 16 ++++
> include/platform.h | 4 +
> 16 files changed, 221 insertions(+), 171 deletions(-)
> rename arch/aarch32/include/asm/{gic-v3.h => gic.h} (91%)
> rename arch/aarch64/include/asm/{gic-v3.h => gic.h} (92%)
> create mode 100644 include/gic.h
This looks good to me. With the issue reported by Lucas fixed and an
extra comment in patch #3:
Acked-by: Marc Zyngier <maz@kernel.org>
M.
--
Without deviation from the norm, progress is not possible.
prev parent reply other threads:[~2024-08-02 10:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-29 16:14 [BOOT-WRAPPER 00/11] Cleanup initialization Mark Rutland
2024-07-29 16:14 ` [BOOT-WRAPPER 01/11] Always enter AArch32 kernels in ARM mode Mark Rutland
2024-08-02 11:26 ` Andre Przywara
2024-08-03 10:53 ` Mark Rutland
2024-07-29 16:14 ` [BOOT-WRAPPER 02/11] aarch64: Remove redundant EL1 entry logic Mark Rutland
2024-07-29 16:14 ` [BOOT-WRAPPER 03/11] aarch64: Implement cpu_init_arch() Mark Rutland
2024-08-02 9:29 ` Marc Zyngier
2024-08-02 9:38 ` Mark Rutland
2024-07-29 16:14 ` [BOOT-WRAPPER 04/11] aarch64: Always enter kernel via exception return Mark Rutland
2024-07-29 16:14 ` [BOOT-WRAPPER 05/11] aarch32: Refactor inital entry Mark Rutland
2024-07-29 16:14 ` [BOOT-WRAPPER 06/11] aarch32: Implement cpu_init_arch() Mark Rutland
2024-07-29 16:14 ` [BOOT-WRAPPER 07/11] aarch32: Always enter kernel via exception return Mark Rutland
2024-07-29 16:14 ` [BOOT-WRAPPER 08/11] Unify assembly setup paths Mark Rutland
2024-07-29 16:14 ` [BOOT-WRAPPER 09/11] Simplify spin logic Mark Rutland
2024-07-29 16:15 ` [BOOT-WRAPPER 10/11] Add printing functions Mark Rutland
2024-07-29 16:15 ` [BOOT-WRAPPER 11/11] Boot CPUs sequentially Mark Rutland
2024-07-31 9:57 ` Luca Fancellu
2024-08-03 10:57 ` Mark Rutland
2024-08-02 10:18 ` Marc Zyngier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86frrn1b4y.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=akos.denke@arm.com \
--cc=andre.przywara@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=luca.fancellu@arm.com \
--cc=mark.rutland@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).