Skip to content

Commit

Permalink
With Linux 4.19-rc1 commit 7d4340bb92a9df78e6e28152f3dd89d9bd82146b,
Browse files Browse the repository at this point in the history
titled "powerpc/mm: Increase MAX_PHYSMEM_BITS to 128TB with
SPARSEMEM_VMEMMAP config", the PPC64 MAX_PHYSMEM_BITS value has
been bumped up to 47.  The appropriate update has been made in
this patch.
(hbathini@linux.ibm.com)
  • Loading branch information
Dave Anderson committed Sep 27, 2018
1 parent 27a6ebd commit 599a657
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions defs.h
Expand Up @@ -4073,6 +4073,7 @@ struct efi_memory_desc_t {
#define _SECTION_SIZE_BITS 24
#define _MAX_PHYSMEM_BITS 44
#define _MAX_PHYSMEM_BITS_3_7 46
#define _MAX_PHYSMEM_BITS_4_19 47

#endif /* PPC64 */

Expand Down
5 changes: 4 additions & 1 deletion ppc64.c
Expand Up @@ -554,7 +554,10 @@ ppc64_init(int when)
ppc64_vmemmap_init();

machdep->section_size_bits = _SECTION_SIZE_BITS;
if (THIS_KERNEL_VERSION >= LINUX(3,7,0))
if ((machdep->flags & VMEMMAP) &&
(THIS_KERNEL_VERSION >= LINUX(4,19,0)))
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_4_19;
else if (THIS_KERNEL_VERSION >= LINUX(3,7,0))
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_3_7;
else
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS;
Expand Down

0 comments on commit 599a657

Please sign in to comment.