Received: by 10.192.165.156 with SMTP id m28csp1042677imm; Wed, 18 Apr 2018 03:03:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+SuldEOKm740p1lsY8OHJukm0dBr+gL0VojUd3IRNU0acGeQ87+CfCVZrxBdzWBfzcqDgN X-Received: by 2002:a17:902:3f83:: with SMTP id a3-v6mr1471330pld.279.1524045810112; Wed, 18 Apr 2018 03:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524045810; cv=none; d=google.com; s=arc-20160816; b=p+HLfwEa+k+w0iY8FcGRS8XVlDIaaRV7zuvUrbz++xyzpzJNpZESJPDHJWpinD6PaY VzKmqw2XUlpBsyZOPpuHVr2N/B8zxmOXKSbppqrNJhj4lIFrT5lrw5+ipGRVwN5EX3cI V3JzSz+NZ+RiAqStab67FUvPGn0DRYLw5eS3WcY3hfus3M/Zn5vfzTeSOiOgXo36jJxi PNKzdjJ20sRjH3V2JP31N1c6trIilViRLnRU63zU0Bt4K54p/CaATrjtV9AVZDWiSmPU xVfSUQQ1LSNUoQino7B/Vpg4HXG423avBGVBo5uraArj2isM/oGLBm/KLiFB7DcH2Kju MGxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=hAe+3ho81gveFoCCoRvbFF8edEp5Z18LXSFQ6qTi460=; b=zti19p07oeMr9Ce+Q+zBLNoYh2Lv1XW7vN6QTTJ2/mGlSjmbA73lw5r6CdBNq8laRa NZDVJhqLu7wtl6UMniDb5CSb5wZAI6p4JHetKNg2/Z8ByEA8wr12HkVn90UOkjxBixTt GJ312UsH1X0Zf+WfBJR/9n3W1ArjBJ0V11KaOiMrsMhwGkkp7hbWisu3G06zOFSV/i4o t282iCA8Bnse4+M/FXzI1v6Q5tIWBHhBA3nM19yt6l5XdxDJ4u2nGdln2bFxLp72FD8a Q/cJydh3rFbAm0EeMPBc414ahkZS8pW6d0GSswGx7iF5H7ChPH70nA6+MJM1miVhN4E9 LXiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70-v6si909308ple.372.2018.04.18.03.03.15; Wed, 18 Apr 2018 03:03:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752326AbeDRKCJ convert rfc822-to-8bit (ORCPT + 99 others); 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 Received: by mail.bootlin.com (Postfix, from userid 110) id 0C22E20894; Wed, 18 Apr 2018 12:02:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 9A1AF20693; Wed, 18 Apr 2018 12:01:54 +0200 (CEST) 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 Precedence: bulk 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