[U-Boot] [PATCH v5 6/6] ARMv8: LS1043A: Enable LS1043A default PSCI support

2016-12-07 Thread Hongbo Zhang
A most basic PSCI implementation with only one psci_version is added for LS1043A, this can verify the generic PSCI framework, and more platform specific implementation will be added later. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/cpu/armv8/fsl-layerscape/Makefile

[U-Boot] [PATCH v5 2/6] ARMv8: Add secure sections for PSCI text and data

2016-12-07 Thread Hongbo Zhang
are introduce here in Kconfig too. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/config.mk| 3 +- arch/arm/cpu/armv8/Kconfig| 31 + arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + arch/arm/cpu/armv8/u-boot.lds

[U-Boot] [PATCH v5 3/6] ARMv8: Enable SMC instruction

2016-12-07 Thread Hongbo Zhang
PSCI implementation needs the SMC instruction to be enabled. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/include/asm/macro.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/macro.h b/arch/arm/include/asm/macro.h index 2553e3e

[U-Boot] [PATCH v5 4/6] ARMv8: Add basic PSCI framework

2016-12-07 Thread Hongbo Zhang
This patch introduces a generic ARMv8 PSCI framework, with all functions returning a dummy ARM_PSCI_RET_NI (Not Implemented), then it is up to each platform to implement their own functions based on this framework. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/cpu/armv8

[U-Boot] [PATCH v5 5/6] ARMv8: Setup PSCI memory and device tree

2016-12-07 Thread Hongbo Zhang
Newly add ARMv8 PSCI needs to be initialized, be copied or reserved in right place, this patch does all the setup steps. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/cpu/armv8/cpu-dt.c | 11 ++- arch/arm/cpu/armv8/cpu.c | 22 ++ arch/arm

[U-Boot] [PATCH v5 1/6] ARMv8: LS1043A: change macro CONFIG_ARMV8_PSCI definition

2016-12-07 Thread Hongbo Zhang
added in following patchs. Signed-off-by: Hongbo Zhang --- arch/arm/cpu/armv8/cpu-dt.c | 2 +- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 20 arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 3 ++- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 3 ++- arch/arm/cpu

[U-Boot] [PATCH v5 0/6] Add ARMv8 PSCI framework

2016-12-07 Thread Hongbo Zhang
NXP LS1043 platform, to verify this framework. This patch set mainly introduces ARMv8 PSCI framework, for easier review and merge, further PSCI implementation on LS1043 is coming later. Hongbo Zhang (6): ARMv8: LS1043A: change macro CONFIG_ARMV8_PSCI definition ARMv8: Add secure sections fo

Re: [U-Boot] [PATCH v4 3/6] ARMv8: Add secure sections for PSCI text and data

2016-12-07 Thread Hongbo Zhang
On Wed, Nov 30, 2016 at 4:49 AM, york sun wrote: > On 11/25/2016 02:48 AM, Hongbo Zhang wrote: >> This patch adds secure_text, secure_data and secure_stack sections for ARMv8 >> to >> hold PSCI text and data, and it is based on the legacy implementation of >> ARMv7.

Re: [U-Boot] [PATCH v4 6/6] ARMv8: LS1043A: Enable LS1043A default PSCI support

2016-11-30 Thread Hongbo Zhang
Oops. I did remove this generic PSCI for LS platform since we have our specific PPA, but that change wasn't included at last, I'll update this. On Wed, Nov 30, 2016 at 4:55 AM, york sun wrote: > On 11/25/2016 02:48 AM, Hongbo Zhang wrote: >> A most basic PSCI implement

Re: [U-Boot] [PATCH v4 3/6] ARMv8: Add secure sections for PSCI text and data

2016-11-30 Thread Hongbo Zhang
Hmm, my way was still programmer "manually" exclusive. Will add that. Thanks. On Wed, Nov 30, 2016 at 4:51 AM, york sun wrote: > On 11/29/2016 12:49 PM, york@nxp.com wrote: >> On 11/25/2016 02:48 AM, Hongbo Zhang wrote: >>> This patch adds secure_text, secure_da

