[Xen-devel,1/2] xen/arm: Extend the number of memory banks supported

Message ID 20180206195655.7097-2-julien.grall@arm.com
State Superseded
Headers show
Series
  • Fixup for booting Xen on Thunder-X using Grub
Related show

Commit Message

Julien Grall Feb. 6, 2018, 7:56 p.m.
When booting using Grub on Thunder-X, the number of memory available is
greater than 64. Bump the number to 128, so we can take advantage of all
the memory.

Signed-off-by: Julien Grall <julien.grall@arm.com>

---

    Note that I wasn't able to boot without this patch, because EFI stub
    is printing an error when the number of region exceed 64. This will
    result to fragment in bit more the memory (sounds like print
    allocate memory) and will fail to get the memory on retry.
---
 xen/include/asm-arm/setup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/xen/include/asm-arm/setup.h b/xen/include/asm-arm/setup.h
index 7ff2c34dab..0cc3330807 100644
--- a/xen/include/asm-arm/setup.h
+++ b/xen/include/asm-arm/setup.h
@@ -6,7 +6,7 @@ 
 #define MIN_FDT_ALIGN 8
 #define MAX_FDT_SIZE SZ_2M
 
-#define NR_MEM_BANKS 64
+#define NR_MEM_BANKS 128
 
 #define MAX_MODULES 5 /* Current maximum useful modules */