Re: [U-Boot] arm64 patch: gicv3 support

2014-02-07 Thread Arnab Basu
Hi David Sorry for the late review, please find some comments inline. On 15-Jan-14 1:40 PM, feng...@phytium.com.cn wrote: > From: David Feng > > This patch add gicv3 support to uboot armv8 platform. > Modifications cover 4 source files, as follows: > gic.S: gicv3 initialization and sgi interr

Re: [U-Boot] arm64 patch: gicv3 support

2014-02-10 Thread Arnab Basu
Hi David On 10-Feb-14 1:41 PM, FengHua wrote: > >>> + /* Initialize All ReDistributors */ >>> +1: ldr x1, =GICR_BASE >>> +2: mov w0, #~0x2 >>> + ldr w2, [x1, GICR_WAKER] >>> + and w2, w2, w0 /* Clear ProcessorSleep */ >>> + str w2, [x1, GICR_WAKER] >>> +

Re: [U-Boot] Passing bootargs to arm64 kernel

2014-08-14 Thread Arnab Basu
On 08/14/2014 08:04 AM, Youngmin Nam wrote: > Thank you for reply Tom, > Let me ask you some questions. > > Can we set kernel's bootargs without re-compiling device tree on arm64 > kernel by u-boot? > > I mean, I want to set kernel's bootargs by u-boot without re-compiling > device tree. > > Is

Re: [U-Boot] [Patch v2 3/5] armv8/fsl-lsch3: Release secondary cores from boot hold off with Boot Page

2014-08-22 Thread Arnab Basu
, defining macro CONFIG_FSL_SMP_RELEASE_ALL will use the CPU_RELEASE_ADDR. Spin table and the boot page is reserved in device tree so OS won't overwrite. Signed-off-by: York Sun Signed-off-by: Arnab Basu --- v2: Removed copying boot page. Use u-boot image as is in memory. Added dealing

[U-Boot] [PATCH 1/8] ARM: PSCI: Update psci.h for psci v0.2

2014-08-27 Thread Arnab Basu
Signed-off-by: Arnab Basu Reviewed-by: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/include/asm/psci.h | 42 +- 1 files changed, 41 insertions(+), 1 deletions(-) diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index 704b4b0

[U-Boot] [PATCH 0/8] PSCI v0.2 framework for ARMv8

2014-08-27 Thread Arnab Basu
-existing PSCI v0.1 support in ARMv7. PSCI support patches for the ARMv8 Foundation model will follow shortly. Arnab Basu (8): ARM: PSCI: Update psci.h for psci v0.2 ARM: PSCI: Alow arch specific DT patching ARMv8/fsl-lsch3: Refactor spin-table code ARMv8: PSCI: Add linker section to hold PSCI

[U-Boot] [PATCH 3/8] ARMv8/fsl-lsch3: Refactor spin-table code

2014-08-27 Thread Arnab Basu
This creates the function cpu_update_dt for ARMv8 which currently patches the cpu node in the device table and sets enable-method to spin-table. Signed-off-by: Arnab Basu Reviewed-by: Bhupesh Sharma Cc: York Sun --- arch/arm/cpu/armv8/Makefile |1 + arch/arm/cpu/armv8

[U-Boot] [PATCH 2/8] ARM: PSCI: Alow arch specific DT patching

2014-08-27 Thread Arnab Basu
Both ARMv7 and ARMv8 need to patch the device tree but the kind of patching done is different. This creates a function that can be defined by each architecture to handle the differences Signed-off-by: Arnab Basu Reviewed-by: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/cpu/armv7/virt-dt.c

[U-Boot] [PATCH 5/8] ARMv8: PCSI: Add generic ARMv8 PSCI code

2014-08-27 Thread Arnab Basu
Implement core support for PSCI. As this is generic code, it doesn't implement anything really useful (all the functions are returning Not Implemented). This is largely ported from the similar code that exists for ARMv7 Signed-off-by: Arnab Basu Reviewed-by: Bhupesh Sharma Cc: Marc Zy

