/proc/cpuinfo not showing all info

Greg KH greg at kroah.com
Wed Jan 13 04:42:01 EST 2021


On Wed, Jan 13, 2021 at 09:21:31AM +0000, Pankaj  Vinodrao Joshi wrote:
> Hi,
> i am using sifive's u540, RISCV64 with custom kernel 5.10.2 and i am trying to get all hardware information with the help of /proc/cpuinfo but i am not able get all information i need.
> 
> i am attaching current /proc/cpuinfo
> 
> 
> rocessor        : 0
> hart            : 2
> isa             : rv64imafdc
> mmu             : sv39
> uarch           : sifive,u54-mc
> 
> 
> but i am expecting following kind of output
> 
> processor       : 0
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 142
> model name      : Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz
> stepping        : 9
> microcode       : 0xde
> cpu MHz         : 700.027
> cache size      : 3072 KB
> physical id     : 0
> siblings        : 4
> core id         : 0
> cpu cores       : 2
> apicid          : 0
> initial apicid  : 0
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 22
> wp              : yes
> 
> Can someone suggest me how i can print all info with /proc/cpuinfo  ??

Each processor type exports different information in /proc/cpuinfo.  How
would a riscv cpu have the same types as an x86 cpu?

You have to treat each cpu type individually, there is no common format
for all different CPUs out there, sorry.

Hope this helps,

greg k-h



More information about the Kernelnewbies mailing list