Received: by 10.223.185.116 with SMTP id b49csp3515950wrg; Mon, 19 Feb 2018 01:05:32 -0800 (PST) X-Google-Smtp-Source: AH8x2267qUjkqjKbgE9sWjSNC8enP66VMcv7mkma0UqpS+1MV84hTZpIMgb40dzDDGd5hDcfVAh2 X-Received: by 10.99.113.94 with SMTP id b30mr11768062pgn.228.1519031131974; Mon, 19 Feb 2018 01:05:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519031131; cv=none; d=google.com; s=arc-20160816; b=ZGVXghjKo+i0lc4xyFG6W2i7/lI1ExbL3vz4s6uZesh5WH8Iab6RiUwjsUKHirHapU Hl/jEXPK+N7N3GDEHPzUcrRG/aN5bp3Ht5Ycs4x5wOiPtZ47oHe7+deFj12EtMrDZF7Y Ps1D1N6ur+hGmzTkr1XrzBR+Y1tHanmi9lnRjSiOxxW2CexRz6j3dsZTWjNu6c5wZJP/ gOZHiiOTs2KaYQNTVy1Rjdbpv1sH5qgnizxOM6Fv1c+g/sNUaVNCJ09XWgXVYG2HF/so BEd5J8FVgPc6jsfCkvbPaip4cjk4IKvukXC7hyw4EzXojuB2dbf3ij5OgSU7+GykdC2Y VK1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=/77YiFQkLtz6VWUhEVkzt8WHSFvM0QVL1WTeBPa0gKE=; b=ICK0lejRwojdConBUiq92Ned38Eisj8wM16RkmdeG1gwD0JK/6/CYHoGKUrC1Xck44 APLSUZ01ywNJIrsHyxEQcgLtT0e3QxwHKOr7oXAPQEJH4S8sa157vD/hZtf7Rmji+HX0 FNbfeddimH0uGzHmy3HMzVYkr1g4V13PXKi5wm4BTW8ZVw+WkGx8rb8bXCO1JxGFe8hZ 1In9kmQI9RU6s7NekBAE6SGM0RKCc9rBuv/8JWAxwe11xCoR0NgLD0vWnZNbe1D37sdj vq1+aMvx4y6v/kvYQQlKm7ft95KCPy5xn3PeTn3KFkvzBd5PTfYA3tgv90HAPgCjyevB iKGA== 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 73si4335043pfr.363.2018.02.19.01.05.17; Mon, 19 Feb 2018 01:05:31 -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 S1752227AbeBSJEP (ORCPT + 99 others); Mon, 19 Feb 2018 04:04:15 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:56451 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752002AbeBSJEN (ORCPT ); Mon, 19 Feb 2018 04:04:13 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id CFE05207E2; Mon, 19 Feb 2018 10:04:11 +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 localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 931752071C; Mon, 19 Feb 2018 10:04:01 +0100 (CET) Date: Mon, 19 Feb 2018 10:04:01 +0100 From: Maxime Ripard To: =?iso-8859-1?Q?Myl=E8ne?= Josserand 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: <20180219090401.5uxmwtnkd7oadaxx@flea.lan> References: <20180219081837.15482-1-mylene.josserand@bootlin.com> <20180219081837.15482-2-mylene.josserand@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zurc3lyefgfkcgrh" Content-Disposition: inline In-Reply-To: <20180219081837.15482-2-mylene.josserand@bootlin.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zurc3lyefgfkcgrh Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Feb 19, 2018 at 09:18:31AM +0100, Myl=E8ne Josserand wrote: > Add the support for A83T. >=20 > 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. >=20 > Signed-off-by: Myl=E8ne 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) 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. Thanks! Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com --zurc3lyefgfkcgrh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlqKkwAACgkQ0rTAlCFN r3QrKBAAjaZn7OSiihbmARgIRI8POZKPgg9l59UJTpkBIyxIkTI0Yn51BEeIFZ4u F1gk2mc7d409A+c9TFwy8T2mg0HqFkCXCgo6vZO9Ze7duwFx6D3QC30NvKFzosy2 ijZxCR+WhF3itt8kPfKv8Wr4ir3sGiEd5kpS9hFm5A+pf8MSs+Pwz2ZUlXWI53s2 W2tpoRHlPQ/qCsTop6zArheZjr6Eui2Mz7l0uOUkegyhLGAUma1exYuokRqVNPOn 6i6Tw73ygv1rRctqc3nFRnS+mk+IpXg/+faLuKNw4OOCG8L3wlvaDF1GUriupHCz BX/7e8Hx0lcN9S15LNUAhaUDJOeFVECInF3DjWnfn6Dd/PcEWbK6/smiBVNRHd9f 8Jo75G48lNA0ZR4I4cSZeZHkXmMq3sppolA4aOUh9cv1+x7Mx3o4tV7NDqH9fV9p HDuEftIpllfqolYmtoIxZH6qMXOOZPh28VWWBqQG7nA9TBJxUWA0HgfELlIkjuNJ Ei0JSpQ1NcTMmv/DUnMrM6seMtF1Ugzm45v3YRjHazyWZZrG76EfXWBthqB0uvZD 95Mz9tSUb0mPG0X66Jd8Ke9tVNCuQ8yFt1E9tDFZJK62dqAGiHL3lxf8okJrpkD/ LTYmCpaVNNzAmm6cjK3sXCSxgbvOpVJaQXGYaW3O8+vEvyJCt6g= =2H89 -----END PGP SIGNATURE----- --zurc3lyefgfkcgrh--