Re: [PATCH v3 11/12] RISC-V: Use Linux logical cpu number instead of hartid

2018-09-10 Thread Atish Patra
On 9/10/18 4:29 AM, Christoph Hellwig wrote: On Thu, Sep 06, 2018 at 01:05:34AM -0700, Atish Patra wrote: Setup the cpu_logical_map during boot. Moreover, every SBI call and PLIC context are based on the physical hartid. Use the logical cpu to hartid mapping to pass correct hartid to respective

Re: [PATCH v3 11/12] RISC-V: Use Linux logical cpu number instead of hartid

2018-09-10 Thread Atish Patra
On 9/10/18 4:29 AM, Christoph Hellwig wrote: On Thu, Sep 06, 2018 at 01:05:34AM -0700, Atish Patra wrote: Setup the cpu_logical_map during boot. Moreover, every SBI call and PLIC context are based on the physical hartid. Use the logical cpu to hartid mapping to pass correct hartid to respective

Re: [PATCH v3 11/12] RISC-V: Use Linux logical cpu number instead of hartid

2018-09-10 Thread Christoph Hellwig
On Thu, Sep 06, 2018 at 01:05:34AM -0700, Atish Patra wrote: > Setup the cpu_logical_map during boot. Moreover, every SBI call > and PLIC context are based on the physical hartid. Use the logical > cpu to hartid mapping to pass correct hartid to respective functions. > > Signed-off-by: Atish

Re: [PATCH v3 11/12] RISC-V: Use Linux logical cpu number instead of hartid

2018-09-10 Thread Christoph Hellwig
On Thu, Sep 06, 2018 at 01:05:34AM -0700, Atish Patra wrote: > Setup the cpu_logical_map during boot. Moreover, every SBI call > and PLIC context are based on the physical hartid. Use the logical > cpu to hartid mapping to pass correct hartid to respective functions. > > Signed-off-by: Atish

[PATCH v3 11/12] RISC-V: Use Linux logical cpu number instead of hartid

2018-09-06 Thread Atish Patra
Setup the cpu_logical_map during boot. Moreover, every SBI call and PLIC context are based on the physical hartid. Use the logical cpu to hartid mapping to pass correct hartid to respective functions. Signed-off-by: Atish Patra Reviewed-by : Anup Patel --- arch/riscv/include/asm/tlbflush.h |

[PATCH v3 11/12] RISC-V: Use Linux logical cpu number instead of hartid

2018-09-06 Thread Atish Patra
Setup the cpu_logical_map during boot. Moreover, every SBI call and PLIC context are based on the physical hartid. Use the logical cpu to hartid mapping to pass correct hartid to respective functions. Signed-off-by: Atish Patra Reviewed-by : Anup Patel --- arch/riscv/include/asm/tlbflush.h |