Re: [PATCH] RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo

2018-10-01 Thread Palmer Dabbelt
On Fri, 28 Sep 2018 23:12:47 PDT (-0700), a...@brainfault.org wrote: On Sat, Sep 29, 2018 at 7:16 AM Palmer Dabbelt wrote: On Wed, 12 Sep 2018 07:38:22 PDT (-0700), a...@brainfault.org wrote: > Currently, /proc/cpuinfo show logical CPU ID as Hart ID which > is in-correct. This patch shows CPU

Re: [PATCH] RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo

2018-09-28 Thread Anup Patel
On Sat, Sep 29, 2018 at 7:16 AM Palmer Dabbelt wrote: > > On Wed, 12 Sep 2018 07:38:22 PDT (-0700), a...@brainfault.org wrote: > > Currently, /proc/cpuinfo show logical CPU ID as Hart ID which > > is in-correct. This patch shows CPU ID and Hart ID separately > > in /proc/cpuinfo using cpuid_to_har

Re: [PATCH] RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo

2018-09-28 Thread Palmer Dabbelt
On Wed, 12 Sep 2018 07:38:22 PDT (-0700), a...@brainfault.org wrote: Currently, /proc/cpuinfo show logical CPU ID as Hart ID which is in-correct. This patch shows CPU ID and Hart ID separately in /proc/cpuinfo using cpuid_to_hardid_map(). With this patch, contents of /proc/cpuinfo looks as follo

Re: [PATCH] RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo

2018-09-23 Thread Anup Patel
On Mon, Sep 17, 2018 at 7:40 PM Christoph Hellwig wrote: > > On Wed, Sep 12, 2018 at 09:47:55AM -0700, Atish Patra wrote: > > The extra hart information will not be parsed by lscpu which will make the > > cpu information inconsistent between lscpu & /proc/cpuinfo. > > > > Should we patch lscpu as

Re: [PATCH] RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo

2018-09-17 Thread Christoph Hellwig
On Wed, Sep 12, 2018 at 09:47:55AM -0700, Atish Patra wrote: > The extra hart information will not be parsed by lscpu which will make the > cpu information inconsistent between lscpu & /proc/cpuinfo. > > Should we patch lscpu as well to show correct hart id as well ? It would be good to follow wh

Re: [PATCH] RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo

2018-09-12 Thread Anup Patel
On Wed, Sep 12, 2018 at 10:17 PM Atish Patra wrote: > > On 9/12/18 7:38 AM, Anup Patel wrote: > > Currently, /proc/cpuinfo show logical CPU ID as Hart ID which > > is in-correct. This patch shows CPU ID and Hart ID separately > > in /proc/cpuinfo using cpuid_to_hardid_map(). > > > > With this patc

Re: [PATCH] RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo

2018-09-12 Thread Atish Patra
On 9/12/18 7:38 AM, Anup Patel wrote: Currently, /proc/cpuinfo show logical CPU ID as Hart ID which is in-correct. This patch shows CPU ID and Hart ID separately in /proc/cpuinfo using cpuid_to_hardid_map(). With this patch, contents of /proc/cpuinfo looks as follows: cpu : 0 hart: 1 isa

[PATCH] RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo

2018-09-12 Thread Anup Patel
Currently, /proc/cpuinfo show logical CPU ID as Hart ID which is in-correct. This patch shows CPU ID and Hart ID separately in /proc/cpuinfo using cpuid_to_hardid_map(). With this patch, contents of /proc/cpuinfo looks as follows: cpu : 0 hart: 1 isa : rv64imafdcsu mmu : sv48 cpu