All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Jones <andrew.jones@linux.dev>
To: kvmarm@lists.linux.dev
Cc: alexandru.elisei@arm.com, eric.auger@redhat.com,
	jean-philippe@linaro.org
Subject: [kvm-unit-tests PATCH] arm/arm64: efi: Bump number of memregions
Date: Tue,  8 Apr 2025 17:04:14 +0200	[thread overview]
Message-ID: <20250408150413.97104-2-andrew.jones@linux.dev> (raw)

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


             reply	other threads:[~2025-04-08 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-08 15:04 Andrew Jones [this message]
2025-04-08 15:16 ` [kvm-unit-tests PATCH] arm/arm64: efi: Bump number of memregions Andrew Jones

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=20250408150413.97104-2-andrew.jones@linux.dev \
    --to=andrew.jones@linux.dev \
    --cc=alexandru.elisei@arm.com \
    --cc=eric.auger@redhat.com \
    --cc=jean-philippe@linaro.org \
    --cc=kvmarm@lists.linux.dev \
    /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 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.