]> 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)
commite5b1b86dcda18ecf9d31c2343500b68e24e90bfa
tree1114d597cbf944d454dc64b1e8d22739667e6ef0
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
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