Skip to contentSkip to conversation

memblock, arm: fixup for the pfn_valid() rework for v5.14-rc1

GIT PULL Merged Mike Rapoport 2 participants 2 messages Jul 9, 2021 – Jul 10, 2021 Memory management

lore
Share & tools
lore
#0 lore raw

Hi Linus,

This is a fix for the rework of ARM's pfn_valid() implementation merged during this merge window.

The following changes since commit a180bd1d7e16173d965b263c5a536aa40afa2a2a:

iov_iter: remove uaccess_kernel() warning from iov_iter_init() (2021-07-04 16:12:42 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git tags/fixes-2021-07-09

for you to fetch changes up to 024591f9a6e0164ec23301784d1e6d8f6cacbe59:

arm: ioremap: don't abuse pfn_valid() to check if pfn is in RAM (2021-07-06 09:01:47 +0300)

----------------------------------------------------------------
arm: ioremap: don't abuse pfn_valid() to check if pfn is in RAM

The semantics of pfn_valid() is to check presence of the memory map for a PFN and not whether a PFN is in RAM. The memory map may be present for a hole in the physical memory and if such hole corresponds to an MMIO range, __arm_ioremap_pfn_caller() will produce a WARN() and fail:

Use memblock_is_map_memory() instead of pfn_valid() to check if a PFN is in RAM or not.

----------------------------------------------------------------
Mike Rapoport (1):
arm: ioremap: don't abuse pfn_valid() to check if pfn is in RAM

 arch/arm/mm/ioremap.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Signature · 2 lines
Sincerely yours,
Mike.
merge bot Merged
#1 lore raw
The pull request you sent on Fri, 9 Jul 2021 21:46:33 +0300:

The pull request you sent on Fri, 9 Jul 2021 21:46:33 +0300:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git tags/fixes-2021-07-09

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/b6fd9e259457b847646844ed202b830e585289dd

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html