Re: [RFC PATCH v3 1/2] arch: riscv: cpu: Add callback to init each core

2021-03-28 Thread Green Wan
On Mon, Mar 29, 2021 at 10:26 AM Sean Anderson wrote: > > On 3/26/21 10:18 PM, Green Wan wrote: > > Add a callback riscv_hart_early_init() to ./arch/riscv/cpu/start.S to > > allow different riscv hart perform setup code for each hart as early > > as possible. Since all the harts enter the callback

Re: [RFC PATCH v3 1/2] arch: riscv: cpu: Add callback to init each core

2021-03-28 Thread Green Wan
Oaky, thanks for sharing the defconfig info. - Green Leo Liang 於 2021年3月29日 週一,上午10:24寫道: > On Fri, Mar 26, 2021 at 05:03:54PM +0800, Green Wan wrote: > > On Fri, Mar 26, 2021 at 9:34 AM Sean Anderson wrote: > > > > > > On 3/25/21 9:22 PM, Leo Liang wrote: > > > > Hi Green, > > > > > > > > On T

Re: [RFC PATCH v3 1/2] arch: riscv: cpu: Add callback to init each core

2021-03-28 Thread Sean Anderson
On 3/26/21 10:18 PM, Green Wan wrote: Add a callback riscv_hart_early_init() to ./arch/riscv/cpu/start.S to allow different riscv hart perform setup code for each hart as early as possible. Since all the harts enter the callback, they must be able to run the same setup. Signed-off-by: Green Wan

Re: [RFC PATCH v3 1/2] arch: riscv: cpu: Add callback to init each core

2021-03-28 Thread Leo Liang
On Fri, Mar 26, 2021 at 05:03:54PM +0800, Green Wan wrote: > On Fri, Mar 26, 2021 at 9:34 AM Sean Anderson wrote: > > > > On 3/25/21 9:22 PM, Leo Liang wrote: > > > Hi Green, > > > > > > On Tue, Mar 23, 2021 at 01:35:38AM -0700, Green Wan wrote: > > >> Add a callback riscv_hart_early_init() to ./a

[RFC PATCH v3 1/2] arch: riscv: cpu: Add callback to init each core

2021-03-26 Thread Green Wan
Add a callback riscv_hart_early_init() to ./arch/riscv/cpu/start.S to allow different riscv hart perform setup code for each hart as early as possible. Since all the harts enter the callback, they must be able to run the same setup. Signed-off-by: Green Wan --- arch/riscv/cpu/cpu.c | 15 ++