From: Aurelien Jarno Date: Wed, 21 Feb 2018 15:29:03 +0000 (+0000) Subject: MIPS: increase MAX_PHYSMEM_BITS on Loongson 3 only X-Git-Tag: archive/raspbian/4.9.82-1+deb9u3+rpi1_jessie~10^2~84 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=424e44c3ccb840c956200489c47a6295f3f6cad4;p=linux-4.9.git MIPS: increase MAX_PHYSMEM_BITS on Loongson 3 only Commit c4617318 broke Loongson-2 support and maybe even more by increasing the value of MAX_PHYSMEM_BITS. At it is currently only needed on Loongson-3, define it conditionally. Note: this should be replace by upstream fix when available. Gbp-Pq: Topic features/mips Gbp-Pq: Name MIPS-increase-MAX-PHYSMEM-BITS-on-Loongson-3-only.patch --- diff --git a/arch/mips/include/asm/sparsemem.h b/arch/mips/include/asm/sparsemem.h index b1071c1e54f5..778dca7c69e4 100644 --- a/arch/mips/include/asm/sparsemem.h +++ b/arch/mips/include/asm/sparsemem.h @@ -11,7 +11,12 @@ #else # define SECTION_SIZE_BITS 28 #endif -#define MAX_PHYSMEM_BITS 48 + +#if defined(CONFIG_CPU_LOONGSON3) +# define MAX_PHYSMEM_BITS 48 +#else +# define MAX_PHYSMEM_BITS 35 +#endif #endif /* CONFIG_SPARSEMEM */ #endif /* _MIPS_SPARSEMEM_H */