All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Provide a fraemework for RISC-V ISA extensions
@ 2021-12-24 21:16 ` Atish Patra
  0 siblings, 0 replies; 26+ messages in thread
From: Atish Patra @ 2021-12-24 21:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: Atish Patra, Albert Ou, Atish Patra, Anup Patel, Damien Le Moal,
	devicetree, Jisheng Zhang, Krzysztof Kozlowski, linux-riscv,
	Palmer Dabbelt, Paul Walmsley, Rob Herring

This series implements a generic framework to parse multi-letter ISA
extensions. It introduces a new DT node that can be under /cpus or
individual cpu depends on the platforms with homogeneous or heterogeneous 
harts. This version of the series only allows adds support for homogeneous
harts as there are no platforms with heterogeneous harts yet. However,
the DT binding allows both. 

The patch also indicates the user space about the available ISA extensions
via /proc/cpuinfo. 

Here is the example output of /proc/cpuinfo:
(with debug patches in Qemu and Linux kernel)

/ # cat /proc/cpuinfo 
processor	: 0
hart		: 0
isa		: rv64imafdcsu
isa-ext		: sstc,sscofpmf
mmu		: sv48

processor	: 1
hart		: 1
isa		: rv64imafdcsu
isa-ext		: sstc,sscofpmf
mmu		: sv48

processor	: 2
hart		: 2
isa		: rv64imafdcsu
isa-ext		: sstc,sscofpmf
mmu		: sv48

processor	: 3
hart		: 3
isa		: rv64imafdcsu
isa-ext		: sstc,sscofpmf
mmu		: sv48

Anybody adding support for any new multi-letter extensions should add an
entry to the riscv_isa_ext_id and the isa extension array. 
E.g. The patch[1] adds the support for sscofpmf extension.

[1] https://github.com/atishp04/linux/commit/a23157264118d6fd905fd08d8717c7df03078bb1

Atish Patra (2):
RISC-V: Provide a framework for parsing multi-letter ISA extensions
dt-bindings: riscv: Add DT binding for RISC-V ISA extensions

.../devicetree/bindings/riscv/cpus.yaml       |  9 +++
arch/riscv/include/asm/hwcap.h                | 31 ++++++++++
arch/riscv/kernel/cpu.c                       | 16 +++++
arch/riscv/kernel/cpufeature.c                | 58 ++++++++++++++++++-
4 files changed, 113 insertions(+), 1 deletion(-)

--
2.33.1


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

end of thread, other threads:[~2022-02-03 13:57 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-24 21:16 [PATCH v1 0/2] Provide a fraemework for RISC-V ISA extensions Atish Patra
2021-12-24 21:16 ` Atish Patra
2021-12-24 21:16 ` [PATCH v1 1/2] RISC-V: Provide a framework for parsing multi-letter " Atish Patra
2021-12-24 21:16   ` Atish Patra
2021-12-25  3:12   ` Tsukasa OI
2021-12-25  3:12     ` Tsukasa OI
2021-12-25  6:09     ` Atish Patra
2021-12-25  6:09       ` Atish Patra
2021-12-25 10:11   ` Krzysztof Kozlowski
2021-12-25 10:11     ` Krzysztof Kozlowski
2022-01-01  2:37   ` kernel test robot
2022-01-01  2:37     ` kernel test robot
2021-12-24 21:16 ` [PATCH v1 2/2] dt-bindings: riscv: Add DT binding for RISC-V " Atish Patra
2021-12-24 21:16   ` Atish Patra
2021-12-24 23:25   ` Jessica Clarke
2021-12-24 23:25     ` Jessica Clarke
2021-12-25  5:52     ` Atish Patra
2021-12-25  5:52       ` Atish Patra
2021-12-25 14:48   ` Rob Herring
2021-12-25 14:48     ` Rob Herring
2022-01-07 21:58 ` [PATCH v1 0/2] Provide a fraemework " Palmer Dabbelt
2022-01-07 21:58   ` Palmer Dabbelt
2022-01-08  2:24   ` Atish Patra
2022-01-08  2:24     ` Atish Patra
2022-02-03 13:56     ` Heiko Stübner
2022-02-03 13:56       ` Heiko Stübner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.