[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180219090401.5uxmwtnkd7oadaxx@flea.lan>
Date: Mon, 19 Feb 2018 10:04:01 +0100
From: Maxime Ripard <maxime.ripard@...tlin.com>
To: Mylène Josserand <mylene.josserand@...tlin.com>
Cc: wens@...e.org, linux@...linux.org.uk, robh+dt@...nel.org,
mark.rutland@....com, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
clabbe.montjoie@...il.com, thomas.petazzoni@...tlin.com,
quentin.schulz@...tlin.com
Subject: Re: [PATCH v3 1/7] ARM: sun8i: smp: Add support for A83T
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 <mylene.josserand@...tlin.com>
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
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists