linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: WANG Xuerui <git@xen0n.name>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: WANG Xuerui <git@xen0n.name>, linux-mips@vger.kernel.org
Subject: [PATCH 0/2] CPUCFG emulation future-proofing & HWCAP addition
Date: Sat, 30 May 2020 01:09:58 +0800	[thread overview]
Message-ID: <20200529171000.8905-1-git@xen0n.name> (raw)

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


             reply	other threads:[~2020-05-29 17:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-29 17:09 WANG Xuerui [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200529171000.8905-1-git@xen0n.name \
    --to=git@xen0n.name \
    --cc=linux-mips@vger.kernel.org \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).