armv8: fsl-layerscape: add i/d-cache enable function to enable_caches
PATCH v2 1/3 armv8: fsl-layerscape: add i/d-cache enable function to enable_caches
From: Hou Zhiqiang <[email protected]>
This function assume that the d-cache and MMU has been enabled earlier, so it just created MMU table in main memory. But the assumption is not always correct, for example, the early setup is done in EL3, while enable_caches() is called when the PE has turned into another EL.
Define the function mmu_setup() for fsl-layerscape to cover the weak one.
---
Tested on LS1043A RDB board
V2:
- Replace patch [PATCH 1/3] ARMv8/layerscape: Add mmu_init API
arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +10 -4
@@ -393,15 +393,21 @@ int arch_cpu_init(void) return 0; } +void mmu_setup (void ) +{ +final_mmu_setup (); +} +/* -* This function is called from lib/board.c. -* It recreates MMU table in main memory. MMU and d-cache are enabled earlier. -* There is no need to disable d-cache for this operation. +* This function is called from common/board_r.c. +* It recreates MMU table in main memory. */ void enable_caches (void ) { -final_mmu_setup (); +mmu_setup ();__asm_invalidate_tlb_all (); +icache_enable (); +dcache_enable (); }#endif
Signature · 1 line
2.1.0.27.g96db324
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
---
Tested on LS1043A RDB board
V2:
- Added arguments of boot location pointer to ppa_init.
arch/arm/cpu/armv8/fsl-layerscape/Makefile | 1 + arch/arm/cpu/armv8/fsl-layerscape/ppa.c | 212 +++++++++++++++++++++++++ arch/arm/cpu/armv8/fsl-layerscape/ppa_entry.S | 42 +++++ arch/arm/include/asm/arch-fsl-layerscape/ppa.h | 15 ++ 4 files changed, 270 insertions(+) create mode 100644 arch/arm/cpu/armv8/fsl-layerscape/ppa.c create mode 100644 arch/arm/cpu/armv8/fsl-layerscape/ppa_entry.S create mode 100644 arch/arm/include/asm/arch-fsl-layerscape/ppa.h
arch/arm/cpu/armv8/fsl-layerscape/Makefile +1 -0
@@ -10,6 +10,7 @@ obj-y += soc.o obj-$(CONFIG_MP) += mp.o obj-$(CONFIG_OF_LIBFDT) += fdt.o obj-$(CONFIG_SPL) += spl.o +obj-$(CONFIG_FSL_LS_PPA) += ppa.o ppa_entry.o ifneq ($(CONFIG_FSL_LSCH3),) obj-y += fsl_lsch3_speed.o
arch/arm/cpu/armv8/fsl-layerscape/ppa.c new file +212 -0
212 lines not on this page · raw message
arch/arm/cpu/armv8/fsl-layerscape/ppa_entry.S new file +42 -0
42 lines not on this page · raw message
arch/arm/include/asm/arch-fsl-layerscape/ppa.h new file +15 -0
@@ -0,0 +1,15 @@ +/* +* Copyright 2015 Freescale Semiconductor, Inc. +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#ifndef __FSL_PPA_H_ +#define __FSL_PPA_H_ + +int ppa_init_pre (u64 *); +int ppa_init_entry (void *); +int ppa_init (void *,u32 *,u32 *); +unsigned long ppa_get_dram_block_size (void ); + +#endif
Signature · 1 line
2.1.0.27.g96db324
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Quoted 10 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB board
I presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA, right?
Would it be possible to write a readme for PPA?
York
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Quoted 12 lines · york sun
Quoted 10 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB board
Quoted 4 lines
I presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA, right?
Would it be possible to write a readme for PPA?
Also, how does the devicetree get updated to indicate the presence of PSCI?
-Scott
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Quoted 24 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 12 lines · york sun
Quoted 10 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB board
Quoted 9 lines
Quoted 2 lines
I presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification. The cpu.enable_method needs to be changed from spin-table to psci as well.
See http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/arm/psci.txt for details.
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Quoted 27 lines · Bhupesh Sharma
Quoted 27 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
right?
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Would it be possible to write a readme for PPA?
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
So then we need a different dts based on whether PPA is loaded? No thanks.
Quoted 1 line
The cpu.enable_method needs to be changed from spin-table to psci as well.
Right, that's part of updating the devicetree to indicate the presence of PSCI.
Quoted 2 lines
See http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/a
rm/psci.txtfor details.
I'm familiar with the binding.
-Scott
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Quoted 37 lines
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:48 AMQuoted 34 lines · Bhupesh Sharma
Quoted 33 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Also, how does the devicetree get updated to indicate the presence of PSCI?
Quoted 5 lines
Quoted 2 lines
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
So then we need a different dts based on whether PPA is loaded? No thanks.
For e.g the current LS2080A DTS has no separate node for PSCI, the same can be patched-up/added by the Bootloader.
Quoted 6 lines
Quoted 2 lines
The cpu.enable_method needs to be changed from spin-table to psci as
well.
Right, that's part of updating the devicetree to indicate the presence of PSCI.
Similarly the cpu.enable-method is also empty in the LS2080A DTS to allow Bootloader to patch it accordingly.
Please see: http://lxr.free-electrons.com/source/arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi#L65
Quoted 6 lines
Quoted 4 lines
See
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings
/arm/psci.txtfor details.I'm familiar with the binding.
Regards,
Bhupesh
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
In reply to Scott WoodHi Rod and Chenhui,
Can you help to answer the questions about PSCI?
Quoted 62 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: 2016?1?23? 4:18
To: Bhupesh Sharma <[email protected]>; york sun <[email protected]>; Zhiqiang Hou <[email protected]>; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder <[email protected]>; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou <[email protected]>
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 28 lines · Bhupesh Sharma
Quoted 28 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
right?
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Would it be possible to write a readme for PPA?
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
So then we need a different dts based on whether PPA is loaded? No thanks.
Quoted 1 line
The cpu.enable_method needs to be changed from spin-table to psci as well.
Right, that's part of updating the devicetree to indicate the presence of PSCI.
Quoted 4 lines
See
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings
/arm/psci.txtfor details.I'm familiar with the binding.
-Scott
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
In reply to Bhupesh SharmaQuoted 30 lines · Bhupesh Sharma
Quoted 30 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Quoted 9 lines
Quoted 3 lines
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification. The cpu.enable_method needs to be changed from spin-table to psci as well.
See http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/arm/psci.txt for details.
Bhupesh,
Before PPA is fully adopted, u-boot has to detect the existence of PPA and decide to use PSCI or spin table, right? So the device tree node should also be fixed accordingly.
York
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Quoted 44 lines · york sun
Quoted 35 lines · Bhupesh Sharma
Quoted 27 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
Quoted 7 lines
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Also, how does the devicetree get updated to indicate the presence of PSCI?
Quoted 7 lines
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
The cpu.enable_method needs to be changed from spin-table to psci as well.See http://lxr.free-electrons.com/source/Documentation/devicetree/bindings
/arm/psci.txt for details.
Quoted 6 lines
Bhupesh,
Before PPA is fully adopted, u-boot has to detect the existence of PPA and decide to use PSCI or spin table, right? So the device tree node should also be
fixed accordingly.
How would U-Boot know what version of PSCI the loaded PPA supports? Is or could there be any metadata on the PPA image to convey such information?
-Scott
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Quoted 44 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:52 AM
To: york sun; Bhupesh Sharma; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 32 lines · york sun
Quoted 31 lines · Bhupesh Sharma
Quoted 31 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Quoted 20 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
The cpu.enable_method needs to be changed from spin-table to psci aswell.
Quoted 12 lines
Quoted 6 lines
See
http://lxr.free-electrons.com/source/Documentation/devicetree/bindin
gs
/arm/psci.txt for details.Bhupesh,
Before PPA is fully adopted, u-boot has to detect the existence of PPA and decide to use PSCI or spin table, right? So the device tree node should also be fixed accordingly.
A static CONFIG_ flag is used for enabling the PPA support currently in QorIQ-LS u-boot code.
Quoted 4 lines
How would U-Boot know what version of PSCI the loaded PPA supports? Is or could there be any metadata on the PPA image to convey such information?
PSCI specifications support the PSCI_VERSION API which is implemented by PPA and it returns the PSCI_VERSION supported by PPA.
Regards,
Bhupesh
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Quoted 59 lines · Bhupesh Sharma
Quoted 59 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:52 AM
To: york sun; Bhupesh Sharma; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 32 lines · york sun
Quoted 31 lines · Bhupesh Sharma
Quoted 31 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
The cpu.enable_method needs to be changed from spin-table to psci aswell.
Quoted 7 lines
Quoted 6 lines
See
http://lxr.free-electrons.com/source/Documentation/devicetree/bindin
gs
/arm/psci.txt for details.
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Bhupesh,
Before PPA is fully adopted, u-boot has to detect the existence of PPA and decide to use PSCI or spin table, right? So the device tree node should also be fixed accordingly.
A static
CONFIG_flag is used for enabling the PPA support currently in QorIQ-LS u-boot code.
Not enough. The driver parse PPA image and gives up if it is not a valid image. Before we have a way to deploy PPA image to all our customers, we need to keep both options open.
York
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Hi Rod and Chenhui,
Can you help to answer the questions about PSCI and PPA?
Quoted 79 lines
-----Original Message-----
From: york sun
Sent: 2016?1?23? 4:30
To: Bhupesh Sharma <[email protected]>; Scott Wood <[email protected]>; Zhiqiang Hou <[email protected]>; u- boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder <[email protected]>; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou <[email protected]>
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 67 lines · Bhupesh Sharma
Quoted 66 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:52 AM
To: york sun; Bhupesh Sharma; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 32 lines · york sun
Quoted 31 lines · Bhupesh Sharma
Quoted 31 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
The cpu.enable_method needs to be changed from spin-table to psci aswell.
Quoted 13 lines
Quoted 7 lines
See
http://lxr.free-electrons.com/source/Documentation/devicetree/bindi
n
gs
/arm/psci.txt for details.Bhupesh,
Before PPA is fully adopted, u-boot has to detect the existence of PPA and decide to use PSCI or spin table, right? So the device tree node should also be fixed accordingly.
Quoted 7 lines
Quoted 1 line
A static
CONFIG_flag is used for enabling the PPA support currently in QorIQ-LSu-boot code.
Not enough. The driver parse PPA image and gives up if it is not a valid image. Before we have a way to deploy PPA image to all our customers, we need to keep both options open.
Chenhui is working on it.
Thanks,
Zhiqiang
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Quoted 3 lines · Zhiqiang Hou
Chenhui is working on it.
Guys,
Where are we on this set?
York
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
Hi Chenhui,
Do you have any update about how to fixup the related device node according to the PSCI and spin-table?
Quoted 14 lines
-----Original Message-----
From: york sun
Sent: 2016?3?18? 5:09
To: Zhiqiang Hou <[email protected]>; Bhupesh Sharma <[email protected]>; Scott Wood <[email protected]>; Zhiqiang Hou <[email protected]>; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder <[email protected]>; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Rod Dorris <[email protected]>; Chenhui Zhao <[email protected]>
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 1 line · Zhiqiang Hou
Quoted 9 lines
Quoted 2 lines
Chenhui is working on it.
Guys,
Where are we on this set?
York
Thanks,
Zhiqiang
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
In reply to Bhupesh SharmaQuoted 68 lines · Bhupesh Sharma
Quoted 43 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:52 AM
To: york sun; Bhupesh Sharma; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 32 lines · york sun
Quoted 31 lines · Bhupesh Sharma
Quoted 31 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Quoted 20 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
The cpu.enable_method needs to be changed from spin-table to psci aswell.
Quoted 12 lines
Quoted 6 lines
See
http://lxr.free-electrons.com/source/Documentation/devicetree/bindin
gs
/arm/psci.txt for details.Bhupesh,
Before PPA is fully adopted, u-boot has to detect the existence of PPA and decide to use PSCI or spin table, right? So the device tree node should also be fixed accordingly.
A static
CONFIG_flag is used for enabling the PPA support currently in QorIQ-LS u-boot code.Quoted 1 line
Quoted 7 lines
Quoted 3 lines
How would U-Boot know what version of PSCI the loaded PPA supports? Is or could there be any metadata on the PPA image to convey such information?
PSCI specifications support the
PSCI_VERSIONAPI which is implemented by PPA and it returns thePSCI_VERSION
supported by PPA.
That does not answer the question unless we can assume that PPA always implements PSCI >= 0.2. And maybe there are other services worth advertising in the device tree? Some sort of metadata would be nice.
-Scott
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
In reply to Scott WoodHi Rod and Chenhui,
Can you help to answer the questions about PSCI and PPA?
Quoted 57 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: 2016?1?23? 4:22
To: york sun <[email protected]>; Bhupesh Sharma <[email protected]>; Zhiqiang Hou <[email protected]>; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder <[email protected]>; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou <[email protected]>
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 46 lines · york sun
Quoted 44 lines · Bhupesh Sharma
Quoted 27 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
Quoted 7 lines
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
The cpu.enable_method needs to be changed from spin-table to psci as well.See
http://lxr.free-electrons.com/source/Documentation/devicetree/bindin
gs
/arm/psci.txt for details.
Quoted 9 lines
Quoted 5 lines
Bhupesh,
Before PPA is fully adopted, u-boot has to detect the existence of PPA and decide to use PSCI or spin table, right? So the device tree node should also be fixed accordingly.
How would U-Boot know what version of PSCI the loaded PPA supports? Is or could there be any metadata on the PPA image to convey such information?
Thanks,
Zhiqiang
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
In reply to Scott Wood+ Rod and Chenhui
Quoted 86 lines
-----Original Message-----
From: Zhiqiang Hou
Sent: 2016?1?25? 11:16
To: 'Scott Wood' <[email protected]>; york sun <[email protected]>; Bhupesh Sharma <[email protected]>; Zhiqiang Hou <[email protected]>; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder <[email protected]>; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com
Subject: RE: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportHi Rod and Chenhui,
Can you help to answer the questions about PSCI and PPA?
Quoted 59 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: 2016?1?23? 4:22
To: york sun <[email protected]>; Bhupesh Sharma <[email protected]>; Zhiqiang Hou <[email protected]>; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder <[email protected]>; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou <[email protected]>
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 47 lines · york sun
Quoted 45 lines · Bhupesh Sharma
Quoted 27 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Saturday, January 23, 2016 1:39 AM
To: york sun; Zhiqiang Hou; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 7 lines · york sun
Quoted 6 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB boardI presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA,
Quoted 7 lines
right?
Quoted 2 lines
Would it be possible to write a readme for PPA?
Also, how does the devicetree get updated to indicate the presence of PSCI?
One needs to add PSCI node in the DTS for the same, claiming support for PSCI specification.
The cpu.enable_method needs to be changed from spin-table to psci as well.See
http://lxr.free-electrons.com/source/Documentation/devicetree/bind
in
gs
/arm/psci.txt for details.Quoted 9 lines
Quoted 5 lines
Bhupesh,
Before PPA is fully adopted, u-boot has to detect the existence of PPA and decide to use PSCI or spin table, right? So the device tree node should also be fixed accordingly.
How would U-Boot know what version of PSCI the loaded PPA supports? Is or could there be any metadata on the PPA image to convey such information?
Thanks,
Zhiqiang
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
In reply to Scott WoodHi Rod and Chenhui,
Can you help to answer the questions about PSCI?
Quoted 23 lines
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: 2016?1?23? 4:09
To: york sun <[email protected]>; Zhiqiang Hou <[email protected]>; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder <[email protected]>; leoli at freescale.com;
prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou <[email protected]>
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 12 lines · york sun
Quoted 10 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB board
Quoted 7 lines
Quoted 4 lines
I presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA, right?
Would it be possible to write a readme for PPA?
Also, how does the devicetree get updated to indicate the presence of PSCI?
Thanks,
Zhiqiang
PATCH v2 2/3 ARMv8/layerscape: Add FSL PPA support
In reply to york sunHi York,
Sorry, I didn't touch the PSCI in u-boot and what works the PPA is doing, I just work on integrating PPA to u-boot.
Hi Rod and Chenhui,
Can you help to answer the questions about the PSCI and PPA?
Quoted 22 lines
-----Original Message-----
From: york sun
Sent: 2016?1?23? 4:05
To: Zhiqiang Hou <[email protected]>; u-boot at lists.denx.de; albert.u.boot at aribaud.net; Mingkai.hu at freescale.com; Stuart Yoder <[email protected]>; leoli at freescale.com; prabhakar at freescale.com; bhupesh.sharma at freescale.com; Zhiqiang Hou <[email protected]>; Scott Wood <[email protected]>
Subject: Re: [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA supportQuoted 10 lines · Zhiqiang Hou
From: Hou Zhiqiang <[email protected]>
The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot.
Signed-off-by Hou Zhiqiang <[email protected]>---
Tested on LS1043A RDB board
Quoted 5 lines
I presume PSCI is implemented in PPA. How does the SMP boot flow change with PPA? U-boot has to remain functional in the absence of PPA, right?
Would it be possible to write a readme for PPA?
Thanks,
Zhiqiang
PATCH v2 3/3 ARMv8/ls1043ardb: Integrate FSL PPA
In reply to Zhiqiang HouFrom: Hou Zhiqiang <[email protected]>
---
V2
- No change.
board/freescale/ls1043ardb/ls1043ardb.c | 11 +++++++++++ include/configs/ls1043ardb.h | 9 +++++++++ 2 files changed, 20 insertions(+)
board/freescale/ls1043ardb/ls1043ardb.c +11 -0
@@ -9,6 +9,7 @@#include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/fsl_serdes.h> +#include <asm/arch/ppa.h> #include <asm/arch/soc.h> #include <hwconfig.h> #include <ahci.h>
@@ -94,6 +95,9 @@ int board_early_init_f(void)int board_init (void ) {struct ccsr_cci400 *cci = (struct ccsr_cci400 *)CONFIG_SYS_CCI400_ADDR ; +#ifdef CONFIG_FSL_LS_PPA +u64 ppa_entry; +#endif /* * Set CCI-400 control override register to enable barrier
@@ -113,6 +117,13 @@ int board_init(void)enable_layerscape_ns_access ();#endif +#ifdef CONFIG_FSL_LS_PPA +ppa_init_pre (&ppa_entry); + +if (ppa_entry) +ppa_init_entry ((void *)ppa_entry); +#endif +return 0 ; }
include/configs/ls1043ardb.h +9 -0
@@ -9,6 +9,15 @@#include "ls1043a_common.h" +#if defined(CONFIG_FSL_LS_PPA ) +#define CONFIG_SYS_LS_PPA_DRAM_BLOCK_MIN_SIZE (1UL * 1024 * 1024) + +#define CONFIG_SYS_LS_PPA_FW_IN_NOR +#ifdef CONFIG_SYS_LS_PPA_FW_IN_NOR +#define CONFIG_SYS_LS_PPA_FW_ADDR 0x60500000 +#endif +#endif +#define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO
Signature · 1 line
2.1.0.27.g96db324