[PATCH V2] arm64/mm: Drop wrong writes into TCR2_EL1

Will Deacon will at kernel.org
Fri Jul 4 10:44:08 PDT 2025


On Fri, 04 Jul 2025 12:08:12 +0530, Anshuman Khandual wrote:
> Register X0 contains PIE_E1_ASM and should not be written into REG_TCR2_EL1
> which could have an adverse impact otherwise. This has remained undetected
> till now probably because current value for PIE_E1_ASM (0xcc880e0ac0800000)
> clears TCR2_EL1 which again gets set subsequently with 'tcr2' after testing
> for FEAT_TCR2.
> 
> Drop this unwarranted 'msr' which is a stray change from an earlier commit.
> This line got re-introduced when rebasing on top of the commit 926b66e2ebc8
> ("arm64: setup: name 'tcr2' register").
> 
> [...]

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

[1/1] arm64/mm: Drop wrong writes into TCR2_EL1
      https://git.kernel.org/arm64/c/9dd175749341

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list