linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] CPUCFG emulation future-proofing & HWCAP addition
@ 2020-05-29 17:09 WANG Xuerui
  2020-05-29 17:09 ` [PATCH 1/2] MIPS: Loongson64: Guard against future cores without CPUCFG WANG Xuerui
  2020-05-29 17:10 ` [PATCH 2/2] MIPS: Expose Loongson CPUCFG availability via HWCAP WANG Xuerui
  0 siblings, 2 replies; 4+ messages in thread
From: WANG Xuerui @ 2020-05-29 17:09 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: WANG Xuerui, linux-mips

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.

WANG Xuerui (2):
  MIPS: Loongson64: Guard against future cores without CPUCFG
  MIPS: Expose Loongson CPUCFG availability via HWCAP

 .../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            | 46 +++++++++++--------
 4 files changed, 44 insertions(+), 18 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2020-05-30  4:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-29 17:09 [PATCH 0/2] CPUCFG emulation future-proofing & HWCAP addition WANG Xuerui
2020-05-29 17:09 ` [PATCH 1/2] MIPS: Loongson64: Guard against future cores without CPUCFG WANG Xuerui
2020-05-30  4:26   ` Huacai Chen
2020-05-29 17:10 ` [PATCH 2/2] MIPS: Expose Loongson CPUCFG availability via HWCAP WANG Xuerui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).