Received: by 10.192.165.148 with SMTP id m20csp4013035imm; Tue, 8 May 2018 01:08:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZojf5FTNlMSNkohNQ9NZU6QKV2ybJ1J/bG4rgPNkfy1mPpIKKLYyTQtItgOebzv4Hj/hgX2 X-Received: by 2002:a65:4944:: with SMTP id q4-v6mr32614735pgs.424.1525766882825; Tue, 08 May 2018 01:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525766882; cv=none; d=google.com; s=arc-20160816; b=f2c2T1303tu3Ul6LsXH7rhBNDAATNQ+bJ5e2aDfLPDWLSfnou4kemiFnNl4VYPJ4Gn 1eo8njyyWPrBqYWeC62+gObKZaVMjE8G0kXAJImfKipoIQozkaJbul7SLE3mrKxIaVIQ pDZSg2j+2Ky7WeSREpStfgBmj9FSXNkBBmxdWdElfFgaTetWRPH9eWoVumIVlCBLPoCz /akYU5GPbuKpnLSWR/5hrVDwBsbtJ2h7dN+QNz/37DxacONFcYf0PtZNkGgec2KKQpr8 uHit07NTWRmhETDSP5/0KVW4zzdVNTtY4mE7sEK12Aud4B06rMHGuwFKuy29iOAqPh8t w82g== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=x2zoOjx4d3PhvyJAgCflJbDoHz2NfceRpHaOHl+7lr4=; b=00HgTQnsqrTgAI8W5CkawZgUnpHrODJXQkA7bdPObBHnigop1scaF5EX3FBdYRSf6s qLEGEzO27G+ZW3yBmntvWRGZY1t8XQqxWKcL7NPbJDwaH1US1nV1I+R3o/2pZaUoGENI 2FleAlnsLZ29hF6IA13T2Edcwdl6/2+oakGQNCyk+dO2fbobo7FgnGfBJfj9F/oebQbu PjzEiyctipgj/JmNENNf6xNAg3PZzoJ/V+5SW+Jleswt5Bc7jqrFFRVo67lFoGLBX3kT 6AVZmTsYEpO4SUioLHPJF2IMc8yXqWw1HM8Bn095Xd8YbNhVADbzYVZPNilVzJcc+u15 twcA== 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 w8-v6si8196994pgr.65.2018.05.08.01.07.47; Tue, 08 May 2018 01:08:02 -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 S1754232AbeEHIGe (ORCPT + 99 others); Tue, 8 May 2018 04:06:34 -0400 Received: from foss.arm.com ([217.140.101.70]:53898 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752497AbeEHIGb (ORCPT ); Tue, 8 May 2018 04:06:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1F2131529; Tue, 8 May 2018 01:06:31 -0700 (PDT) Received: from [10.1.206.75] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DE6EA3F592; Tue, 8 May 2018 01:06:27 -0700 (PDT) Subject: Re: [PATCH v9 06/12] ARM: smp: Add initialization of CNTVOFF To: =?UTF-8?Q?Myl=c3=a8ne_Josserand?= , linux@armlinux.org.uk, maxime.ripard@bootlin.com, wens@csie.org, mark.rutland@arm.com, robh+dt@kernel.org, horms@verge.net.au, geert@linux-m68k.org, magnus.damm@gmail.com Cc: f.fainelli@gmail.com, opendmb@gmail.com, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, thomas.petazzoni@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20180504190545.5114-1-mylene.josserand@bootlin.com> <20180504190545.5114-7-mylene.josserand@bootlin.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: <0a377a75-d99c-b00c-ec96-bf5a7daf721a@arm.com> Date: Tue, 8 May 2018 09:06:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180504190545.5114-7-mylene.josserand@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/05/18 20:05, 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. > > Signed-off-by: Mylène Josserand > Reviewed-by: Geert Uytterhoeven > Tested-by: Geert Uytterhoeven Reviewed-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny...