Skip to content

arm64: sysreg: Bring field definitions in line with the spec

Fuad Tabba kvmarm linux-arm-kernel linux-perf-users lkml sashiko-reviews 1 version Applied

Status from this message: Applied to arm64 (for-next/sysreg), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4arm64: sysreg: Fix three incorrect enum valuesarch/arm64/tools/sysreg+3 -31 reply
2/4arm64: sysreg: Fix the names of two misspelt fieldsarch/arm64/kvm/config.c arch/arm64/kvm/emulate-nested.c arch/arm64/tools/sysreg+6 -61 reply
3/4arm64: sysreg: Mark fields the architecture dropped as RES0arch/arm64/tools/sysreg+3 -83 replies
4/4perf: arm_brbe: Remove the check for TME transaction statesarch/arm64/tools/sysreg drivers/perf/arm_brbe.c+1 -220 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchMark BrownSteffen Eiden
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] arm64: sysreg: Bring field definitions in line with the spec

Hi folks,

Fixes to definitions in the sysreg file that don't match the current
spec: three wrong enum values, two misspelt field names, and fields the architecture has dropped, including leftovers from FEAT_TME. The last patch also removes the BRBE driver's check on two more such fields (BRBINFx_EL1.T and LASTFAILED), the only functional change in the series.

These came out of the pKVM feature-bit audit, which led me to check the whole file against ARM's register descriptions.

I plan to look at turning that check into a linter under arch/arm64/tools, along the lines Will suggested [1], so the next batch doesn't depend on someone reading the spec.

Based on Linux 7.3-rc6 (a90ee4305c4a5).

Cheers,
/fuad

[1] https://lore.kernel.org/all/20241211224015.GB17836@willie-the-truck/

Fuad Tabba (4):
arm64: sysreg: Fix three incorrect enum values
arm64: sysreg: Fix the names of two misspelt fields
arm64: sysreg: Mark fields the architecture dropped as RES0
perf: arm_brbe: Remove the check for TME transaction states

 arch/arm64/kvm/config.c         |  4 ++--
 arch/arm64/kvm/emulate-nested.c |  2 +-
 arch/arm64/tools/sysreg         | 28 ++++++++++------------------
 drivers/perf/arm_brbe.c         | 18 ------------------
 4 files changed, 13 insertions(+), 39 deletions(-)

base-commit: a90ee4305c4a5df72c11b31dacfdc76e00fcf78a

Signature · 1 line
2.39.5