From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752613AbeDRKCJ convert rfc822-to-8bit (ORCPT ); Wed, 18 Apr 2018 06:02:09 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57679 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861AbeDRKCH (ORCPT ); Wed, 18 Apr 2018 06:02:07 -0400 Date: Wed, 18 Apr 2018 12:01:54 +0200 From: =?UTF-8?B?TXlsw6huZQ==?= Josserand To: Geert Uytterhoeven Cc: Russell King , Maxime Ripard , Chen-Yu Tsai , Marc Zyngier , Mark Rutland , Rob Herring , Simon Horman , Magnus Damm , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LABBE Corentin , quentin.schulz@bootlin.com, Thomas Petazzoni , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH v6 05/11] ARM: smp: Add initialization of CNTVOFF Message-ID: <20180418120154.28fe6c4c@dell-desktop.home> In-Reply-To: References: <20180416215032.5023-1-mylene.josserand@bootlin.com> <20180416215032.5023-6-mylene.josserand@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Geert, On Wed, 18 Apr 2018 11:30:47 +0200 Geert Uytterhoeven wrote: > Allo Mylène, > > On Mon, Apr 16, 2018 at 11:50 PM, Mylène Josserand > wrote: > > The CNTVOFF register from arch timer is uninitialized. > > It should be done by the bootloader but it is currently not the case, > > even for boot CPU because this SoC is booting in secure mode. > > It leads to an random offset value meaning that each CPU will have a > > different time, which isn't working very well. > > > > Add assembly code used for boot CPU and secondary CPU cores to make > > sure that the CNTVOFF register is initialized. Because this code can > > be used by different platforms, add this assembly file in ARM's common > > folder. > > Thanks for your patch! > > > Signed-off-by: Mylène Josserand > > Reviewed-by: Geert Uytterhoeven > Tested-by: Geert Uytterhoeven > > Gr{oetje,eeting}s, > > Geert > Great, thank you very much for your test! Best regards, -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com