Received: by 10.192.165.148 with SMTP id m20csp637455imm; Wed, 2 May 2018 06:29:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZroufgX2BGAwGweWWwAQRMcygT0c9Jnj7woqmEJdQoT4+E5k7sDbw3VjmZopO6faKlpKham X-Received: by 10.167.134.20 with SMTP id p20mr19429758pfn.159.1525267758998; Wed, 02 May 2018 06:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525267758; cv=none; d=google.com; s=arc-20160816; b=YrEE0TH5iOyQsr/PTKzaef44avwSjj4ixn9hc8//J7nG7FSZSvuLL519bIf2fBFycF bPK9WIGeMw3Du8QnNxHdlPmDPnv6qwSNQcmRpepJKZupKMxppP/YIqnHmMEYIRzXEwFp qL8IBo5GMYULLXFFHMYL2iP+0e6tgRs1lUPv7r7lf56ojigJdtnfB6DcCW9VSJ+Fjw7q CpkbovDJuWFPhN9rOUckN8SkaM8SPIQ5AzJCBD9G25sJliboTueJD73OjhTbbeOe+YeH 5QPPgBVsxlnhZMKGAqdtt535Fh3n+snWw4LqyTo/IsUK8Px4liJMyNQu/zsQ0+O1chdT qrtA== 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=4lGjiEt0Hx7MNuxbLoVTzG18m/gF0ZY+lZutlCqSxZs=; b=CHCdvD9yVf/kU97hE9CRLtQJHEuJ1vRuXgMIXY2E2L1LDIQskXwGwDHub6vm/uTbp1 feOfF3D2aGGYQnxzyfTmnTczqI468KKyPQeHMdXH0j6d+JNm2jZvlkPnWHhLsDuaWRTM OAOC7c4U7423XYI+YAcp7Z280V4a5oqKcaun3mLngAUuMTmL1EytWz98gFUJ09VzYWtW weIA4+r9PWijgIY2d2Y9/06z/m7Thtu517+gMZzuBKYBYA9IkJDyvLLiVOYmoFln6C1c Mc2u1LorkFrih+6R+waVYOmpyKsWL9bzW2qcWJLeHgdBWqShL84jXwBLekhI+FA4HNq9 NzOQ== 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 o1-v6si9333065pge.307.2018.05.02.06.29.04; Wed, 02 May 2018 06:29:18 -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 S1751392AbeEBN2n convert rfc822-to-8bit (ORCPT + 99 others); Wed, 2 May 2018 09:28:43 -0400 Received: from mail.bootlin.com ([62.4.15.54]:51773 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751100AbeEBN2k (ORCPT ); Wed, 2 May 2018 09:28:40 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 2079B206FB; Wed, 2 May 2018 15:28:38 +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 A6A50206A0; Wed, 2 May 2018 15:28:37 +0200 (CEST) Date: Wed, 2 May 2018 15:28:37 +0200 From: =?UTF-8?B?TXlsw6huZQ==?= Josserand To: Maxime Ripard Cc: linux@armlinux.org.uk, wens@csie.org, marc.zyngier@arm.com, mark.rutland@arm.com, robh+dt@kernel.org, horms@verge.net.au, geert@linux-m68k.org, magnus.damm@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 Subject: Re: [PATCH v8 07/12] ARM: sunxi: Add initialization of CNTVOFF Message-ID: <20180502152837.379c376a@dell-desktop.home> In-Reply-To: <20180502130842.pecjwahxrvx5addq@flea> References: <20180501123131.7738-1-mylene.josserand@bootlin.com> <20180501123131.7738-8-mylene.josserand@bootlin.com> <20180502130842.pecjwahxrvx5addq@flea> 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 Hi Maxime, On Wed, 2 May 2018 15:08:42 +0200 Maxime Ripard wrote: > On Tue, May 01, 2018 at 02:31:26PM +0200, 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 > > --- > > arch/arm/mach-sunxi/headsmp.S | 1 + > > arch/arm/mach-sunxi/sunxi.c | 20 +++++++++++++++++++- > > 2 files changed, 20 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm/mach-sunxi/headsmp.S b/arch/arm/mach-sunxi/headsmp.S > > index 37dc772701f3..32d76be98541 100644 > > --- a/arch/arm/mach-sunxi/headsmp.S > > +++ b/arch/arm/mach-sunxi/headsmp.S > > @@ -71,6 +71,7 @@ ENDPROC(sunxi_mc_smp_cluster_cache_enable) > > > > ENTRY(sunxi_mc_smp_secondary_startup) > > bl sunxi_mc_smp_cluster_cache_enable > > + bl secure_cntvoff_init > > b secondary_startup > > ENDPROC(sunxi_mc_smp_secondary_startup) > > > > diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c > > index 5e9602ce1573..2770a31a9278 100644 > > --- a/arch/arm/mach-sunxi/sunxi.c > > +++ b/arch/arm/mach-sunxi/sunxi.c > > @@ -16,6 +16,7 @@ > > #include > > > > #include > > +#include > > > > static const char * const sunxi_board_dt_compat[] = { > > "allwinner,sun4i-a10", > > @@ -62,7 +63,6 @@ MACHINE_END > > static const char * const sun8i_board_dt_compat[] = { > > "allwinner,sun8i-a23", > > "allwinner,sun8i-a33", > > - "allwinner,sun8i-a83t", > > "allwinner,sun8i-h2-plus", > > "allwinner,sun8i-h3", > > "allwinner,sun8i-r40", > > @@ -75,6 +75,24 @@ DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i Family") > > .dt_compat = sun8i_board_dt_compat, > > MACHINE_END > > > > +void __init sun8i_a83t_cntvoff_init(void) > > +{ > > +#ifdef CONFIG_SMP > > + secure_cntvoff_init(); > > +#endif > > +} > > + > > +static const char * const sun8i_a83t_cntvoff_board_dt_compat[] = { > > + "allwinner,sun8i-a83t", > > + NULL, > > +}; > > + > > +DT_MACHINE_START(SUN8I_CNTVOFF_DT, "Allwinner sun8i-a83t board") > > I put my Acked-by on the condition that you would fix this. And you > still didn't. Grrr, stupid me. I modified the names of functions but I forgot the machine. Sorry about that. Best regards, -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com