xen/arm: increase memory banks number define value
authorLuca Fancellu <luca.fancellu@arm.com>
Thu, 16 Dec 2021 22:43:19 +0000 (14:43 -0800)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Thu, 10 Mar 2022 17:41:35 +0000 (09:41 -0800)
Currently the maximum number of memory banks (NR_MEM_BANKS define)
is fixed to 128, but on some new platforms that have a large amount
of memory, this value is not enough and prevents Xen from booting.

Increase the value to 256.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
(cherry picked from commit f1f38e26c3669f5e4583c3756f213c167d19651a)

xen/include/asm-arm/setup.h

index 95da0b7ab9cd1f3399fa15e707803b57ad53b35c..07daf160dc5714079e6e1238fc7e5878d5059851 100644 (file)
@@ -6,7 +6,7 @@
 #define MIN_FDT_ALIGN 8
 #define MAX_FDT_SIZE SZ_2M
 
-#define NR_MEM_BANKS 128
+#define NR_MEM_BANKS 256
 
 #define MAX_MODULES 32 /* Current maximum useful modules */