]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit3baca1a4d490484fcd555413f1fec85b2e071912
tree1114d597cbf944d454dc64b1e8d22739667e6ef0
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
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