Re: [PATCH] arm64: realm: Fix PTE_NS_SHARED for 52bit PA support

From: Will Deacon

Date: Thu Mar 19 2026 - 09:50:20 EST


On Mon, 16 Mar 2026 16:19:01 +0000, Suzuki K Poulose wrote:
> With LPA/LPA2, the top bits of the PFN (Bits[51:48]) end up in the lower bits
> of the PTE. So, simply creating a mask of the "top IPA bit" doesn't work well
> for these configurations to set the "top" bit at the output of Stage1
> translation.
>
> Fix this by using the __phys_to_pte_val() to do the right thing for all
> configurations.
>
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: realm: Fix PTE_NS_SHARED for 52bit PA support
https://git.kernel.org/arm64/c/8c6e9b60f5c7

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev