* [PATCH] Revert "booti/bootm: riscv: Verify image arch type"
@ 2025-05-29 3:30 Mayuresh Chitale
2025-05-29 3:30 ` [PATCH] Revert "riscv: Select appropriate image type" Mayuresh Chitale
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Mayuresh Chitale @ 2025-05-29 3:30 UTC (permalink / raw)
To: trini; +Cc: Mayuresh Chitale, u-boot
This reverts commit 37b0b22d8b7bbed6aa95b6daed06dcbf4a66f211 as
discussed in [1].
[1] https://lists.denx.de/pipermail/u-boot/2025-May/590841.html
Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
---
arch/riscv/lib/bootm.c | 4 ----
cmd/booti.c | 7 ++-----
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c
index c98c5e76633..9544907ab1e 100644
--- a/arch/riscv/lib/bootm.c
+++ b/arch/riscv/lib/bootm.c
@@ -90,10 +90,6 @@ static void boot_jump_linux(struct bootm_headers *images, int flag)
announce_and_cleanup(fake);
if (!fake) {
- if (images->os.arch != IH_ARCH_DEFAULT) {
- printf("Image arch not compatible with host arch.\n");
- hang();
- }
if (CONFIG_IS_ENABLED(OF_LIBFDT) && images->ft_len) {
#ifdef CONFIG_SMP
ret = smp_call_function(images->ep,
diff --git a/cmd/booti.c b/cmd/booti.c
index ced2c1047ab..1a57fe91397 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -130,11 +130,8 @@ int do_booti(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
bootm_disable_interrupts();
images.os.os = IH_OS_LINUX;
- if (IS_ENABLED(CONFIG_RISCV))
- if (IS_ENABLED(CONFIG_64BIT))
- images.os.arch = IH_ARCH_RISCV64;
- else
- images.os.arch = IH_ARCH_RISCV;
+ if (IS_ENABLED(CONFIG_RISCV_SMODE))
+ images.os.arch = IH_ARCH_RISCV;
else if (IS_ENABLED(CONFIG_ARM64))
images.os.arch = IH_ARCH_ARM64;
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH] Revert "riscv: Select appropriate image type" 2025-05-29 3:30 [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Mayuresh Chitale @ 2025-05-29 3:30 ` Mayuresh Chitale 2025-06-02 8:10 ` Leo Liang 2025-05-29 3:30 ` [PATCH] Revert "riscv: image: Add new image type for RV64" Mayuresh Chitale ` (2 subsequent siblings) 3 siblings, 1 reply; 7+ messages in thread From: Mayuresh Chitale @ 2025-05-29 3:30 UTC (permalink / raw) To: trini; +Cc: Mayuresh Chitale, u-boot This reverts commit 027a316828528da95a77d20632370b1bc2823f0b as discussed in [1]. [1] https://lists.denx.de/pipermail/u-boot/2025-May/590841.html Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> --- arch/riscv/dts/binman.dtsi | 14 ++++---------- arch/riscv/include/asm/u-boot.h | 4 ---- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/arch/riscv/dts/binman.dtsi b/arch/riscv/dts/binman.dtsi index c5b0464d6a7..b518560bb94 100644 --- a/arch/riscv/dts/binman.dtsi +++ b/arch/riscv/dts/binman.dtsi @@ -5,12 +5,6 @@ #include <config.h> -#ifdef CONFIG_64BIT -#define ARCH "riscv64" -#else -#define ARCH "riscv" - -#endif / { binman: binman { multiple-images; @@ -37,7 +31,7 @@ description = "U-Boot"; type = "standalone"; os = "U-Boot"; - arch = ARCH; + arch = "riscv"; compression = "none"; load = /bits/ 64 <CONFIG_TEXT_BASE>; @@ -49,7 +43,7 @@ description = "Linux"; type = "standalone"; os = "Linux"; - arch = ARCH; + arch = "riscv"; compression = "none"; load = /bits/ 64 <CONFIG_TEXT_BASE>; @@ -62,7 +56,7 @@ tee { description = "OP-TEE"; type = "tee"; - arch = ARCH; + arch = "riscv"; compression = "none"; os = "tee"; load = /bits/ 64 <CONFIG_SPL_OPTEE_LOAD_ADDR>; @@ -76,7 +70,7 @@ description = "OpenSBI fw_dynamic Firmware"; type = "firmware"; os = "opensbi"; - arch = ARCH; + arch = "riscv"; compression = "none"; load = /bits/ 64 <CONFIG_SPL_OPENSBI_LOAD_ADDR>; entry = /bits/ 64 <CONFIG_SPL_OPENSBI_LOAD_ADDR>; diff --git a/arch/riscv/include/asm/u-boot.h b/arch/riscv/include/asm/u-boot.h index a90cc4c21cf..d5e1d5f3231 100644 --- a/arch/riscv/include/asm/u-boot.h +++ b/arch/riscv/include/asm/u-boot.h @@ -23,10 +23,6 @@ #include <asm/u-boot-riscv.h> /* For image.h:image_check_target_arch() */ -#ifdef CONFIG_64BIT -#define IH_ARCH_DEFAULT IH_ARCH_RISCV64 -#else #define IH_ARCH_DEFAULT IH_ARCH_RISCV -#endif #endif /* _U_BOOT_H_ */ -- 2.43.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert "riscv: Select appropriate image type" 2025-05-29 3:30 ` [PATCH] Revert "riscv: Select appropriate image type" Mayuresh Chitale @ 2025-06-02 8:10 ` Leo Liang 0 siblings, 0 replies; 7+ messages in thread From: Leo Liang @ 2025-06-02 8:10 UTC (permalink / raw) To: Mayuresh Chitale; +Cc: trini, u-boot On Thu, May 29, 2025 at 03:30:50AM +0000, Mayuresh Chitale wrote: > This reverts commit 027a316828528da95a77d20632370b1bc2823f0b as > discussed in [1]. > > [1] https://lists.denx.de/pipermail/u-boot/2025-May/590841.html > > Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> > --- > arch/riscv/dts/binman.dtsi | 14 ++++---------- > arch/riscv/include/asm/u-boot.h | 4 ---- > 2 files changed, 4 insertions(+), 14 deletions(-) Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] Revert "riscv: image: Add new image type for RV64" 2025-05-29 3:30 [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Mayuresh Chitale 2025-05-29 3:30 ` [PATCH] Revert "riscv: Select appropriate image type" Mayuresh Chitale @ 2025-05-29 3:30 ` Mayuresh Chitale 2025-06-02 8:11 ` Leo Liang 2025-06-02 8:09 ` [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Leo Liang 2025-06-02 12:09 ` Quentin Schulz 3 siblings, 1 reply; 7+ messages in thread From: Mayuresh Chitale @ 2025-05-29 3:30 UTC (permalink / raw) To: trini; +Cc: Mayuresh Chitale, u-boot This reverts commit 14a4792a71db3561bea065415ac1f2ac69ef32b5 as discussed in [1]. [1] https://lists.denx.de/pipermail/u-boot/2025-May/590841.html Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> --- boot/image.c | 3 +-- include/image.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/boot/image.c b/boot/image.c index 45299a7dc33..139c5bd035a 100644 --- a/boot/image.c +++ b/boot/image.c @@ -92,8 +92,7 @@ static const table_entry_t uimage_arch[] = { { IH_ARCH_ARC, "arc", "ARC", }, { IH_ARCH_X86_64, "x86_64", "AMD x86_64", }, { IH_ARCH_XTENSA, "xtensa", "Xtensa", }, - { IH_ARCH_RISCV, "riscv", "RISC-V 32 Bit",}, - { IH_ARCH_RISCV64, "riscv64", "RISC-V 64 Bit",}, + { IH_ARCH_RISCV, "riscv", "RISC-V", }, { -1, "", "", }, }; diff --git a/include/image.h b/include/image.h index 4620782c069..c1db8383459 100644 --- a/include/image.h +++ b/include/image.h @@ -138,8 +138,7 @@ enum { IH_ARCH_ARC, /* Synopsys DesignWare ARC */ IH_ARCH_X86_64, /* AMD x86_64, Intel and Via */ IH_ARCH_XTENSA, /* Xtensa */ - IH_ARCH_RISCV, /* RISC-V 32 bit*/ - IH_ARCH_RISCV64, /* RISC-V 64 bit*/ + IH_ARCH_RISCV, /* RISC-V */ IH_ARCH_COUNT, }; -- 2.43.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert "riscv: image: Add new image type for RV64" 2025-05-29 3:30 ` [PATCH] Revert "riscv: image: Add new image type for RV64" Mayuresh Chitale @ 2025-06-02 8:11 ` Leo Liang 0 siblings, 0 replies; 7+ messages in thread From: Leo Liang @ 2025-06-02 8:11 UTC (permalink / raw) To: Mayuresh Chitale; +Cc: trini, u-boot On Thu, May 29, 2025 at 03:30:51AM +0000, Mayuresh Chitale wrote: > This reverts commit 14a4792a71db3561bea065415ac1f2ac69ef32b5 as > discussed in [1]. > > [1] https://lists.denx.de/pipermail/u-boot/2025-May/590841.html > > Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> > --- > boot/image.c | 3 +-- > include/image.h | 3 +-- > 2 files changed, 2 insertions(+), 4 deletions(-) Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com> ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert "booti/bootm: riscv: Verify image arch type" 2025-05-29 3:30 [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Mayuresh Chitale 2025-05-29 3:30 ` [PATCH] Revert "riscv: Select appropriate image type" Mayuresh Chitale 2025-05-29 3:30 ` [PATCH] Revert "riscv: image: Add new image type for RV64" Mayuresh Chitale @ 2025-06-02 8:09 ` Leo Liang 2025-06-02 12:09 ` Quentin Schulz 3 siblings, 0 replies; 7+ messages in thread From: Leo Liang @ 2025-06-02 8:09 UTC (permalink / raw) To: Mayuresh Chitale; +Cc: trini, u-boot On Thu, May 29, 2025 at 03:30:49AM +0000, Mayuresh Chitale wrote: > This reverts commit 37b0b22d8b7bbed6aa95b6daed06dcbf4a66f211 as > discussed in [1]. > > [1] https://lists.denx.de/pipermail/u-boot/2025-May/590841.html > > Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> > --- > arch/riscv/lib/bootm.c | 4 ---- > cmd/booti.c | 7 ++----- > 2 files changed, 2 insertions(+), 9 deletions(-) Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com> ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert "booti/bootm: riscv: Verify image arch type" 2025-05-29 3:30 [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Mayuresh Chitale ` (2 preceding siblings ...) 2025-06-02 8:09 ` [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Leo Liang @ 2025-06-02 12:09 ` Quentin Schulz 3 siblings, 0 replies; 7+ messages in thread From: Quentin Schulz @ 2025-06-02 12:09 UTC (permalink / raw) To: Mayuresh Chitale, trini; +Cc: u-boot Hi Mayuresh, On 5/29/25 5:30 AM, Mayuresh Chitale wrote: > This reverts commit 37b0b22d8b7bbed6aa95b6daed06dcbf4a66f211 as > discussed in [1]. > > [1] https://lists.denx.de/pipermail/u-boot/2025-May/590841.html > I would recommend to add a little bit of context instead of simply pointing at some mail (which also is only Tom saying it's fine to revert as people shouldn't have shipped anything with this patch, not the reasons for reverting it). Also because links notoriously disappears or get broken (though I do have faith lists.denx.de is probably here to stay :) ). Same remark for the other patches. No other feedback from me, I'm not involved with RISC-V architecture. Cheers, Quentin ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-06-02 12:09 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-05-29 3:30 [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Mayuresh Chitale 2025-05-29 3:30 ` [PATCH] Revert "riscv: Select appropriate image type" Mayuresh Chitale 2025-06-02 8:10 ` Leo Liang 2025-05-29 3:30 ` [PATCH] Revert "riscv: image: Add new image type for RV64" Mayuresh Chitale 2025-06-02 8:11 ` Leo Liang 2025-06-02 8:09 ` [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Leo Liang 2025-06-02 12:09 ` Quentin Schulz
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.