<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
i agree each processor type exports different information but i need to pop up information while i do /proc/cpu also i have observed that almost every arch display information w.r.t frequency. Can you suggest how i can add info related to cpufreq into /proc
?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks<br>
</div>
<div id="appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Greg KH <greg@kroah.com><br>
<b>Sent:</b> Wednesday, January 13, 2021 3:12 PM<br>
<b>To:</b> Pankaj Vinodrao Joshi <Pankaj.VJ@exaleapsemi.com><br>
<b>Cc:</b> kernelnewbies@kernelnewbies.org <kernelnewbies@kernelnewbies.org><br>
<b>Subject:</b> Re: /proc/cpuinfo not showing all info</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On Wed, Jan 13, 2021 at 09:21:31AM +0000, Pankaj Vinodrao Joshi wrote:<br>
> Hi,<br>
> 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.<br>
><br>
> i am attaching current /proc/cpuinfo<br>
><br>
><br>
> rocessor : 0<br>
> hart : 2<br>
> isa : rv64imafdc<br>
> mmu : sv39<br>
> uarch : sifive,u54-mc<br>
><br>
><br>
> but i am expecting following kind of output<br>
><br>
> processor : 0<br>
> vendor_id : GenuineIntel<br>
> cpu family : 6<br>
> model : 142<br>
> model name : Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz<br>
> stepping : 9<br>
> microcode : 0xde<br>
> cpu MHz : 700.027<br>
> cache size : 3072 KB<br>
> physical id : 0<br>
> siblings : 4<br>
> core id : 0<br>
> cpu cores : 2<br>
> apicid : 0<br>
> initial apicid : 0<br>
> fpu : yes<br>
> fpu_exception : yes<br>
> cpuid level : 22<br>
> wp : yes<br>
><br>
> Can someone suggest me how i can print all info with /proc/cpuinfo ??<br>
<br>
Each processor type exports different information in /proc/cpuinfo. How<br>
would a riscv cpu have the same types as an x86 cpu?<br>
<br>
You have to treat each cpu type individually, there is no common format<br>
for all different CPUs out there, sorry.<br>
<br>
Hope this helps,<br>
<br>
greg k-h<br>
[EXT]<br>
</div>
</span></font></div>
</body>
</html>