* [U-Boot] [PATCH] Armv8: Initializing CNTVOFF_EL2
@ 2015-03-02 7:29 fenghua at phytium.com.cn
2015-04-16 9:28 ` Albert ARIBAUD
0 siblings, 1 reply; 2+ messages in thread
From: fenghua at phytium.com.cn @ 2015-03-02 7:29 UTC (permalink / raw)
To: u-boot
From: David Feng <fenghua@phytium.com.cn>
Linux-arm64 require that CNTVOFF_EL2 should be programmed with
a consistent value on all cpus. Initializing CNTVOFF_EL2 at state
transition instead of start.S could prevent potential different value
on cpus if ATF exist and u-boot runs at only one cpu.
Signed-off-by: David Feng <fenghua@phytium.com.cn>
---
arch/arm/include/asm/macro.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/include/asm/macro.h b/arch/arm/include/asm/macro.h
index 1c8c425..39df86a 100644
--- a/arch/arm/include/asm/macro.h
+++ b/arch/arm/include/asm/macro.h
@@ -113,6 +113,9 @@ lr .req x30
mov \xreg1, #0x33ff
msr cptr_el2, \xreg1 /* Disable coprocessor traps to EL2 */
+ /* Initialize Generic Timers */
+ msr cntvoff_el2, xzr
+
/* Initialize SCTLR_EL2
*
* setting RES1 bits (29,28,23,22,18,16,11,5,4) to 1
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] Armv8: Initializing CNTVOFF_EL2
2015-03-02 7:29 [U-Boot] [PATCH] Armv8: Initializing CNTVOFF_EL2 fenghua at phytium.com.cn
@ 2015-04-16 9:28 ` Albert ARIBAUD
0 siblings, 0 replies; 2+ messages in thread
From: Albert ARIBAUD @ 2015-04-16 9:28 UTC (permalink / raw)
To: u-boot
Hello fenghua at phytium.com.cn,
On Mon, 2 Mar 2015 15:29:34 +0800, fenghua at phytium.com.cn <fenghua@phytium.com.cn> wrote:
> From: David Feng <fenghua@phytium.com.cn>
>
> Linux-arm64 require that CNTVOFF_EL2 should be programmed with
> a consistent value on all cpus. Initializing CNTVOFF_EL2 at state
> transition instead of start.S could prevent potential different value
> on cpus if ATF exist and u-boot runs at only one cpu.
>
> Signed-off-by: David Feng <fenghua@phytium.com.cn>
> ---
> arch/arm/include/asm/macro.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm/include/asm/macro.h b/arch/arm/include/asm/macro.h
> index 1c8c425..39df86a 100644
> --- a/arch/arm/include/asm/macro.h
> +++ b/arch/arm/include/asm/macro.h
> @@ -113,6 +113,9 @@ lr .req x30
> mov \xreg1, #0x33ff
> msr cptr_el2, \xreg1 /* Disable coprocessor traps to EL2 */
>
> + /* Initialize Generic Timers */
> + msr cntvoff_el2, xzr
> +
> /* Initialize SCTLR_EL2
> *
> * setting RES1 bits (29,28,23,22,18,16,11,5,4) to 1
> --
> 1.7.9.5
>
>
Applied to u-boot-arm/master, thanks!
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-16 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 7:29 [U-Boot] [PATCH] Armv8: Initializing CNTVOFF_EL2 fenghua at phytium.com.cn
2015-04-16 9:28 ` Albert ARIBAUD
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.