* [kvm-unit-tests PATCH] arm/arm64: efi: Bump number of memregions
@ 2025-04-08 15:04 Andrew Jones
2025-04-08 15:16 ` Andrew Jones
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Jones @ 2025-04-08 15:04 UTC (permalink / raw)
To: kvmarm; +Cc: alexandru.elisei, eric.auger, jean-philippe
When using QEMU's 'max' cpu type additional EFI memory regions are
present. Just like riscv's commit f35fe0ee486a ("riscv: efi: Bump
number of 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>
---
lib/arm/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/arm/setup.c b/lib/arm/setup.c
index aaa0da9804a2..67b5db07ba8f 100644
--- a/lib/arm/setup.c
+++ b/lib/arm/setup.c
@@ -31,7 +31,7 @@
#include "io.h"
#define MAX_DT_MEM_REGIONS 16
-#define NR_EXTRA_MEM_REGIONS 64
+#define NR_EXTRA_MEM_REGIONS 128
#define NR_MEM_REGIONS (MAX_DT_MEM_REGIONS + NR_EXTRA_MEM_REGIONS)
extern unsigned long _text, _etext, _data, _edata;
--
2.49.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [kvm-unit-tests PATCH] arm/arm64: efi: Bump number of memregions
2025-04-08 15:04 [kvm-unit-tests PATCH] arm/arm64: efi: Bump number of memregions Andrew Jones
@ 2025-04-08 15:16 ` Andrew Jones
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Jones @ 2025-04-08 15:16 UTC (permalink / raw)
To: kvmarm; +Cc: alexandru.elisei, eric.auger, jean-philippe
On Tue, Apr 08, 2025 at 05:04:14PM +0200, Andrew Jones wrote:
> When using QEMU's 'max' cpu type additional EFI memory regions are
> present. Just like riscv's commit f35fe0ee486a ("riscv: efi: Bump
> number of 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>
> ---
> lib/arm/setup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/arm/setup.c b/lib/arm/setup.c
> index aaa0da9804a2..67b5db07ba8f 100644
> --- a/lib/arm/setup.c
> +++ b/lib/arm/setup.c
> @@ -31,7 +31,7 @@
> #include "io.h"
>
> #define MAX_DT_MEM_REGIONS 16
> -#define NR_EXTRA_MEM_REGIONS 64
> +#define NR_EXTRA_MEM_REGIONS 128
> #define NR_MEM_REGIONS (MAX_DT_MEM_REGIONS + NR_EXTRA_MEM_REGIONS)
>
> extern unsigned long _text, _etext, _data, _edata;
> --
> 2.49.0
>
Merged through arm/queue.
Thanks,
drew
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-08 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-08 15:04 [kvm-unit-tests PATCH] arm/arm64: efi: Bump number of memregions Andrew Jones
2025-04-08 15:16 ` 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.