Received: by 10.223.185.116 with SMTP id b49csp3591570wrg; Mon, 19 Feb 2018 02:41:10 -0800 (PST) X-Google-Smtp-Source: AH8x226oUOb1pCjN1kKrN5ykYK4lz+M0CH1Rm92CFwC8NkcvhKAdfT1GuMVAI579byFg3wGhG9qr X-Received: by 2002:a17:902:3225:: with SMTP id y34-v6mr13728616plb.399.1519036870170; Mon, 19 Feb 2018 02:41:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519036870; cv=none; d=google.com; s=arc-20160816; b=axxpNt7YLAF3HBspVG+eo8yerUoBvwQS371rlP2pAHb0/Px3y7FOFmDsYDRyhr1bJN tmt0Q8pYHTv5S0PlPjJctmaf/1TYRL7mq5LQJS3sqwi6IgEpxCmzrvORJCgIkcFxsBni x+9juEcSsGoy0STO1ywU7jYCCJ7guMpVxefeG63BY9IZfVxrdggNwdD4AaOZzMrCpxY8 V5IY6Xhrb8jWNnrDoPXfML9VnGHvLpuGSaYlqod+eGrw0DmDP7JTKiS4AJo44Cb19Xtw +QmqdcsclhIsrZbzBNNnTmUE80DIU3MMKFNzjfd9lRlEALVseIi6zpogNKhjGlc7XVhw /txQ== 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=CeycazKydZKmgrLnWO52hBVsME8fS+WTnvAaUzGELuI=; b=nLJ5RJOmarLinXE7DMl0QGqE5MplKDezQDgIB03M3oMnYuXrq2avGNbclLUPFf5UK/ Xqqarz3Hzv1iIhWFPYUSlKsdvcL/cA12M2xW8VpTWdO3RxCVELYPhDM4t9p2KXS6ZaVE 8kEgbgBKW4CXujhb2BPB1jFh2ASZtLQ4nJrFeRnSx30oPINE9nn/0+cZmnjNXVdLxI1i /tgXQUFyQBR79XnLheA6E64urvETt9JMz3k19McY2ry0k0coZa6kBPTh8GtRru4lArwi ufQKfAMxUvm77D93bCGR673nxJJeDEH1iHKv2XuF4J+rKEZBlSqsAYWu303rAo5borTL Mc3w== 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 u128si5064395pgc.587.2018.02.19.02.40.55; Mon, 19 Feb 2018 02:41:10 -0800 (PST) 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 S1752606AbeBSKju convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Feb 2018 05:39:50 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:58521 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752447AbeBSKjr (ORCPT ); Mon, 19 Feb 2018 05:39:47 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id A296D20715; Mon, 19 Feb 2018 11:39:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.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.free-electrons.com (Postfix) with ESMTPSA id 4CA06203A6; Mon, 19 Feb 2018 11:39:45 +0100 (CET) Date: Mon, 19 Feb 2018 11:39:45 +0100 From: =?UTF-8?B?TXlsw6huZQ==?= Josserand To: Maxime Ripard Cc: wens@csie.org, linux@armlinux.org.uk, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clabbe.montjoie@gmail.com, thomas.petazzoni@bootlin.com, quentin.schulz@bootlin.com Subject: Re: [PATCH v3 1/7] ARM: sun8i: smp: Add support for A83T Message-ID: <20180219113945.686dc4ee@dell-desktop.home> In-Reply-To: <20180219090401.5uxmwtnkd7oadaxx@flea.lan> References: <20180219081837.15482-1-mylene.josserand@bootlin.com> <20180219081837.15482-2-mylene.josserand@bootlin.com> <20180219090401.5uxmwtnkd7oadaxx@flea.lan> 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 Maxime, On Mon, 19 Feb 2018 10:04:01 +0100 Maxime Ripard wrote: > Hi, > > On Mon, Feb 19, 2018 at 09:18:31AM +0100, Mylène Josserand wrote: > > Add the support for A83T. > > > > A83T SoC has an additional register than A80 to handle CPU configurations: > > R_CPUS_CFG. Information about the register comes from Allwinner's BSP > > driver. > > An important difference is the Power Off Gating register for clusters > > which is BIT(4) in case of SUN9I-A80 and BIT(0) in case of SUN8I-A83T. > > > > Signed-off-by: Mylène Josserand > > This is some high-level review, but you should split this patch in > three: > - One to refactor the current code to split the DT parsing function > (and rename the function to sun9i_smp_dt_parse) and the variable renames > - One to enable the A83t SMP (with the function called sun8i_a83t_smp_dt_parse) > - One to enable the A83t hotplug (merged with your last patch) Thank you for the review. Sure, I will split my patch in three. > > Also, you're calling a lot of times of_machine_is_compatible, and this > is quite inefficient. You should call it once and store the result. True. Thanks, Mylène -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com