Re: [PATCH] powerpc: Set max_mapnr correctly

2021-10-17 Thread Michael Ellerman
On Tue, 12 Oct 2021 12:40:37 +0200, Christophe Leroy wrote: > max_mapnr is used by virt_addr_valid() to check if a linear > address is valid. > > It must only include lowmem PFNs, like other architectures. > > Problem detected on a system with 1G mem (Only 768M are mapped), with >

[PATCH] powerpc: Set max_mapnr correctly

2021-10-12 Thread Christophe Leroy
max_mapnr is used by virt_addr_valid() to check if a linear address is valid. It must only include lowmem PFNs, like other architectures. Problem detected on a system with 1G mem (Only 768M are mapped), with CONFIG_DEBUG_VIRTUAL and CONFIG_TEST_DEBUG_VIRTUAL, it didn't report