Re: [U-Boot] [PATCH v4 2/6] ARMv8: Enable SMC instruction

2016-11-30 Thread Hongbo Zhang
OK. And currently this series are against the community tree, and if this should go to your tree, I should rebase to yours, right? On Wed, Nov 30, 2016 at 4:49 AM, york sun wrote: > On 11/25/2016 02:47 AM, Hongbo Zhang wrote: >> PSCI implementation needs the SMC instruction to b

Re: [U-Boot] [PATCH v4 0/6] Add ARMv8 PSCI framework

2016-11-30 Thread Hongbo Zhang
Will add "depends on !ARMV8_PSCI" for FSL_LS_PPA and "depends on !FSL_LS_PPA" for ARMV8_PSCI Thanks. On Wed, Nov 30, 2016 at 5:59 AM, york sun wrote: > On 11/28/2016 06:06 PM, Hongbo Zhang wrote: >> Hi York, >> This generic PSCI is controlled by CONFIG_ARMV

Re: [U-Boot] [PATCH v4 0/6] Add ARMv8 PSCI framework

2016-11-28 Thread Hongbo Zhang
ed by FSL_PPA_ARMV8_PSCI, this macro depends on and selected by CONFIG_FSL_LS_PPA. That is to say, they are using separate configs, and only one of them can be enabled at one time. On Tue, Nov 29, 2016 at 1:16 AM, york sun wrote: > On 11/25/2016 02:47 AM, Hongbo Zhang wrote: >> v3-v4 changes: >>

[U-Boot] [PATCH v4 5/6] ARMv8: Setup PSCI memory and device tree

2016-11-25 Thread Hongbo Zhang
Newly add ARMv8 PSCI needs to be initialized, be copied or reserved in right place, this patch does all the setup steps. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/cpu/armv8/cpu-dt.c | 11 ++- arch/arm/cpu/armv8/cpu.c | 22 ++ arch/arm

[U-Boot] [PATCH v4 4/6] ARMv8: Add basic PSCI framework

2016-11-25 Thread Hongbo Zhang
This patch introduces a generic ARMv8 PSCI framework, with all functions returning a dummy ARM_PSCI_RET_NI (Not Implemented), then it is up to each platform to implement their own functions based on this framework. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/cpu/armv8

[U-Boot] [PATCH v4 6/6] ARMv8: LS1043A: Enable LS1043A default PSCI support

2016-11-25 Thread Hongbo Zhang
A most basic PSCI implementation with only one psci_version is added for LS1043A, this can verify the generic PSCI framework, and more platform specific implementation will be added later. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/cpu/armv8/fsl-layerscape/Makefile

[U-Boot] [PATCH v4 1/6] ARMv8: LS1043A: change macro CONFIG_ARMV8_PSCI definition

2016-11-25 Thread Hongbo Zhang
added in following patchs. Signed-off-by: Hongbo Zhang --- arch/arm/cpu/armv8/cpu-dt.c | 2 +- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 20 arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 3 ++- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 3 ++- arch/arm/cpu

[U-Boot] [PATCH v4 2/6] ARMv8: Enable SMC instruction

2016-11-25 Thread Hongbo Zhang
PSCI implementation needs the SMC instruction to be enabled. Following the legacy codes pattern, no bit macro definition and bit operation are used, only the immediate data used in line is changed. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/include/asm/macro.h | 2 +- 1

[U-Boot] [PATCH v4 3/6] ARMv8: Add secure sections for PSCI text and data

2016-11-25 Thread Hongbo Zhang
This patch adds secure_text, secure_data and secure_stack sections for ARMv8 to hold PSCI text and data, and it is based on the legacy implementation of ARMv7. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/config.mk| 3 ++- arch/arm/cpu/armv8/Kconfig| 31

[U-Boot] [PATCH v4 0/6] Add ARMv8 PSCI framework

