On Thu, Apr 21, 2022 at 09:42:36AM +0300, Mike Rapoport wrote:
The problem is that memremap() uses pfn_valid() to check if RAM resource can be accessed via linear mapping and this check is wrong. The problem does not manifest on more recent kernels because the way ARM registers "System RAM" resources was updated so that it skipped NOMAP memory.
Can you please give a whirl to the patch below? If it's Ok I'll extend it to include arm64 and will send a formal patch.
Looks to have tested out OK:
https://linux.kernelci.org/test/job/broonie-misc/branch/for-kernelci/kernel/...
Tested-by: Mark Brown broonie@kernel.org