[PATCH v2 0/3] arm64/cache: Fix cache_type_cwg() for register generation

Mark Brown broonie at kernel.org
Thu Aug 18 14:36:10 PDT 2022


Ard noticed that in converting CTR_EL0 to automatic generation we broke
cache_type_cwg() since it was using a non-standard way of specifying
_MASK that masks after rather than before shifting to retrieve the
value. We could fix this directly in a single patch but there has been
demand to also convert to use the SYS_FIELD_GET() accessor which
requires a few preparatory patches to make that safe for direct use in
cache.h.

v2:
 - Use SYS_FIELD_GET()

Mark Brown (3):
  arm64/sysreg: Directly include bitfield.h
  arm64/sysreg: Guard SYS_FIELD_ macros for asm
  arm64/cache: Fix cache_type_cwg() for register generation

 arch/arm64/include/asm/cache.h  | 2 +-
 arch/arm64/include/asm/sysreg.h | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)


base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868
-- 
2.30.2




More information about the linux-arm-kernel mailing list