Thread (44 messages) 44 messages, 9 authors, 12d ago

Re: [PATCH v3 04/11] arm64/mm: Add set_memory_device() and set_memory_normal()

From: Will Deacon <will@kernel.org>
Date: 2026-07-02 09:20:07
Also in: dri-devel, linux-devicetree, linux-iommu, linux-media, linux-s390, linux-tegra, lkml

On Wed, Jul 01, 2026 at 06:08:15PM +0200, Thierry Reding wrote:
From: Chun Ng <redacted>

Add helpers to swap PROT_NORMAL and PROT_DEVICE_nGnRnE protection bits
on a kernel-linear-map range.
That sounds like a really terrible idea. Why is this necessary and how
does it interact with things like load_unaligned_zeropad()?

I think you should unmap the memory from the linear map and memremap()
it instead.

Will
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help