From: Rick Chen <rickchen36@gmail.com>
To: Nikita Shubin <nikita.shubin@maquefel.me>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
linux@yadro.com, Sean Anderson <seanga2@gmail.com>,
rick <rick@andestech.com>,
n.shubin@yadro.com, Leo Liang <ycliang@andestech.com>,
Simon Glass <sjg@chromium.org>, Bin Meng <bmeng.cn@gmail.com>,
ilias.apalodimas@linaro.org,
Heinrich Schuchardt <xypron.glpk@gmx.de>
Subject: Re: [PATCH v3] spl: introduce SPL_XIP to config
Date: Thu, 8 Sep 2022 08:45:38 +0800 [thread overview]
Message-ID: <CAN5B=eLr_j6OCNmC5s8vxrt-=e_g+1sGWaTN3Va+j-YJfFzSNg@mail.gmail.com> (raw)
In-Reply-To: <HK0PR03MB29942A55774ED60C5568E72CC17F9@HK0PR03MB2994.apcprd03.prod.outlook.com>
> From: Nikita Shubin <nikita.shubin@maquefel.me>
> Sent: Friday, September 02, 2022 4:48 PM
> To: u-boot@lists.denx.de
> Cc: linux@yadro.com; Sean Anderson <seanga2@gmail.com>; Rick Chen <rickchen36@gmail.com>; Nikita Shubin <n.shubin@yadro.com>; Rick Jian-Zhi Chen(陳建志) <rick@andestech.com>; Leo Yu-Chi Liang(梁育齊) <ycliang@andestech.com>; Simon Glass <sjg@chromium.org>; Bin Meng <bmeng.cn@gmail.com>; Ilias Apalodimas <ilias.apalodimas@linaro.org>; Heinrich Schuchardt <xypron.glpk@gmx.de>
> Subject: [PATCH v3] spl: introduce SPL_XIP to config
>
> From: Nikita Shubin <n.shubin@yadro.com>
>
> U-Boot and SPL don't necessary share the same location, so we might end with U-Boot SPL in read-only memory (XIP) and U-Boot in read-write memory.
>
> In case of non XIP boot mode, we rely on such variables as "hart_lottery"
> and "available_harts_lock" which we use as atomics.
>
> The problem is that CONFIG_XIP also propagate to main U-Boot, not only SPL, so we need CONFIG_SPL_XIP to distinguish SPL XIP from other XIP modes.
>
> This adds an option special for SPL to behave it in XIP manner and we don't use hart_lottery and available_harts_lock, during start proccess.
>
> Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
> ---
> v2->v3:
> Rick Chen:
> - move SPL_XIP to arch/riscv/Kconfig right after XIP
> - change ae350_spl defconfig's to use SPL_XIP instead of XIP
> ---
> arch/riscv/Kconfig | 7 +++++++
> arch/riscv/cpu/cpu.c | 2 +-
> arch/riscv/cpu/start.S | 4 ++--
> arch/riscv/include/asm/global_data.h | 2 +-
> arch/riscv/lib/asm-offsets.c | 2 +-
> arch/riscv/lib/smp.c | 2 +-
> configs/ae350_rv32_spl_xip_defconfig | 2 +- configs/ae350_rv64_spl_xip_defconfig | 2 +-
> 8 files changed, 15 insertions(+), 8 deletions(-)
Reviewed-by: Rick Chen <rick@andestech.com>
prev parent reply other threads:[~2022-09-08 0:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-11 9:37 [RFC PATCH 0/1] spl: introduce SPL_XIP to config Nikita Shubin
2022-08-11 9:37 ` [RFC PATCH 1/1] " Nikita Shubin
2022-08-13 4:35 ` Sean Anderson
2022-08-15 7:27 ` Nikita Shubin
2022-08-23 4:25 ` Sean Anderson
2022-08-26 8:44 ` [PATCH] " Nikita Shubin
2022-08-26 14:10 ` Sean Anderson
2022-08-31 7:25 ` [PATCH v2] " Nikita Shubin
[not found] ` <HK0PR03MB2994C85219E6217F7F9F4A05C17A9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-09-02 7:25 ` Rick Chen
2022-09-02 8:42 ` Nikita Shubin
2022-09-02 8:47 ` [PATCH v3] " Nikita Shubin
[not found] ` <HK0PR03MB29942A55774ED60C5568E72CC17F9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-09-08 0:45 ` Rick Chen [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='CAN5B=eLr_j6OCNmC5s8vxrt-=e_g+1sGWaTN3Va+j-YJfFzSNg@mail.gmail.com' \
--to=rickchen36@gmail.com \
--cc=bmeng.cn@gmail.com \
--cc=ilias.apalodimas@linaro.org \
--cc=linux@yadro.com \
--cc=n.shubin@yadro.com \
--cc=nikita.shubin@maquefel.me \
--cc=rick@andestech.com \
--cc=seanga2@gmail.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.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).