Received: by 10.192.165.148 with SMTP id m20csp4013416imm; Tue, 8 May 2018 01:08:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqeCCvIvCynMIO6ro5AjG//HWxMpYxzOq9b8qc5UOpSeEshAvPxa6X5772weGf4uIEXX3XB X-Received: by 2002:a63:705b:: with SMTP id a27-v6mr31834947pgn.432.1525766914813; Tue, 08 May 2018 01:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525766914; cv=none; d=google.com; s=arc-20160816; b=qOZDw5wKsTjTNaHDyZ6UFK79KBWzlmbxT0+D12u4ptpum1fV/OLd+nuOT4lMQRSS+a Cm2pgBIEKfEsOUFbBINYnk/sJ4/g+mp67sWvH76oxvnPfcVUYMq88oJx+jF0TBTvok2u k5QvJjAAtaKIYUU/vzBe2PfWlYYEFC8GaljFHmXe8SU7gHXzRSdbMta1k/aEaX1uey1d QcEvJ1Do+MGh9g23en4whJ1e+Eb4tLFd/Aaow0dfPHf86oEfnNxaLovwatxe1l0DJMhF xz/HRa6LJ3q8ykW28sn8KDPcal3ralK5XlNpouP670o3Hn2VmTD3vqTOdekm7JCdxM+J 1D/w== 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=FAcKBoWLymfh8S/9KGxiDA7/EU7tgYjjWhwESez0dc0=; b=nw7urEeKmm9dAVarfuK4lNIRXsEa0XnjDiEU1Z6/r30QYPTwE4wnVLNoops2osWRlf GDmN7s34dM6l+su0KE4JWoMNSm7qLDD1/tteYzJ0OGoEY0/PusPwq3lMqmYS0Xl+WMxk U/pIG+cBGY4tQY6h+2vHCzLnLmwyLVCxWnsBlJArWsvfvU2/WxSSQqVKlQW6Lr0MuNOD cCdN+WTuLuUysmZag+T97pPQVGB38ehKXs+OLMR5yXWTeNR1CXiT7LtC7F5d/ThOFQKF /NlDmjyJuZ2YyH0jUTATe2/ou3aDusLbSmZ1D3O4El5ULMth3iGpYbUItq9PB8XF1um/ T60A== 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 b70si12576520pfe.265.2018.05.08.01.08.20; Tue, 08 May 2018 01:08:34 -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 S932067AbeEHIIG (ORCPT + 99 others); Tue, 8 May 2018 04:08:06 -0400 Received: from foss.arm.com ([217.140.101.70]:53944 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754345AbeEHIIE (ORCPT ); Tue, 8 May 2018 04:08:04 -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 09F6D1529; Tue, 8 May 2018 01:08:04 -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 938103F592; Tue, 8 May 2018 01:08:00 -0700 (PDT) Subject: Re: [PATCH v9 07/12] ARM: sunxi: 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-8-mylene.josserand@bootlin.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: <71a9026d-1327-4948-5729-8d10cb7415f9@arm.com> Date: Tue, 8 May 2018 09:07:59 +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-8-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: > Add the initialization of CNTVOFF for sun8i-a83t. > > For boot CPU, create a new machine that handles this > function's call in an "init_early" callback. We need to initialize > CNTVOFF before the arch timer's initialization otherwise, it will > not be taken into account and fails to boot correctly. > Because of that, this function can't be called in SMP's early_initcall > function which is called after timer's init. > > For secondary CPUs, add this function into secondary_startup > assembly entry. > > Signed-off-by: Mylène Josserand > Acked-by: Maxime Ripard Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny...