[Crash-utility] [PATCH] arm64: support MAX_PHYSMEM_BITS=48
Dave Anderson
anderson at redhat.com
Wed Apr 27 14:05:23 UTC 2016
----- Original Message -----
> Hi,
>
> This match update made in file 'arch/arm64/include/asm/sparsemem.h'.
>
> commit 07a15dd55a3d65f81b4b09eab293f4afc720b082
> arm64: mm: update max pa bits to 48
Johan,
Queued for crash-7.1.5:
https://github.com/crash-utility/crash/commit/956e309ff182c39c3c666c3ab32b3b6cbc73a081
Thanks,
Dave
> ---
> arm64.c | 5 ++++-
> defs.h | 1 +
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/arm64.c b/arm64.c
> index d1c9c3e..34c8c59 100644
> --- a/arm64.c
> +++ b/arm64.c
> @@ -267,7 +267,10 @@ arm64_init(int when)
> case POST_GDB:
> arm64_calc_virtual_memory_ranges();
> machdep->section_size_bits = _SECTION_SIZE_BITS;
> - machdep->max_physmem_bits = _MAX_PHYSMEM_BITS;
> + if (THIS_KERNEL_VERSION >= LINUX(3,17,0))
> + machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_3_17;
> + else
> + machdep->max_physmem_bits = _MAX_PHYSMEM_BITS;
> ms = machdep->machspec;
>
> if (THIS_KERNEL_VERSION >= LINUX(4,0,0)) {
> diff --git a/defs.h b/defs.h
> index a1746cc..a09fa9a 100644
> --- a/defs.h
> +++ b/defs.h
> @@ -2965,6 +2965,7 @@ typedef signed int s32;
>
> #define _SECTION_SIZE_BITS 30
> #define _MAX_PHYSMEM_BITS 40
> +#define _MAX_PHYSMEM_BITS_3_17 48
>
> typedef unsigned long long __u64;
> typedef unsigned long long u64;
> --
> 2.4.2
>
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
>
More information about the Crash-utility
mailing list