]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: mm: warn once for ioremap attempts on RAM mappings
authorBreno Leitao <leitao@debian.org>
Mon, 22 Dec 2025 15:28:55 +0000 (07:28 -0800)
committerWill Deacon <will@kernel.org>
Thu, 22 Jan 2026 11:20:29 +0000 (11:20 +0000)
commit53f45f045cbe89024d2b71c145c782bb6a82a602
tree22177be51c97c8da40df5b73bed6c0fa43c5d480
parentf22c81bebf8bda6e54dc132df0ed54f6bf8756f9
arm64: mm: warn once for ioremap attempts on RAM mappings

Replace WARN_ON with WARN_ONCE when detecting attempts to ioremap
RAM. This prevents log spam when a misbehaving driver repeatedly tries
to map RAM via ioremap.

A single warning is more than enough to show the broken code path, and
extra reports don't add extra information.

Warning floods have been seen in production environments where broken
external drivers hit this code path thousand of times, causing
unnecessary messages to be printed and pressure on the serial console.

Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/ioremap.c