[U-Boot] [PATCH 6/8] ARMv8: PSCI: Fixup the device tree for PSCI v0.2

2014-08-27 Thread Arnab Basu
Set the enable-method in the cpu node to psci, create the psci device tree node and also add a reserve section for the psci code that lives in in normal RAM, so that the kernel leaves it alone Signed-off-by: Arnab Basu Reviewed-by: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/cpu/armv8/cpu

[U-Boot] [PATCH 4/8] ARMv8: PSCI: Add linker section to hold PSCI code

2014-08-27 Thread Arnab Basu
A separate linker section makes it possible to keep this code either in DDR or in some secure memory location provided specifically for the purpose. So far no one is using this section. Signed-off-by: Arnab Basu Reviewed-by: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/config.mk

[U-Boot] [PATCH 7/8] ARMv8: PSCI: Setup ARMv8 PSCI

2014-08-27 Thread Arnab Basu
Setup the ARMv8 PSCI code just before switching to EL2 and jumping to the kernel. Signed-off-by: Arnab Basu Reviewed-by: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/cpu/armv8/cpu.c | 23 +++ arch/arm/cpu/armv8/psci.S |6 ++ arch/arm/include/asm/system.h

[U-Boot] [PATCH 8/8] ARMv8: PSCI: Enable SMC

2014-08-27 Thread Arnab Basu
Enable the SMC instruction so that the kernel can use the psci code Signed-off-by: Arnab Basu Reviewed-by: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/include/asm/macro.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/macro.h b/arch/arm

Re: [U-Boot] [PATCH 0/8] PSCI v0.2 framework for ARMv8

2014-08-27 Thread Arnab Basu
On 08/28/2014 01:59 AM, Arnab Basu wrote: This series of patches creates a generic PSCI v0.2 framework for ARMv8. The first 3 patches refactor existing code so that ARMv7 PSCI, ARMv8 spin-table and ARMv8 PSCI can coexist. The next 5 patches create a generic framework for PSCI v0.2 in ARMv8

Re: [U-Boot] [PATCH 2/8] ARM: PSCI: Alow arch specific DT patching

2014-08-28 Thread Arnab Basu
Hi Mark On 08/28/2014 03:40 PM, Mark Rutland wrote: Hi Arnab, On Wed, Aug 27, 2014 at 09:29:55PM +0100, Arnab Basu wrote: Both ARMv7 and ARMv8 need to patch the device tree but the kind of patching done is different. This creates a function that can be defined by each architecture to handle

Re: [U-Boot] [PATCH 6/8] ARMv8: PSCI: Fixup the device tree for PSCI v0.2

2014-08-29 Thread Arnab Basu
Hi Mark On 08/28/2014 06:14 PM, Mark Rutland wrote: Hi, On Wed, Aug 27, 2014 at 09:29:59PM +0100, Arnab Basu wrote: Set the enable-method in the cpu node to psci, create the psci device tree node and also add a reserve section for the psci code that lives in in normal RAM, so that the kernel

Re: [U-Boot] [PATCH v2 0/9] PSCI v0.2 framework for ARMv8

2015-05-07 Thread Arnab Basu
Hi Bhupesh On Tue, May 5, 2015 at 2:47 PM, bhupesh.sha...@freescale.com < bhupesh.sha...@freescale.com> wrote: > Hi Albert, > > > -Original Message----- > > From: Arnab Basu [mailto:arnab_b...@rocketmail.com] > > Apologies for the long delay, this is v2

[U-Boot] [PATCH v2 0/9] PSCI v0.2 framework for ARMv8

2015-01-12 Thread Arnab Basu
and enable PCSI will follow very soon. Arnab Basu (9): ARM: PSCI: Update psci.h for psci v0.2 ARM: PSCI: Alow arch specific DT patching ARMv8/fsl-lsch3: Refactor spin-table code vexpress_aemv8a: Add spin table handling with per cpu release addresses ARMv8: PSCI: Add linker section to

[U-Boot] [PATCH v2 1/9] ARM: PSCI: Update psci.h for psci v0.2

