Re: [U-Boot] [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op

2019-08-12 Thread Rick Chen
Hi Lukas > > From: Auer, Lukas [mailto:lukas.a...@aisec.fraunhofer.de] > > Sent: Thursday, August 08, 2019 10:04 PM > > To: bmeng...@gmail.com > > Cc: Rick Jian-Zhi Chen(陳建志); u-boot@lists.denx.de > > Subject: Re: [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op > > > > Hi Bin, > >

Re: [U-Boot] [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op

2019-08-08 Thread Bin Meng
Hi Lukas, On Thu, Aug 8, 2019 at 10:03 PM Auer, Lukas wrote: > > Hi Bin, > > On Thu, 2019-08-08 at 21:25 +0800, Bin Meng wrote: > > Hi Lukas, > > > > On Thu, Aug 8, 2019 at 7:22 PM Auer, Lukas > > wrote: > > > Hi Bin, > > > > > > On Thu, 2019-08-08 at 00:52 -0700, Bin Meng wrote: > > > > We shou

Re: [U-Boot] [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op

2019-08-08 Thread Auer, Lukas
Hi Bin, On Thu, 2019-08-08 at 21:25 +0800, Bin Meng wrote: > Hi Lukas, > > On Thu, Aug 8, 2019 at 7:22 PM Auer, Lukas > wrote: > > Hi Bin, > > > > On Thu, 2019-08-08 at 00:52 -0700, Bin Meng wrote: > > > We should not count in hart that is marked as not available in the > > > device tree in ris

Re: [U-Boot] [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op

2019-08-08 Thread Bin Meng
Hi Lukas, On Thu, Aug 8, 2019 at 7:22 PM Auer, Lukas wrote: > > Hi Bin, > > On Thu, 2019-08-08 at 00:52 -0700, Bin Meng wrote: > > We should not count in hart that is marked as not available in the > > device tree in riscv_cpu_get_count(). > > > > I think it might make sense to also exclude harts

Re: [U-Boot] [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op

2019-08-08 Thread Auer, Lukas
Hi Bin, On Thu, 2019-08-08 at 00:52 -0700, Bin Meng wrote: > We should not count in hart that is marked as not available in the > device tree in riscv_cpu_get_count(). > I think it might make sense to also exclude harts that are not listed as available in the available_harts mask. So the same lo

Re: [U-Boot] [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op

2019-08-08 Thread Rick Chen
> > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Thursday, August 08, 2019 3:52 PM > > To: Lukas Auer; Rick Jian-Zhi Chen(陳建志); U-Boot Mailing List > > Subject: [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op > > > > We should not count in hart that is marked as not availabl

[U-Boot] [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op

2019-08-08 Thread Bin Meng
We should not count in hart that is marked as not available in the device tree in riscv_cpu_get_count(). Signed-off-by: Bin Meng --- drivers/cpu/riscv_cpu.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/cpu/riscv_cpu.c b/drivers/cpu/riscv_cpu.c index f77c126..28ad0aa 100644 --