On Wed, 2019-04-03 at 06:05:14 UTC, "Aneesh Kumar K.V" wrote: > The current value of MAX_PHYSMEM_BITS cannot work with 32 bit configs. > We used to have MAX_PHYSMEM_BITS not defined without SPARSEMEM and 32 > bit configs never expected a value to be set for MAX_PHYSMEM_BITS. > > Dependent code such as zsmalloc derived the right values based on other > fields. Instead of finding a value that works with different configs, > use new values only for book3s_64. For 64 bit booke, use the definition > of MAX_PHYSMEM_BITS as per commit a7df61a0e2b6 ("[PATCH] ppc64: Increase > sparsemem defaults") > That change was done in 2005 and hopefully will work with book3e 64. > > Fixes: 8bc086899816 ("powerpc/mm: Only define MAX_PHYSMEM_BITS in SPARSEMEM > configurations") > Signed-off-by: Aneesh Kumar K.V <aneesh.ku...@linux.ibm.com>
Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/6161a37307f3320808b5a7549593b991 cheers