diff mbox series

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

Message ID 20180214153045.10558-2-julien.grall@arm.com
State Accepted
Commit 2a1d6e94862b1a1d7204c83d55339e9a24d1edb4
Headers show
Series Fixup for booting Xen on Thunder-X using Grub | expand

Commit Message

Julien Grall Feb. 14, 2018, 3:30 p.m. UTC
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(-)

Comments

Stefano Stabellini Feb. 14, 2018, 6:33 p.m. UTC | #1
On Wed, 14 Feb 2018, Julien Grall wrote:
> 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>

Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
> 
>     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(-)
> 
> 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 */
>  
> -- 
> 2.11.0
>
diff mbox series

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 */