Re: [PATCH v2 1/3] RISC-V: Add logical CPU indexing for RISC-V

2018-09-04 Thread Atish Patra
On 8/30/18 11:03 PM, Christoph Hellwig wrote: On Tue, Aug 28, 2018 at 01:36:08AM -0700, Atish Patra wrote: Currently, both linux cpu id and hardware cpu id are same. This is not recommended as it will lead to discontinuous cpu indexing in Linux. Moreover, kdump kernel will run from CPU0 which wo

Re: [PATCH v2 1/3] RISC-V: Add logical CPU indexing for RISC-V

2018-08-30 Thread Christoph Hellwig
On Tue, Aug 28, 2018 at 01:36:08AM -0700, Atish Patra wrote: > Currently, both linux cpu id and hardware cpu id are same. > This is not recommended as it will lead to discontinuous cpu > indexing in Linux. Moreover, kdump kernel will run from CPU0 > which would be absent if we follow existing schem

[PATCH v2 1/3] RISC-V: Add logical CPU indexing for RISC-V

2018-08-28 Thread Atish Patra
Currently, both linux cpu id and hardware cpu id are same. This is not recommended as it will lead to discontinuous cpu indexing in Linux. Moreover, kdump kernel will run from CPU0 which would be absent if we follow existing scheme. Implement a logical mapping between Linux cpu id and hardware cpu