From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Armv8: Initializing CNTVOFF_EL2
Date: Thu, 16 Apr 2015 11:28:45 +0200 [thread overview]
Message-ID: <20150416112845.36b88bc6@lilith> (raw)
In-Reply-To: <1425281374-27340-1-git-send-email-fenghua@phytium.com.cn>
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.
prev parent reply other threads:[~2015-04-16 9:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150416112845.36b88bc6@lilith \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox