* [kvm-unit-tests PATCH] riscv: efi: Bump number of memregions
@ 2025-01-29 16:51 Andrew Jones
2025-01-29 17:14 ` Andrew Jones
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Jones @ 2025-01-29 16:51 UTC (permalink / raw)
To: kvm-riscv
There may be a bunch of EFI memory regions in the EFI memory map,
which we convert to k-u-t memregions. Bump the number we allow to
ensure we don't hit the assert in memregions_add().
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
---
I noticed that the gitlab CI started failing the riscv EFI tests. It
looks like the edk2 used by CI has been updated to a version later than
what I was using locally and the newer one has several more memory
regions.
lib/riscv/setup.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/riscv/setup.c b/lib/riscv/setup.c
index 211945448b0f..a30aa0c4cb80 100644
--- a/lib/riscv/setup.c
+++ b/lib/riscv/setup.c
@@ -31,7 +31,11 @@
#endif
#define MAX_DT_MEM_REGIONS 16
+#ifdef CONFIG_EFI
+#define NR_MEM_REGIONS (MAX_DT_MEM_REGIONS + 128)
+#else
#define NR_MEM_REGIONS (MAX_DT_MEM_REGIONS + 16)
+#endif
extern unsigned long _etext;
--
2.48.1
--
kvm-riscv mailing list
kvm-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kvm-riscv
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [kvm-unit-tests PATCH] riscv: efi: Bump number of memregions
2025-01-29 16:51 [kvm-unit-tests PATCH] riscv: efi: Bump number of memregions Andrew Jones
@ 2025-01-29 17:14 ` Andrew Jones
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Jones @ 2025-01-29 17:14 UTC (permalink / raw)
To: Andrew Jones; +Cc: kvm-riscv
On Wed, Jan 29, 2025 at 05:51:32PM +0100, Andrew Jones wrote:
> There may be a bunch of EFI memory regions in the EFI memory map,
> which we convert to k-u-t memregions. Bump the number we allow to
> ensure we don't hit the assert in memregions_add().
>
> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
> ---
>
> I noticed that the gitlab CI started failing the riscv EFI tests. It
> looks like the edk2 used by CI has been updated to a version later than
> what I was using locally and the newer one has several more memory
> regions.
>
> lib/riscv/setup.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/lib/riscv/setup.c b/lib/riscv/setup.c
> index 211945448b0f..a30aa0c4cb80 100644
> --- a/lib/riscv/setup.c
> +++ b/lib/riscv/setup.c
> @@ -31,7 +31,11 @@
> #endif
>
> #define MAX_DT_MEM_REGIONS 16
> +#ifdef CONFIG_EFI
> +#define NR_MEM_REGIONS (MAX_DT_MEM_REGIONS + 128)
> +#else
> #define NR_MEM_REGIONS (MAX_DT_MEM_REGIONS + 16)
> +#endif
>
> extern unsigned long _etext;
>
> --
> 2.48.1
>
Merged.
--
kvm-riscv mailing list
kvm-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kvm-riscv
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-29 17:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-29 16:51 [kvm-unit-tests PATCH] riscv: efi: Bump number of memregions Andrew Jones
2025-01-29 17:14 ` Andrew Jones
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.