2016-11-25 Thread Hongbo Zhang
ier review and merge, further PSCI implementation on LS1043 is coming later. Hongbo Zhang (6): ARMv8: LS1043A: change macro CONFIG_ARMV8_PSCI definition ARMv8: Enable SMC instruction ARMv8: Add secure sections for PSCI text and data ARMv8: Add basic PSCI framework ARMv8: Setup PSCI me

Re: [U-Boot] [PATCH v3 5/5] ARMv8: LS1043A: Enable LS1043A default PSCI support

2016-11-16 Thread Hongbo Zhang
eated by me. Comments are still welcome before I send patches out early next week. Thanks all. On Wed, Nov 16, 2016 at 11:53 AM, Z.Q. Hou wrote: > Hi Hongbo, > >> -Original Message- >> From: Hongbo Zhang [mailto:macro.wav...@gmail.com] >> Sent: 2016年11月15日 18:29

Re: [U-Boot] [PATCH v3 5/5] ARMv8: LS1043A: Enable LS1043A default PSCI support

2016-11-15 Thread Hongbo Zhang
hang >> Subject: Re: [PATCH v3 5/5] ARMv8: LS1043A: Enable LS1043A default PSCI >> support >> >> On 11/06/2016 08:14 PM, macro.wav...@gmail.com wrote: >> > From: Hongbo Zhang >> > >> > A most basic PSCI implementation with only one psci_version

Re: [U-Boot] [PATCH v3 5/5] ARMv8: LS1043A: Enable LS1043A default PSCI support

2016-11-14 Thread Hongbo Zhang
On Tue, Nov 15, 2016 at 2:12 AM, york sun wrote: > On 11/06/2016 08:14 PM, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> A most basic PSCI implementation with only one psci_version is added for >> LS1043A, this can verify the generic PSCI framework, and

Re: [U-Boot] [PATCH v3 3/5] ARMv8: Add basic PSCI framework

