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

From: Heiko Stuebner
Date: Tue Oct 11 2022 - 04:00:02 EST


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@xxxxxxxxxxxxxxxx>
> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@xxxxxxxxxxxxx>
> Tested-by: Nikita Shubin <n.shubin@xxxxxxxxx>

Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx>
[on Qemu and Allwinner D1]
Tested-by: Heiko Stuebner <heiko@xxxxxxxxx>