]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Add mvendorid, marchid, and mimpid to /proc/cpuinfo output
authorAnup Patel <apatel@ventanamicro.com>
Wed, 27 Jul 2022 04:38:29 +0000 (10:08 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 4 Oct 2022 01:55:47 +0000 (18:55 -0700)
commit15fa2c5292e9a9c554cc52fa3f21c99d713ef02c
tree1114d597cbf944d454dc64b1e8d22739667e6ef0
parent34a3249ab33a1690f58cd6e91a0208887337d3e0
RISC-V: Add mvendorid, marchid, and mimpid to /proc/cpuinfo output

Identifying the underlying RISC-V implementation can be important
for some of the user space applications. For example, the perf tool
uses arch specific CPU implementation id (i.e. CPUID) to select a
JSON file describing custom perf events on a CPU.

Currently, there is no way to identify RISC-V implementation so we
add mvendorid, marchid, and mimpid to /proc/cpuinfo output.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: Nikita Shubin <n.shubin@yadro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220727043829.151794-1-apatel@ventanamicro.com/
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpu.c