From: Tom Rini <trini@konsulko.com>
To: Marek Vasut <marek.vasut+renesas@mailbox.org>
Cc: u-boot@lists.denx.de, Andre Przywara <andre.przywara@arm.com>,
Caleb Connolly <caleb.connolly@linaro.org>,
Igor Opaniuk <igor.opaniuk@gmail.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Julien Masson <jmasson@baylibre.com>,
Mattijs Korpershoek <mkorpershoek@baylibre.com>,
Maxim Moskalets <maximmosk4@gmail.com>,
Michael Walle <mwalle@kernel.org>,
Nobuhiro Iwamatsu <iwamatsu@nigauri.org>,
Patrick Rudolph <patrick.rudolph@9elements.com>,
Paul Barker <paul.barker.ct@bp.renesas.com>,
Paul-Erwan Rio <paulerwan.rio@gmail.com>,
Peter Hoyes <Peter.Hoyes@arm.com>,
Raymond Mao <raymond.mao@linaro.org>,
Sam Protsenko <semen.protsenko@linaro.org>,
Simon Glass <sjg@chromium.org>,
Sughosh Ganu <sughosh.ganu@linaro.org>
Subject: Re: [PATCH 1/3] arm64: Add late jump to kernel board hook
Date: Tue, 14 Jan 2025 19:13:34 -0600 [thread overview]
Message-ID: <20250115011334.GR3476@bill-the-cat> (raw)
In-Reply-To: <20250112223755.179959-1-marek.vasut+renesas@mailbox.org>
[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]
On Sun, Jan 12, 2025 at 11:36:57PM +0100, Marek Vasut wrote:
> Add empty weak assembler function armv8_switch_to_el2_prep() which is
> jumped to just before U-Boot determines which EL it is running in and
> decides which path to take to boot the Linux kernel.
>
> This weak function is meant to be used by architecture specific code
> to implement jump to a firmware blob, which then returns right past
> this weak function and continues execution of U-Boot code which then
> boots the Linux kernel. One example of such use case is when U-Boot
> jump tp TFA BL31, which switches from EL3 to EL2 and then returns to
> U-Boot code newly running in EL2 and starts the Linux kernel.
>
> The weak function is called with caches already disabled and DM shut
> down. Any preparatory work or even loading of more data must be done
> in board_prep_linux(), this hook is meant only for the final jump to
> the firmware and return to U-Boot before booting Linux.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
prev parent reply other threads:[~2025-01-15 1:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-12 22:36 [PATCH 1/3] arm64: Add late jump to kernel board hook Marek Vasut
2025-01-12 22:36 ` [PATCH 2/3] image: Add support for starting TFA BL31 as fitImage loadables Marek Vasut
2025-01-13 12:15 ` Biju Das
2025-01-13 12:39 ` Marek Vasut
2025-01-13 13:31 ` Biju Das
2025-01-15 11:51 ` Quentin Schulz
2025-01-18 13:49 ` Marek Vasut
2025-01-15 1:13 ` Tom Rini
2025-01-29 17:10 ` Quentin Schulz
2025-01-29 17:38 ` Marek Vasut
2025-01-29 17:51 ` Quentin Schulz
2025-07-21 21:43 ` Marek Vasut
2025-01-12 22:36 ` [PATCH 3/3] arm64: renesas: Add TFA BL31 handoff support Marek Vasut
2025-01-29 16:02 ` Quentin Schulz
2025-01-29 16:28 ` Quentin Schulz
2025-01-29 17:03 ` Marek Vasut
2025-01-29 17:00 ` Marek Vasut
2025-01-29 17:32 ` Quentin Schulz
2025-01-15 1:13 ` Tom Rini [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=20250115011334.GR3476@bill-the-cat \
--to=trini@konsulko.com \
--cc=Peter.Hoyes@arm.com \
--cc=andre.przywara@arm.com \
--cc=caleb.connolly@linaro.org \
--cc=igor.opaniuk@gmail.com \
--cc=ilias.apalodimas@linaro.org \
--cc=iwamatsu@nigauri.org \
--cc=jmasson@baylibre.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=maximmosk4@gmail.com \
--cc=mkorpershoek@baylibre.com \
--cc=mwalle@kernel.org \
--cc=patrick.rudolph@9elements.com \
--cc=paul.barker.ct@bp.renesas.com \
--cc=paulerwan.rio@gmail.com \
--cc=raymond.mao@linaro.org \
--cc=semen.protsenko@linaro.org \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@linaro.org \
--cc=u-boot@lists.denx.de \
/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