From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Thu, 16 Apr 2015 11:28:45 +0200 Subject: [U-Boot] [PATCH] Armv8: Initializing CNTVOFF_EL2 In-Reply-To: <1425281374-27340-1-git-send-email-fenghua@phytium.com.cn> References: <1425281374-27340-1-git-send-email-fenghua@phytium.com.cn> Message-ID: <20150416112845.36b88bc6@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello fenghua at phytium.com.cn, On Mon, 2 Mar 2015 15:29:34 +0800, fenghua at phytium.com.cn wrote: > From: David Feng > > 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 > --- > 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.