Received: by 10.192.165.148 with SMTP id m20csp444012imm; Fri, 27 Apr 2018 01:28:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqRcxiasVXNpoSaeNj0fZYyJy5lHYFh4MN4EzVQwJlf1fglRiCXA26CJWPIzgJufF4Y0LQ4 X-Received: by 2002:a65:6301:: with SMTP id g1-v6mr1321558pgv.307.1524817698802; Fri, 27 Apr 2018 01:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524817698; cv=none; d=google.com; s=arc-20160816; b=gKbhZqeI0Ndmv5qR4MhaywJGb7IScC4PkplCw3RK6AW65uXoiQq8OLcd2LJXzyEPI8 fHFw7BGBg1gpbKNmyPa6fZsFQRrY2fxU8GnPGG3K7/HJkuTwHghOza2h4XS1JJCjwXl7 wJpF4JNz5Pu5/Xh2n7i5aY3vl2YOCFVqddrsM0sGxhbr6h3t6UybEoG6PsYaWz4u0m6z /AYiMyTVx+5Ti6vKadNAZCaiRCoP44r7NUDpxUmTHIcKumLtsP1giJZSiVdiqRZhm517 yDiBytr4axs4IZKrZ+VZVKmbI0MkEpjafnItMp2vUr54msiPX1Qfzm9porlgqQoVW3Np OaXg== 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=gswQfepljZRnF277Mgk4GBZ9UeF4jAbFOFvfATTF/PU=; b=ttkd1rYi+peOd+CI+4HsdrKptEvuTkzhbaM7J5LBsgT9KvYu42dqPUJ6iVRjzwrkxF vbnk2y0Ywi4IS3QHll2QQIHz/aMMbBCbAmV7QpANg4WDsQJVX2LLaJEfr3xIA/9yx9cH CiPLzgpQTdmvx67aIyqbL50TkB/zhM9iaLtzh1pMCSOMafSuqXwdgZmJyvtHuN/O1oPg caymuXL5MiVI+GXsFreqAeLKnoFjpZs+mZXvl4G3EyrUXWA6FIsC78V2nKisBURDl/rv gvstY2XDO719IiCXlQWyEikFxE/26aFNu4fqb8K5KUy7aRsA2Lp3Eh6GHucfHMbRFx51 4mxQ== 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 h61-v6si822754pld.228.2018.04.27.01.28.04; Fri, 27 Apr 2018 01:28: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 S932362AbeD0I0r convert rfc822-to-8bit (ORCPT + 99 others); Fri, 27 Apr 2018 04:26:47 -0400 Received: from mail.bootlin.com ([62.4.15.54]:51356 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932323AbeD0I0p (ORCPT ); Fri, 27 Apr 2018 04:26:45 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 1A00320723; Fri, 27 Apr 2018 10:26:44 +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, URIBL_BLOCKED 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 19172207D4; Fri, 27 Apr 2018 10:26:15 +0200 (CEST) Date: Fri, 27 Apr 2018 10:26:14 +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 v7 08/11] ARM: sun9i: smp: Add is_a83t field Message-ID: <20180427102614.1558a1ae@dell-desktop.home> In-Reply-To: <20180423081423.h7b35sobagypokpe@flea> References: <20180420211022.11759-1-mylene.josserand@bootlin.com> <20180420211022.11759-9-mylene.josserand@bootlin.com> <20180423081423.h7b35sobagypokpe@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 Hello, On Mon, 23 Apr 2018 10:14:23 +0200 Maxime Ripard wrote: > On Fri, Apr 20, 2018 at 11:10:19PM +0200, Mylène Josserand wrote: > > To prepare the support of sun8i-a83t, add a field in the smp_data > > structure to know if we are on sun9i-a80 or sun8i-a83t. > > > > Add also a global variable to retrieve which architecture we are > > having. > > > > Signed-off-by: Mylène Josserand > > --- > > arch/arm/mach-sunxi/mc_smp.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/arch/arm/mach-sunxi/mc_smp.c b/arch/arm/mach-sunxi/mc_smp.c > > index 03f021d0c73e..48e5f4db64b6 100644 > > --- a/arch/arm/mach-sunxi/mc_smp.c > > +++ b/arch/arm/mach-sunxi/mc_smp.c > > @@ -74,6 +74,7 @@ static void __iomem *sram_b_smp_base; > > > > extern void sunxi_mc_smp_secondary_startup(void); > > extern void sunxi_mc_smp_resume(void); > > +static int is_a83t; > > > > static bool sunxi_core_is_cortex_a15(unsigned int core, unsigned int cluster) > > { > > @@ -624,6 +625,7 @@ struct sunxi_mc_smp_nodes { > > struct sunxi_mc_smp_data { > > const char *enable_method; > > int (*get_smp_nodes)(struct sunxi_mc_smp_nodes *nodes); > > + int is_a83t; > > This can be made a boolean. > > Maxime > ACK. It will be fixed in next version. Best regards, -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com