Skip to content

CPUCFG emulation future-proofing & HWCAP addition

WANG Xuerui linux-mips 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- unconditionally bump PERF_COUNT_SW_EMULATION_FAULTS even on unsupported core models
- reordered model match arms per Huacai's review
- tweaked commit message of 2nd patch

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3MIPS: Loongson64: Guard against future cores without CPUCFGarch/mips/include/asm/mach-loongson64/cpucfg-emul.h arch/mips/kernel/traps.c arch/mips/loongson64/cpucfg-emul.c+35 -171 reply
2/3MIPS: Expose Loongson CPUCFG availability via HWCAParch/mips/include/uapi/asm/hwcap.h arch/mips/loongson64/cpucfg-emul.c+9 -11 reply
3/3MIPS: Loongson64: Reorder CPUCFG model match armsarch/mips/loongson64/cpucfg-emul.c+16 -161 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchHuacai Chen
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] CPUCFG emulation future-proofing & HWCAP addition

This patch series future-proofs the CPUCFG emulation, in light of possibility of new Loongson cores still lacking native CPUCFG. Also an HWCAP flag bit is allocated and exposed for userspace's probing convenience, per the earlier plan shared on the mailing list.

Tested on Loongson-3A3000 and Loongson-3A4000. Compile-tested with 64r2_defconfig.

v2:
- unconditionally bump PERF_COUNT_SW_EMULATION_FAULTS even on unsupported core models
- reordered model match arms per Huacai's review
- tweaked commit message of 2nd patch

WANG Xuerui (3):
MIPS: Loongson64: Guard against future cores without CPUCFG
MIPS: Expose Loongson CPUCFG availability via HWCAP
MIPS: Loongson64: Reorder CPUCFG model match arms

 .../include/asm/mach-loongson64/cpucfg-emul.h | 11 +++
 arch/mips/include/uapi/asm/hwcap.h            |  1 +
 arch/mips/kernel/traps.c                      |  4 ++
 arch/mips/loongson64/cpucfg-emul.c            | 70 +++++++++++--------
 4 files changed, 56 insertions(+), 30 deletions(-)
Signature · 1 line
2.26.2