Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-14 Thread Sean Anderson
On 9/11/20 4:04 AM, Bin Meng wrote: > On Tue, Sep 8, 2020 at 2:17 AM Sean Anderson wrote: >> >> Some IPIs may already be pending when U-Boot is started. This could be a >> problem if a secondary hart tries to handle an IPI before the boot hart has >> initialized the IPI device. >> >> This

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-14 Thread Leo Liang
Hi, Bin On Mon, Sep 14, 2020 at 10:07:57AM +0800, Bin Meng wrote: > Hi Leo, > > On Mon, Sep 14, 2020 at 9:58 AM Leo Liang wrote: > > > > On Fri, Sep 11, 2020 at 04:04:13PM +0800, Bin Meng wrote: > > > On Tue, Sep 8, 2020 at 2:17 AM Sean Anderson wrote: > > > > > > > > Some IPIs may already be

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-14 Thread Leo Liang
On Fri, Sep 11, 2020 at 04:04:13PM +0800, Bin Meng wrote: > On Tue, Sep 8, 2020 at 2:17 AM Sean Anderson wrote: > > > > Some IPIs may already be pending when U-Boot is started. This could be a > > problem if a secondary hart tries to handle an IPI before the boot hart has > > initialized the IPI

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-14 Thread Bin Meng
Hi Leo, On Mon, Sep 14, 2020 at 2:10 PM Leo Liang wrote: > > Hi, Bin > On Mon, Sep 14, 2020 at 10:07:57AM +0800, Bin Meng wrote: > > Hi Leo, > > > > On Mon, Sep 14, 2020 at 9:58 AM Leo Liang wrote: > > > > > > On Fri, Sep 11, 2020 at 04:04:13PM +0800, Bin Meng wrote: > > > > On Tue, Sep 8, 2020

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-13 Thread Rick Chen
Hi Sean > On 9/9/20 5:01 AM, Rick Chen wrote: > > Hi Sean > > > >> Hi Sean > >> > >>> Some IPIs may already be pending when U-Boot is started. This could be a > >>> problem if a secondary hart tries to handle an IPI before the boot hart > >>> has > >>> initialized the IPI device. > >>> > >>>

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-13 Thread Bin Meng
Hi Leo, On Mon, Sep 14, 2020 at 9:58 AM Leo Liang wrote: > > On Fri, Sep 11, 2020 at 04:04:13PM +0800, Bin Meng wrote: > > On Tue, Sep 8, 2020 at 2:17 AM Sean Anderson wrote: > > > > > > Some IPIs may already be pending when U-Boot is started. This could be a > > > problem if a secondary hart

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-11 Thread Bin Meng
On Tue, Sep 8, 2020 at 2:17 AM Sean Anderson wrote: > > Some IPIs may already be pending when U-Boot is started. This could be a > problem if a secondary hart tries to handle an IPI before the boot hart has > initialized the IPI device. > > This commit uses NULL as a sentinel for secondary harts

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-10 Thread Rick Chen
Hi Sean > On 9/9/20 5:01 AM, Rick Chen wrote: > > Hi Sean > > > >> Hi Sean > >> > >>> Some IPIs may already be pending when U-Boot is started. This could be a > >>> problem if a secondary hart tries to handle an IPI before the boot hart > >>> has > >>> initialized the IPI device. > >>> > >>>

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-09 Thread Sean Anderson
On 9/9/20 6:26 AM, Heinrich Schuchardt wrote: > On 9/9/20 12:16 PM, Sean Anderson wrote: >> On 9/9/20 5:01 AM, Rick Chen wrote: >>> Hi Sean >>> Hi Sean > Some IPIs may already be pending when U-Boot is started. This could be a > problem if a secondary hart tries to handle an IPI

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-09 Thread Heinrich Schuchardt
On 9/9/20 12:16 PM, Sean Anderson wrote: > On 9/9/20 5:01 AM, Rick Chen wrote: >> Hi Sean >> >>> Hi Sean >>> Some IPIs may already be pending when U-Boot is started. This could be a problem if a secondary hart tries to handle an IPI before the boot hart has initialized the IPI

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-09 Thread Sean Anderson
On 9/9/20 5:01 AM, Rick Chen wrote: > Hi Sean > >> Hi Sean >> >>> Some IPIs may already be pending when U-Boot is started. This could be a >>> problem if a secondary hart tries to handle an IPI before the boot hart has >>> initialized the IPI device. >>> >>> This commit uses NULL as a sentinel

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-09 Thread Rick Chen
Hi Sean > Hi Sean > > > Some IPIs may already be pending when U-Boot is started. This could be a > > problem if a secondary hart tries to handle an IPI before the boot hart has > > initialized the IPI device. > > > > This commit uses NULL as a sentinel for secondary harts so they know when > >

Re: [PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-09 Thread Rick Chen
Hi Sean > Some IPIs may already be pending when U-Boot is started. This could be a > problem if a secondary hart tries to handle an IPI before the boot hart has > initialized the IPI device. > > This commit uses NULL as a sentinel for secondary harts so they know when > the IPI is initialized,

[PATCH 3/7] riscv: Use NULL as a sentinel value for smp_call_function

2020-09-07 Thread Sean Anderson
Some IPIs may already be pending when U-Boot is started. This could be a problem if a secondary hart tries to handle an IPI before the boot hart has initialized the IPI device. This commit uses NULL as a sentinel for secondary harts so they know when the IPI is initialized, and it is safe to use