linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] RISC-V: load initrd wherever it fits into memory
@ 2021-06-29 13:40 Heinrich Schuchardt
  2021-06-29 22:56 ` Atish Patra
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Heinrich Schuchardt @ 2021-06-29 13:40 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: Andreas Schwab, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Atish Patra, linux-efi, linux-riscv, linux-kernel,
	Heinrich Schuchardt

Requiring that initrd is loaded below RAM start + 256 MiB led to failure
to boot SUSE Linux with GRUB on QEMU, cf.
https://lists.gnu.org/archive/html/grub-devel/2021-06/msg00037.html

Remove the constraint.

Reported-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 arch/riscv/include/asm/efi.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/include/asm/efi.h b/arch/riscv/include/asm/efi.h
index 7542282f1141..649ab513dc99 100644
--- a/arch/riscv/include/asm/efi.h
+++ b/arch/riscv/include/asm/efi.h
@@ -33,10 +33,10 @@ static inline unsigned long efi_get_max_fdt_addr(unsigned long image_addr)

 #define ARCH_EFI_IRQ_FLAGS_MASK (SR_IE | SR_SPIE)

-/* Load initrd at enough distance from DRAM start */
+/* Load initrd anywhere in system RAM */
 static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr)
 {
-	return image_addr + SZ_256M;
+	return ULONG_MAX;
 }

 #define alloc_screen_info(x...)		(&screen_info)
--
2.30.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-22  6:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 13:40 [PATCH 1/1] RISC-V: load initrd wherever it fits into memory Heinrich Schuchardt
2021-06-29 22:56 ` Atish Patra
2021-06-30  7:30   ` Ard Biesheuvel
2021-07-02 19:11     ` Atish Patra
2021-07-06 19:07 ` Andreas Schwab
2021-07-09 17:14   ` Atish Patra
2021-07-20 15:00     ` Heinrich Schuchardt
2021-07-22  6:09 ` Palmer Dabbelt

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).