mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
CONFIG_HAVE_ARCH_PFN_VALID has been removed by following upstream patch: https://lkml.kernel.org/linux-mm/20210527174913.GJ8661@arm.com/T/ Hence kernel k5.15 onwards uses pfn_valid definition from mmzone.h, while k5.10 uses pfn_valid definition from init.c pfn_valid definition for k5.10 has last call to memblock_is_map_memory which is missing in current definition of pfn_valid. Hence bad pte fault is seen for carveout buffers. Use pfn_is_map_memory instead of pfn_valid as it ultimately calls memblock_is_map_memory. Bug 4343935 Change-Id: I27d1057ed566220e2d8b9a4482022f5318df65ff Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3027601 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>