2016-11-13 Thread Hongbo Zhang
On Sat, Nov 12, 2016 at 12:06 AM, Tom Rini wrote: > On Mon, Nov 07, 2016 at 12:13:52PM +0800, macro.wav...@gmail.com wrote: > >> From: Hongbo Zhang >> >> This patch introduces a generic ARMv8 PSCI framework, with all functions >> returning a dummy ARM_PSCI_RET_NI (N

Re: [U-Boot] [PATCH v2 1/6] ARMv8: LS1043A: change macro CONFIG_ARMV8_PSCI definition

2016-11-04 Thread Hongbo Zhang
es to clean up PPA related configs to Kconfig, so I don't need to send this 1/6 patch any more, I'll send the other updated 5 patches in v3. On Thu, Nov 3, 2016 at 5:56 PM, Hongbo Zhang wrote: > On Wed, Nov 2, 2016 at 10:27 PM, Tom Rini wrote: >> On Tue, Nov 01, 2016 at 06:

Re: [U-Boot] [PATCH v2 5/6] ARMv8: Setup PSCI memory and dt

2016-11-03 Thread Hongbo Zhang
On Wed, Nov 2, 2016 at 10:27 PM, Tom Rini wrote: > On Tue, Nov 01, 2016 at 06:04:31PM +0800, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> Newly add ARMv8 PSCI needs to be initialized, be copied or reserved in right >> place, this patch does all the setup

Re: [U-Boot] [PATCH v2 6/6] ARMv8: LS1043A: Enable LS1043A default PSCI support

2016-11-03 Thread Hongbo Zhang
On Wed, Nov 2, 2016 at 10:27 PM, Tom Rini wrote: > On Tue, Nov 01, 2016 at 06:04:32PM +0800, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> A most basic PSCI implementation with only one psci_version is added for >> LS1043A, this can verify the gener

Re: [U-Boot] [PATCH v2 1/6] ARMv8: LS1043A: change macro CONFIG_ARMV8_PSCI definition

2016-11-03 Thread Hongbo Zhang
On Wed, Nov 2, 2016 at 10:27 PM, Tom Rini wrote: > On Tue, Nov 01, 2016 at 06:04:27PM +0800, macro.wav...@gmail.com wrote: > >> From: Hongbo Zhang >> >> NXP/Freescale uses macro CONFIG_ARMV8_PSCI to enable their private PSCI >> implementation in PPA firmware, but

Re: [U-Boot] [PATCH 0/6] Add ARMv8 PSCI framework

2016-10-30 Thread Hongbo Zhang
Thanks Tom. I am sending out an updated v2 soon, with the related configs updated. On Fri, Oct 28, 2016 at 9:30 PM, Tom Rini wrote: > On Wed, Sep 28, 2016 at 03:16:38PM +0800, Hongbo Zhang wrote: >> On Wed, Sep 28, 2016 at 1:23 AM, Tom Rini wrote: >> > On Tue, Sep 27, 2016 a

Re: [U-Boot] [PATCH 0/6] Add ARMv8 PSCI framework

2016-10-26 Thread Hongbo Zhang
fore I send out a v2. On Thu, Oct 27, 2016 at 2:17 AM, york sun wrote: > On 10/18/2016 12:18 AM, Hongbo Zhang wrote: >> Ping all, >> Some time ago I saw several people mentioned ARMv8 PSCI, are you >> interested in leaving your review comments? >> I know it is not so ea

Re: [U-Boot] [PATCH 0/6] Add ARMv8 PSCI framework

2016-10-18 Thread Hongbo Zhang
gets merged, it will be possible for each platform to implement their platform PSCI functions in C too. Hi Tom, Any further concerns? comments? Thanks all. On Wed, Sep 28, 2016 at 4:27 PM, Hongbo Zhang wrote: > I just explained why and how I tried to place newly introduced macros > in ar

Re: [U-Boot] [PATCH 0/6] Add ARMv8 PSCI framework

2016-09-28 Thread Hongbo Zhang
rm ARMv7's, if not defined, the lds file still works: #ifdef CONFIG_ARMV8_PSCI_NR_CPUS . = . + CONFIG_ARMV8_PSCI_NR_CPUS * ARM_PSCI_STACK_SIZE; #else . = . + 4 * ARM_PSCI_STACK_SIZE; #endif On Wed, Sep 28, 2016 at 3:16 PM, Hongbo Zhang wrote: > On Wed, Sep 28, 2016 at 1:23 AM, Tom Rini

Re: [U-Boot] [PATCH 5/6] ARMv8: Enable SMC instruction

2016-09-28 Thread Hongbo Zhang
comments, thanks. On Tue, Sep 27, 2016 at 5:29 PM, wrote: > From: Hongbo Zhang > > PSCI implementation needs the SMC instruction to be enabled. > Following the legacy codes pattern, no bit macro definition and bit operation > are used, only the immediate data used in line is changed.

Re: [U-Boot] [PATCH 4/6] ARMv8: Setup PSCI memory and dt

2016-09-28 Thread Hongbo Zhang
On Wed, Sep 28, 2016 at 12:00 AM, york sun wrote: > On 09/27/2016 02:29 AM, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> Newly add ARMv8 PSCI needs to be initialized, be copied or reserved in right >> place, this patch does all the setup steps. >&g

Re: [U-Boot] [PATCH 0/6] Add ARMv8 PSCI framework

2016-09-28 Thread Hongbo Zhang
On Wed, Sep 28, 2016 at 1:23 AM, Tom Rini wrote: > On Tue, Sep 27, 2016 at 05:29:00PM +0800, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> This patch set introduces ARMv8 PSCI framework, all the PSCI functions are >> implemented a default dummy one, i

Re: [U-Boot] [PATCH] ARMv7: LS102xA: Move two macros from header files to Kconfig

2016-09-21 Thread Hongbo Zhang
On Wed, Sep 21, 2016 at 1:31 AM, york sun wrote: > On 09/19/2016 09:59 PM, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> ARMV7_PSCI depends on ARMV7_NONSEC && ARCH_SUPPORT_PSCI, and ARMV7_NONSEC >> depends on CPU_V7_HAS_NONSEC, LS102XA didn't

Re: [U-Boot] [PATCH v6 1/4] ARMv7: PSCI: add PSCI v1.0 functions skeleton

2016-07-26 Thread Hongbo Zhang
Thanks York. On Wed, Jul 27, 2016 at 4:24 AM, york sun wrote: > On 07/21/2016 03:10 AM, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> This patch adds all the PSCI v1.0 functions in to the common framework, with >> all the functions returning "not impl

Re: [U-Boot] [PATCH v6 1/4] ARMv7: PSCI: add PSCI v1.0 functions skeleton

2016-07-25 Thread Hongbo Zhang
On Fri, Jul 22, 2016 at 9:41 PM, Tom Rini wrote: > On Thu, Jul 21, 2016 at 06:09:36PM +0800, macro.wav...@gmail.com wrote: > >> From: Hongbo Zhang >> >> This patch adds all the PSCI v1.0 functions in to the common framework, with >> all the functions returning &quo

Re: [U-Boot] [PATCH v5 0/8] ARMv7: PSCI: add PSCI v1.0 support

2016-07-20 Thread Hongbo Zhang
Hi York, I saw sunxi's patches were merged, so I am preparing my patches, will send it out soon. On Wed, Jul 20, 2016 at 4:34 AM, york sun wrote: > On 07/04/2016 07:26 PM, Hongbo Zhang wrote: >> On Mon, Jul 4, 2016 at 9:11 PM, Hans de Goede wrote: >>> Hi, >>> >

Re: [U-Boot] [PATCH v5 0/8] ARMv7: PSCI: add PSCI v1.0 support

2016-07-04 Thread Hongbo Zhang
On Mon, Jul 4, 2016 at 9:11 PM, Hans de Goede wrote: > Hi, > > On 04-07-16 09:20, Hongbo Zhang wrote: >> >> I said I would send a new iteration of this series, but there are code >> dependencies/conflicts with Chenyu's work, so I'd like to wait for a >&

Re: [U-Boot] [PATCH 05/15] ARM: PSCI: Add fallback value for CONFIG_ARMV7_PSCI_NR_CPUS

2016-07-04 Thread Hongbo Zhang
On Sat, Jul 2, 2016 at 5:17 PM, Chen-Yu Tsai wrote: > On Fri, Jul 1, 2016 at 6:39 PM, Hongbo Zhang wrote: >> On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: >>> The original PSCI implementation assumed CONFIG_ARMV7_PSCI_NR_CPUS=4. >>> Add this as a fallback v

Re: [U-Boot] [PATCH v5 0/8] ARMv7: PSCI: add PSCI v1.0 support

2016-07-04 Thread Hongbo Zhang
is. Thanks. On Thu, Jun 30, 2016 at 1:28 PM, Hongbo Zhang wrote: > On Fri, Jun 24, 2016 at 11:26 PM, york sun wrote: >> On 06/15/2016 12:16 AM, Chen-Yu Tsai wrote: >>> Hi, >>> >>> On Tue, Jun 14, 2016 at 3:01 PM, wrote: >>>> From: Hongbo Zhang >

Re: [U-Boot] [PATCH 00/15] ARM: PSCI: Add secure stack and data sections

2016-07-04 Thread Hongbo Zhang
On Sun, Jul 3, 2016 at 8:35 AM, Chen-Yu Tsai wrote: > Hi, > > On Sat, Jul 2, 2016 at 8:00 PM, Hans de Goede wrote: >> Hi, >> >> On 19-06-16 06:38, Chen-Yu Tsai wrote: >>> >>> Hi everyone, >>> >>> This is ARM PSCI improvements part 2. This series cleans up PSCI stack >>> allocation and target PC s

Re: [U-Boot] [PATCH 14/15] ARM: PSCI: Switch to per-CPU target PC storage in secure data section

2016-07-01 Thread Hongbo Zhang
Tested-by: Hongbo Zhang On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: > Now that we have a secure data section and space to store per-CPU target > PC address, switch to it instead of storing the target PC on the stack. > > Also save clobbered r4-r7 registers on the stack

Re: [U-Boot] [PATCH 13/15] ARM: PSCI: Add helper functions to access per-CPU target PC storage

2016-07-01 Thread Hongbo Zhang
On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: > Now that we have a data section, add helper functions to save and fetch > per-CPU target PC. > > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/cpu/armv7/Makefile | 1 + > arch/arm/cpu/armv7/psci-common.c | 39 ++

Re: [U-Boot] [PATCH 07/15] ARM: PSCI: Allocate PSCI stack in secure stack section

2016-07-01 Thread Hongbo Zhang
Tested-by: Hongbo Zhang On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: > Now that we have a secure stack section that guarantees usable memory, > allocate the PSCI stacks in that section. > > Also add a diagram detailing how the stacks are placed in memory. > > Rese

Re: [U-Boot] [PATCH 05/15] ARM: PSCI: Add fallback value for CONFIG_ARMV7_PSCI_NR_CPUS

2016-07-01 Thread Hongbo Zhang
On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: > The original PSCI implementation assumed CONFIG_ARMV7_PSCI_NR_CPUS=4. > Add this as a fallback value in case platforms have not defined it. > > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/include/asm/config.h | 5 + > 1 file changed, 5

Re: [U-Boot] [PATCH 01/15] ARM: PSCI: Split out common stack setup code from psci_arch_init

2016-07-01 Thread Hongbo Zhang
Tested-by: Hongbo Zhang On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: > Every platform has the same stack setup code in assembly as part of > psci_arch_init. > > Move this out into a common separate function, psci_stack_setup, for > all platforms. This will allow

Re: [U-Boot] [PATCH 13/15] ARM: PSCI: Add helper functions to access per-CPU target PC storage

2016-07-01 Thread Hongbo Zhang
On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: > Now that we have a data section, add helper functions to save and fetch > per-CPU target PC. > > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/cpu/armv7/Makefile | 1 + > arch/arm/cpu/armv7/psci-common.c | 39 ++

Re: [U-Boot] [PATCH 00/15] ARM: PSCI: Add secure stack and data sections

2016-07-01 Thread Hongbo Zhang
:58 PM, Hongbo Zhang wrote: > I like the idea of secure stack and secure data section. > I'd like to test this patch set, but only the psci common part and > freescale platform's changes will be covered. > > > On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: >&

Re: [U-Boot] [PATCH 00/15] ARM: PSCI: Add secure stack and data sections

2016-06-30 Thread Hongbo Zhang
I like the idea of secure stack and secure data section. I'd like to test this patch set, but only the psci common part and freescale platform's changes will be covered. On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: > Hi everyone, > > This is ARM PSCI improvements part 2. This series cle

Re: [U-Boot] [PATCH v5 0/8] ARMv7: PSCI: add PSCI v1.0 support

2016-06-29 Thread Hongbo Zhang
On Fri, Jun 24, 2016 at 11:26 PM, york sun wrote: > On 06/15/2016 12:16 AM, Chen-Yu Tsai wrote: >> Hi, >> >> On Tue, Jun 14, 2016 at 3:01 PM, wrote: >>> From: Hongbo Zhang >>> >>> v5 changes: >>> - Give up fixing the potential bug of PS

Re: [U-Boot] [PATCH v5 6/8] ARMv7: PSCI: ls102xa: check ALREADY_ON or ON_PENDING for CPU_ON

2016-06-29 Thread Hongbo Zhang
On Tue, Jun 28, 2016 at 12:30 PM, Chen-Yu Tsai wrote: > On Tue, Jun 14, 2016 at 3:01 PM, wrote: >> From: Hongbo Zhang >> >> For the robustness of codes, while powering on a CPU, it is better to check >> if the target CPU is already on or in the process of power

Re: [U-Boot] [PATCH v5 8/8] ARMv7: PSCI: ls102xa: move secure text section into OCRAM

2016-06-28 Thread Hongbo Zhang
On Tue, Jun 28, 2016 at 12:16 PM, Chen-Yu Tsai wrote: > On Tue, Jun 14, 2016 at 3:01 PM, wrote: >> From: Hongbo Zhang >> >> LS1021 offers two secure OCRAM blocks for trustzone. >> This patch moves all the secure text sections into the OCRAM. >> >> Signe

Re: [U-Boot] [PATCH v5 5/8] ARMv7: PSCI: ls102xa: check target CPU ID before further operations

2016-06-28 Thread Hongbo Zhang
On Tue, Jun 28, 2016 at 12:10 PM, Chen-Yu Tsai wrote: > On Tue, Jun 14, 2016 at 3:01 PM, wrote: >> From: Hongbo Zhang >> >> The input parameter CPU ID needs to be validated before furher oprations such >> as CPU_ON, this patch introduces the function to do this

Re: [U-Boot] [PATCH v5 4/8] ARMv7: PSCI: add codes to save context ID for CPU_ON

2016-06-28 Thread Hongbo Zhang
On Tue, Jun 28, 2016 at 11:15 AM, Chen-Yu Tsai wrote: > Hi, > > On Tue, Jun 14, 2016 at 3:01 PM, wrote: >> From: Hongbo Zhang >> >> According to latest PSCI specification, the context ID is needed by CPU_ON. >> This patch saves context ID to the second lowest

Re: [U-Boot] [PATCH v5 3/8] ARMv7: PSCI: update the place of saving target PC

2016-06-28 Thread Hongbo Zhang
On Tue, Jun 28, 2016 at 11:24 AM, Chen-Yu Tsai wrote: > On Tue, Jun 14, 2016 at 3:01 PM, wrote: >> From: Hongbo Zhang >> >> The legacy code saves target PC at stack top, this patch changes it to stack >> bottom, because we will save more contents for PSCI v1.0, by th

Re: [U-Boot] [PATCH v5 2/8] ARMv7: PSCI: factor out reusable psci_cpu_on_common

2016-06-27 Thread Hongbo Zhang
On Tue, Jun 28, 2016 at 10:49 AM, Chen-Yu Tsai wrote: > Hi, > > On Tue, Jun 14, 2016 at 3:01 PM, wrote: >> From: Hongbo Zhang >> >> There are codes for saving target PC in each platform psci_cpu_on routines, >> these can be factored out as psci_cpu_on_commo

Re: [U-Boot] [PATCH v5 0/8] ARMv7: PSCI: add PSCI v1.0 support

2016-06-15 Thread Hongbo Zhang
On Wed, Jun 15, 2016 at 3:16 PM, Chen-Yu Tsai wrote: > Hi, > > On Tue, Jun 14, 2016 at 3:01 PM, wrote: >> From: Hongbo Zhang >> >> v5 changes: >> - Give up fixing the potential bug of PSCI stack overlap with secure text end >> when there is more CPUs in s

Re: [U-Boot] [PATCH v4 2/9] ARMv7: PSCI: update function psci_get_cpu_stack_top

2016-06-05 Thread Hongbo Zhang
On Mon, Jun 6, 2016 at 11:43 AM, Chen-Yu Tsai wrote: > Hi, > > On Mon, Jun 6, 2016 at 11:27 AM, Hongbo Zhang wrote: >> Hi York, >> Which version of u-boot do you use? I don't have such problem. >> I was using the latest u-boot (when I re-worked this patch s

Re: [U-Boot] [PATCH v4 2/9] ARMv7: PSCI: update function psci_get_cpu_stack_top

2016-06-05 Thread Hongbo Zhang
1:07 AM, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> There are issues of legacy fuction psci_get_cpu_stack_top: >> >> First, the current algorithm arranges stacks from an fixed adress towards >> psci_text_end, if there are more CPUs, the stacks

Re: [U-Boot] [PATCH v3 07/11] ARMv7: PSCI: add PSCI v1.0 functions skeleton

2016-05-30 Thread Hongbo Zhang
On Sat, May 28, 2016 at 1:25 AM, York Sun wrote: > On 05/19/2016 01:23 AM, Hongbo Zhang wrote: >> On Wed, May 18, 2016 at 6:39 PM, Andre Przywara >> wrote: >>> Hi, >>> >>> On 18/05/16 10:10, macro.wav...@gmail.com wrote: >>>> From: Hongbo Zh

Re: [U-Boot] [PATCH 00/10] sunxi: PSCI implementation rewrite in C

2016-05-23 Thread Hongbo Zhang
Yes, C code is better and even necessary for some cases. Drawback of assemble language is that it is difficult not only for developers but also for the reviewers and maintainers. I am implementing our NXP/Freescale LS1 platform's system-suspend function, it is written in C too, is is impossible wit

Re: [U-Boot] [PATCH v3 01/11] ARM: PSCI: change PSCI function IDs base and offsets

2016-05-23 Thread Hongbo Zhang
my later 7/11 patch, Andre raised his comments about dt too, but that is another thing. > Thanks, > Mark. > >> Signed-off-by: Wang Dongsheng >> Signed-off-by: Hongbo Zhang >> --- >> arch/arm/include/asm/psci.h | 10 +- >> 1 file changed, 5 ins

Re: [U-Boot] [PATCH v3 01/11] ARM: PSCI: change PSCI function IDs base and offsets

2016-05-20 Thread Hongbo Zhang
On Thu, May 19, 2016 at 5:07 PM, Andre Przywara wrote: > Hi, > > On 19/05/16 09:45, Hongbo Zhang wrote: >> On Wed, May 18, 2016 at 6:07 PM, Andre Przywara >> wrote: >>> Hi, >>> >>> On 18/05/16 10:10, macro.wav...@gmail.com wrote: >&g

Re: [U-Boot] [PATCH v3 01/11] ARM: PSCI: change PSCI function IDs base and offsets

2016-05-19 Thread Hongbo Zhang
some functions. > My workmate Hongtao Jia is working for ARMv8 PSCI. That should be in another separate file, so same or different function names can both be used freely I think. >> Signed-off-by: Wang Dongsheng >> Signed-off-by: Hongbo Zhang > > Otherwise: > Review

Re: [U-Boot] [PATCH v3 01/11] ARM: PSCI: change PSCI function IDs base and offsets

2016-05-19 Thread Hongbo Zhang
OK to separate them since there won't be mismatch you pointed, what's more we've already gotten the Reviewed-by: tag :) >> >> Signed-off-by: Wang Dongsheng >> Signed-off-by: Hongbo Zhang >> --- >> arch/arm/include/asm/psci.h | 10 +- >>

Re: [U-Boot] [PATCH v3 07/11] ARMv7: PSCI: add PSCI v1.0 functions skeleton

2016-05-19 Thread Hongbo Zhang
On Wed, May 18, 2016 at 6:39 PM, Andre Przywara wrote: > Hi, > > On 18/05/16 10:10, macro.wav...@gmail.com wrote: >> From: Hongbo Zhang >> >> This patch adds all the PSCI v1.0 functions in to the common framework, with >> all the functions returning "

Re: [U-Boot] [PATCH v3 08/11] ARMv7: PSCI: ls102xa: check target CPU ID before further operations

2016-05-19 Thread Hongbo Zhang
On Wed, May 18, 2016 at 5:23 PM, Chen-Yu Tsai wrote: > Hi, > > On Wed, May 18, 2016 at 5:10 PM, wrote: >> From: Hongbo Zhang >> >> The input parameter CPU ID needs to be validated before furher oprations such >> as CPU_ON, this patch introduces the function to

Re: [U-Boot] [PATCH 3/9] ARM: ARMv7: PSCI: move target PC in each CPU stack no longer is shared

2016-03-19 Thread Hongbo Zhang
Hi Dongsheng, > -Original Message- > From: Chenhui Zhao > Sent: Wednesday, March 16, 2016 3:05 PM > To: Hongbo Zhang > Cc: tr...@konsulko.com; sba...@denx.de; i...@hellion.org.uk; > hdego...@redhat.com; twar...@nvidia.com; Huan Wang > ; york sun ; > jan.kis.