From: Sean Anderson <seanga2@gmail.com>
To: u-boot@lists.denx.de
Subject: OpenBSI and U-Boot
Date: Sat, 8 Aug 2020 11:32:43 -0400 [thread overview]
Message-ID: <bbd73c2e-e462-4f4d-eefc-e3171e96a8e2@gmail.com> (raw)
In-Reply-To: <f9cf9b79-c605-ca74-05a0-792eb56f57f2@gmx.de>
On 8/8/20 10:59 AM, Heinrich Schuchardt wrote:
> Hello Anup,
>
> I have looking at you OpenSBI code firmware/payloads/test_head.S. Here
I think the real start is in firmware/fw_base.S. From there, secondary
harts loop first in _wait_relocate_copy_done, and then in
_wait_for_boot_hart, and then they execute the next stage via
_start_warm and sbi_init.
> like in U-Boot's common/spl/spl_opensbi.c you put all but one hart in to
> an enless loop (hang).
As far as I can tell, U-Boot has all harts execute the next stage when
SMP is enabled. smp_call_function has all harts execute that function.
>
> When Linux boots via UEFI it will wake up the extra harts after
> ExitBootServices(). So I assume we should define function hang() in
> lib/hang.c as __efi_runtime to avoid seeing it overwritten by the EFI
> payload.
>
> @Ard:
> Does Linux take care of the hanging harts and redirect them to its own
> routine before SetVirtualAddressMap()? Otherwise anything could happen.
>
> On the Kendryte K210 we don't have SPL. So we will not boot in the
> sequence SPL->OpenSBI->U-Boot but OpenSBI->U-Boot. Does this imply that
> we have to implement the hart lottery at the entry point of main U-Boot
> in this case?
Isn't the hart lottery already implemented for U-Boot? E.g. around line
100 of arch/riscv/cpu/start.S.
On another note, does Linux support S-Mode NOMMU? I was under the
impression that NOMMU implied M-Mode (or the other way around).
--Sean
next prev parent reply other threads:[~2020-08-08 15:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-08 14:59 OpenBSI and U-Boot Heinrich Schuchardt
2020-08-08 15:32 ` Sean Anderson [this message]
2020-08-08 16:17 ` Heinrich Schuchardt
2020-08-08 17:22 ` Sean Anderson
2020-08-08 18:56 ` Heinrich Schuchardt
2020-08-09 1:48 ` Sean Anderson
2020-08-09 4:23 ` Heinrich Schuchardt
2020-08-09 10:02 ` Sean Anderson
2020-08-09 11:49 ` Heinrich Schuchardt
2020-08-09 20:08 ` Atish Patra
2020-08-09 20:28 ` Heinrich Schuchardt
2020-08-10 0:33 ` Atish Patra
2020-08-11 1:55 ` Rick Chen
2020-08-11 5:29 ` Heinrich Schuchardt
2020-08-11 7:06 ` Atish Patra
2020-08-12 1:37 ` Rick Chen
2020-08-09 19:54 ` Atish Patra
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=bbd73c2e-e462-4f4d-eefc-e3171e96a8e2@gmail.com \
--to=seanga2@gmail.com \
--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