[PATCH v2] RISC-V: Add mvendorid, marchid, and mimpid to /proc/cpuinfo output

Heiko Stuebner heiko at sntech.de
Tue Oct 11 00:59:50 PDT 2022


Am Mittwoch, 27. Juli 2022, 06:38:29 CEST schrieb Anup Patel:
> 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 at ventanamicro.com>
> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> Tested-by: Nikita Shubin <n.shubin at yadro.com>

Reviewed-by: Heiko Stuebner <heiko at sntech.de>
[on Qemu and Allwinner D1]
Tested-by: Heiko Stuebner <heiko at sntech.de>







More information about the linux-riscv mailing list