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
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
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
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
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
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
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
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.
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
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
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
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
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:
>>
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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.
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
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
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
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
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
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,
>>>
>
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
>&
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
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
>
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
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
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 ++
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
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
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
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 ++
: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:
>&
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 +-
>>
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 "
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
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.
70 matches
Mail list logo