2015-01-12 Thread Arnab Basu
Signed-off-by: Arnab Basu Cc: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/include/asm/psci.h | 42 +- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index 704b4b0..68579cd 100644

[U-Boot] [PATCH v2 2/9] ARM: PSCI: Alow arch specific DT patching

2015-01-12 Thread Arnab Basu
Both ARMv7 and ARMv8 need to patch the device tree but the kind of patching done is different. This creates a function that can be defined by each architecture to handle the differences Signed-off-by: Arnab Basu Cc: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/cpu/armv7/virt-dt.c | 7

[U-Boot] [PATCH v2 3/9] ARMv8/fsl-lsch3: Refactor spin-table code

2015-01-12 Thread Arnab Basu
This creates the function cpu_update_dt for ARMv8 which currently patches the cpu node in the device table and sets enable-method to spin-table. Signed-off-by: Arnab Basu Cc: Bhupesh Sharma Cc: York Sun --- arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/{fsl-lsch3

[U-Boot] [PATCH v2 5/9] ARMv8: PSCI: Add linker section to hold PSCI code

2015-01-12 Thread Arnab Basu
A separate linker section makes it possible to keep this code either in DDR or in some secure memory location provided specifically for the purpose. So far no one is using this section. Signed-off-by: Arnab Basu Cc: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/config.mk| 2

[U-Boot] [PATCH v2 7/9] ARMv8: PSCI: Fixup the device tree for PSCI v0.2

2015-01-12 Thread Arnab Basu
Set the enable-method in the cpu node to psci, create the psci device tree node and also add a reserved-memory for the psci code that lives in in normal RAM, so that the kernel leaves does not map it Signed-off-by: Arnab Basu Cc: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/cpu/armv8/cpu-dt.c

[U-Boot] [PATCH v2 4/9] vexpress_aemv8a: Add spin table handling with per cpu release addresses

2015-01-12 Thread Arnab Basu
Signed-off-by: Arnab Basu --- arch/arm/cpu/armv8/cpu-dt.c | 16 - arch/arm/cpu/armv8/cpu.c | 113 ++ arch/arm/cpu/armv8/start.S| 141 +- arch/arm/include/asm/armv8/mp.h | 36 ++ arch/arm

[U-Boot] [PATCH v2 6/9] ARMv8: PCSI: Add generic ARMv8 PSCI code

2015-01-12 Thread Arnab Basu
Implement core support for PSCI. As this is generic code, it doesn't implement anything really useful (all the functions are returning Not Implemented). This is largely ported from the similar code that exists for ARMv7 Signed-off-by: Arnab Basu Cc: Bhupesh Sharma Cc: Marc Zyngier ---

[U-Boot] [PATCH v2 8/9] ARMv8: PSCI: Setup ARMv8 PSCI

2015-01-12 Thread Arnab Basu
Setup the ARMv8 PSCI code just before switching to EL2 and jumping to the kernel. Signed-off-by: Arnab Basu Cc: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/cpu/armv8/cpu.c | 23 +++ arch/arm/cpu/armv8/psci.S | 6 ++ arch/arm/include/asm/system.h | 3

[U-Boot] [PATCH v2 9/9] ARMv8: PSCI: Enable SMC

2015-01-12 Thread Arnab Basu
Enable the SMC instruction so that the kernel can use the psci code Signed-off-by: Arnab Basu Cc: Bhupesh Sharma Cc: Marc Zyngier --- arch/arm/include/asm/macro.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/macro.h b/arch/arm/include/asm/macro.h index 1c8c425

Re: [U-Boot] [PATCH v2 1/2] Errata/ARM57: Add basic constructs to handle and apply A57 specific erratas

2015-01-16 Thread Arnab Basu
On Fri, Jan 16, 2015 at 2:10 AM, Scott Wood wrote: > On Wed, 2015-01-14 at 19:16 +0530, Bhupesh Sharma wrote: > > This patch adds basic constructs in the ARMv8 u-boot code > > to handle and apply Cortex-A57 specific erratas. > > > > As and example, the framework showcases how erratas 833069, 8269