Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* arm64: MPAM2_EL2 and MPAMHCR_EL2 are left UNKNOWN under arm64.nompam
@ 2026-08-25 19:18 Fuad Tabba
  2026-08-26 14:48 ` Ben Horgan
  0 siblings, 1 reply; 4+ messages in thread
From: Fuad Tabba @ 2026-08-25 19:18 UTC (permalink / raw)
  To: Xi Ruoyao, James Morse, Catalin Marinas, Will Deacon
  Cc: Marc Zyngier, Ben Horgan,
	moderated list:ARM64 PORT (AARCH64 ARCHITECTURE), open list

Hi Xi, James, Catalin, Will,

I'm going through the features that can be disabled on the host
command line, checking that EL2 either traps them or leaves its own
controls in a defined state. That quick and easy GMID_EL1 fix came out
of the same pass [1] :)

Since 10f885d63a0e ("arm64: Add override for MPAM"), arm64.nompam
skips the MPAM2_EL2 and MPAMHCR_EL2 writes in finalise_el2_state, so
on an MPAM PE with EL3 implemented the trap controls in both keep
their reset values, which are architecturally UNKNOWN.

I was wondering whether that was deliberate. AFAICT, restoring the
writes would trap to EL3 wherever MPAM3_EL3.TRAPLOWER is still set, so
it may not be safe on the machines the override was added for. I have
a patch restoring them, but I learned my lesson.

Cheers,
/fuad

[1] https://lore.kernel.org/all/20260825164219.3347229-1-fuad.tabba@linux.dev/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-27  8:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-25 19:18 arm64: MPAM2_EL2 and MPAMHCR_EL2 are left UNKNOWN under arm64.nompam Fuad Tabba
2026-08-26 14:48 ` Ben Horgan
2026-08-26 22:08   ` Fuad Tabba
2026-08-27  8:41     ` Ben Horgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox